Skip to content

new container type leveraging RDF-star to encode order #35

@pchampin

Description

@pchampin

There has been some discussions about how RDF-star can help with ordered multiple values in RDF. Example:

<#book> dct:creator <#alice> {| ex:order 1 |};
        dct:creator <#bob> {| ex:order 2 |}.

I would like a new kind of container in JSON-LD that would translate to the triples above. The compact form could look like that:

{ "@context": {
    "creator": {
        "@id": "http://purl.org/dc/terms/creator",
        "@type": "@id",
        "@container": [ "@ordered"]
     }
  },
  "@id": "#book", "creator": [ "#alice", "#bob" ]
}

and the expanded form could look like

{
    "#alice": {
        "http://purl.org/dc/terms/creator": {
            "@ordered": [
                { "@id": "#alice" },
                { "@id": "#bob" },
            ]
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions