The JSON-LD Vocabulary

W3C

Alternate versions of the vocabulary definition exist in Turtle and JSON-LD.

Published:
Version Info:
https://github.com/w3c/json-ld-wg/commit/e5fac0a01a0cda11628ede074574b60167ccec7f

Introduction

This document, and the associated documents in alternative formats, defines the JSON-LD Namespace. This includes URIs required for HTTP Profile and media-type profile definitions, Link relations used for locating JSON-LD context files, and a vocabulary that can be used for representing JSON-LD contexts in RDF.

For example, the following Turtle defines a subset of the terms defined in the JSON-LD vocabulary context definition:

@prefix : <http://www.w3.org/ns/jsonld> .
[ a :Context
  :version 1.1;
  :definition [
    a :PrefixDefinition;
    :term "jsonld";
    :iri <http://www.w3.org/ns/json-ld#>;
  ], [
    a :ExpandedTermDefinition;
    :term "Context";
    :iri :Context
  ], [
    a :ExpandedTermDefinition;
    :term "base";
    :iri :base;
    :type "@id"
  ]
] .

Prefix Definitions

jsonld
http://www.w3.org/ns/json-ld#
owl
http://www.w3.org/2002/07/owl#
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs
http://www.w3.org/2000/01/rdf-schema#
schema
http://schema.org/
xsd
http://www.w3.org/2001/XMLSchema#

Class Definitions

The following are class definitions in the jsonld namespace:
Context Context §

Defines term definitions and other aspects of a JSON-LD Context.

You can read more about this feature in the JSON-LD Syntax Specification.
PrefixDefinition Prefix Definition §

A string (simple term definition), expanding to an absolute IRI.

You can read more about this feature in the JSON-LD Syntax Specification.
TermDefinition Term Definition §

A term definition is an entry in a context, where the key defines a term which may be used within a dictionary as a key, type, or elsewhere that a string is interpreted as a vocabulary item. Its value is an expanded term definition.

You can read more about this feature in the JSON-LD Syntax Specification.

Property Definitions

The following are property definitions in the jsonld namespace:
base base §

If the context definition has an @base key, its value MUST be an absolute IRI, a relative IRI, or null.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:anyUri
schema:domainIncludes
jsonld:Context
container container §

The associated @container value in an expanded term definition..

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
jsonld:ContainerType
schema:domainIncludes
jsonld:TermDefinition
context context §

As an IRI, this link relation is used to reference a JSON-LD context from a JSON document so that it can be interpreted as JSON-LD. As a Context, defines an inline context definition.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
jsonld:Context, xsd:anyUri
definition definition §

Term definition(s) associated with this context.

schema:rangeIncludes
jsonld:TermDefinition, jsonld:PrefixDefinition
schema:domainIncludes
jsonld:Context
id id §

The @id mapping of a term definition.

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:anyUri
schema:domainIncludes
jsonld:TermDefinition, jsonld:PrefixDefinition
language language §

The default language is set in the context using the @language key whose value MUST be a string representing a [BCP47] language code or null.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:string
schema:domainIncludes
jsonld:Context, jsonld:TermDefinition
prefix prefix §

With the value true, allows this term to be used to construct a compact IRI when compacting.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:boolean
schema:domainIncludes
jsonld:TermDefinition
reverse reverse §

The @reverse mapping of an expanded term definition.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:anyUri
schema:domainIncludes
jsonld:TermDefinition
term term §

The term associated with a term definition.

schema:rangeIncludes
xsd:string
schema:domainIncludes
jsonld:TermDefinition, jsonld:PrefixDefinition
type type §

If the expanded term definition contains the @type keyword, its value MUST be an absolute IRI, a compact IRI, a term, null, or one of the keywords @id or @vocab.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:anyUri, xsd:string
schema:domainIncludes
jsonld:TermDefinition
version version §

The processing mode defines how a JSON-LD document is processed. By default, all documents are assumed to be conformant with JSON-LD 1.0. By defining a different version using the @version member in a context, or via explicit API option, other processing modes can be accessed. This specification defines extensions for the json-ld-1.1 processing mode.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:decimal
schema:domainIncludes
jsonld:Context
vocab vocab §

Used to expand properties and values in @type with a common prefix IRI.

You can read more about this feature in the JSON-LD Syntax Specification.
schema:rangeIncludes
xsd:anyUri
schema:domainIncludes
jsonld:Context

Instance Definitions

The following are instance definitions in the jsonld namespace:
compacted compacted §

This profile IRI is used to request or specify compacted JSON-LD document form.

You can read more about this feature in the JSON-LD Syntax Specification.
expanded expanded §

This profile URI is used to request or specify expanded JSON-LD document form.

You can read more about this feature in the JSON-LD Syntax Specification.
flattened flattened §

This profile URI is used to request or specify flattened JSON-LD document form.

You can read more about this feature in the JSON-LD Syntax Specification.
graphContainerType @graph §

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.
idContainerType @id §

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.
indexContainerType @index §

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.
listContainerType @list §

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.
setContainerType @set §

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.
typeContainerType @type §

If the expanded term definition contains the @container keyword, its value MUST be either @list, @set, @language, @index, @id, @graph, @type, or be null or an array containing exactly any one of those keywords.

You can read more about this feature in the JSON-LD Syntax Specification.

Term Definitions

Context
jsonld:Context
PrefixDefinition
jsonld:PrefixDefinition
TermDefinition
jsonld:TermDefinition
base
jsonld:base with string values interpreted as @id
compacted
jsonld:compacted
container
jsonld:container with string values interpreted as @id
context
jsonld:context with string values interpreted as @id
definition
jsonld:definition with string values interpreted as @id
expanded
jsonld:expanded
flattened
jsonld:flattened
graphContainerType
jsonld:graphContainerType
id
jsonld:id with string values interpreted as @id
idContainerType
jsonld:idContainerType
indexContainerType
jsonld:indexContainerType
language
jsonld:language
listContainerType
jsonld:listContainerType
prefix
jsonld:prefix with string values interpreted as xsd:boolean
reverse
jsonld:reverse with string values interpreted as xsd:anyUri
setContainerType
jsonld:setContainerType
term
jsonld:term
type
jsonld:type with string values interpreted as @id
typeContainerType
jsonld:typeContainerType
version
jsonld:version with string values interpreted as xsd:decimal
vocab
jsonld:vocab with string values interpreted as @id