Skip to content

JSON-LD 1.0 @graph syntax #106

Closed
Closed
@msporny

Description

@msporny

We need to determine what the JSON-LD 1.0 @graph syntax supports. At the moment, I think the current direction is to support the following:

  1. Support named graphs by having @id and @graph at the same level, where @id expresses the name of the graph.
  2. Both IRIs and BNode-like labels (starting with '_:') can be used in @id to name a graph.
  3. The @graph keyword is alias-able.
  4. The @graph keyword is always associated with an IRI - in JSON, represented by a string, an object with an @id, or an array of objects with @ids.
  5. A JSON-LD property MAY be associated with a {"@graph": ...} object.
  6. The JSON-LD keywords MUST NOT be associated with a {"@graph": ...} object - especially @id and @value.

We also need to figure out how @graph is treated when compacting, expanding and framing - but I believe those decisions probably will not affect the syntax. Anything else that should be considered regarding @graph syntax?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions