Skip to content

JSON-LD grammar #114

Closed
Closed
@lanthaler

Description

@lanthaler

This was "Value space of keywords" before. Pleas read the comment below for an updated description.

In #91 we decided to not change the value space of @type but to allow the use of rdf:type for use cases that require different forms. Nevertheless, in 67a0909, the algorithms were changed to allow also other forms of @type. expand-0026-in.jsonld basically contains:

   "@type": [
        "http://example.com/d",
        {
          "@id": "http://example.com/e"
        }
   ]

So, what do we wanna do with this? Do we wanna allow it or not?

A similar issue exists for the @graph keyword. Do we wanna allow @value objects there? So, would the following snippet be valid?

   "@graph": {
        "@value": "My named graph 91"
   }

Just to make sure we all agree on the value space of all of our keywords, here a list of what I think is the value space (perhaps we should include this in some form in the syntax spec):

  • @context: (array of) object | string
  • @graph: (array of) object (not @value, @list, @set objects) | string
  • @id: string
  • @value: string | number | boolean | null
  • @language: string
  • @type: (array of) string
  • @container: string
  • @list: (array of) object | string | number | boolean | null
  • @set: (array of) object | string | number | boolean | null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions