Skip to content

Null values in RDF Lists #835

Open
Open
@ebremer

Description

@ebremer

I have a need to express a list of ordered items, but with potentially missing values. For example 20, null, 77.
I've read through the documentation, and null values are filtered out when using compaction but the second position needs to be held.
I can model a list in RDF and omit the second rdf:first value, but, JSON-LD likes to filter the nulls away. Is there anyway framing can be used to express the null?
Having { :dcm:00286040": [20, null, 77] } would be a nice concise way of expressing this.
My specific use case is modelling DICOM image metadata:

https://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_F.2.5.html

I currently use the blank node method, but I'm trying to make the DICOM JSON model more "RDF" by moving the value representations to custom data types. For example:

  1. one triple
    [ dcm:00191030 "262144"^^dcm:UL ]

  2. three triples
    [ dcm:00191030 [ dcm:Value ( "262144"^^xsd:long ); dcm:vr "UL" ]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferIssue deferred to future Working Groupspec-design

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions