diff --git a/Gemfile.lock b/Gemfile.lock index b09bbfd1..cbe49f2f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/ruby-rdf/json-ld.git - revision: b1a47abbdd6db71d2b9ccb42811445fee1626d60 + revision: 94a5f041320f71ef89e4e82c73a01fd07ab4af27 branch: develop specs: json-ld (3.0.2) @@ -74,7 +74,7 @@ GEM sparql (~> 3.0) sparql-client (~> 3.0) mini_portile2 (2.4.0) - multi_json (1.14.0) + multi_json (1.14.1) net-http-persistent (3.1.0) connection_pool (~> 2.2) nokogiri (1.10.4) diff --git a/common/terms.html b/common/terms.html index ff660e0e..cdef3e1f 100644 --- a/common/terms.html +++ b/common/terms.html @@ -320,13 +320,16 @@ when prepended to the suffix of the compact IRI, results in an absolute IRI.
@version
entry in a context,
- or via explicit API option,
- other processing modes can be accessed.
+ publishers can ensure that processors conformant with JSON-LD 1.0 [[JSON-LD10]]
+ will not accidently process JSON-LD 1.1 documents, possibly creating a different output.
+ The API provides an option for setting the processing mode to `json-ld-1.0`,
+ which will prevent JSON-LD 1.1 features from being activated,
+ or error if @version
entry in a context is explicitly set to `1.1`.
This specification extends JSON-LD 1.0
- via the json-ld-1.1
processing mode.@set
entry.
It may also have an @index
key, but no other entries.@version
json-ld-1.1
.
+ not available when processing mode has been explicitly set to
+ `json-ld-1.0`.
New features defined in JSON-LD 1.1 are available
- when the processing mode is set to json-ld-1.1
.
- This may be set using the @version
entry in a context
- set to the value 1.1
as a number, or through an API option.
@@ -2272,9 +2275,9 @@Advanced Concepts
the former will be interpreted as having had"@version": 1.1
defined within it.Setting the processing mode explicitly - for JSON-LD 1.1 is necessary so that a [[[JSON-LD10]]] processor - does not attempt to process a JSON-LD 1.1 document and silently - produce different results.
+ to `json-ld-1.1` is RECOMMENDED to prevent a [[[JSON-LD10]]] processor + from incorrectly processing a JSON-LD 1.1 document and + producing different results.
Since json-ld-1.1
,
+
Since JSON-LD 1.1, the vocabulary mapping in a local context can be set to the a relative IRI, which is concatenated to any vocabulary mapping in the active context (see @@ -2572,7 +2575,7 @@
In some cases, vocabulary terms are defined directly within the document
itself, rather than in an external vocabulary.
- Since json-ld-1.1
, the vocabulary mapping in a local context
+ Since JSON-LD 1.1, the vocabulary mapping in a local context
can be set to a relative IRI,
which is, if there is no vocabulary mapping in scope, resolved against the base IRI.
This causes terms which are expanded relative to the vocabulary,
@@ -2804,7 +2807,7 @@
When operating with the default processing mode +
When operating explicitly with the processing mode
for [[[JSON-LD10]]] compatibility, terms may be chosen as compact IRI prefixes when
compacting only if a simple term definition is used where the value ends with a
URI gen-delim character (e.g, /
,
@@ -2834,7 +2837,7 @@
Using the following context in the default 1.0 processing mode +
Using the following context in the 1.0 processing mode will now select the term vocab rather than property, even though the IRI associated with property captures more of the original IRI.
@@ -2910,8 +2913,7 @@In the original [[JSON-LD10]],
the term selection algorithm would have selected property,
creating the Compact IRI property:One.
- If the processing mode is json-ld-1.1
, the original behavior can be
- made explicit using @prefix
:
@prefix
:
Using the Document Base for the Default VocabularyOther than for
-@type
, properties of expanded term definitions where the term is a keyword result in an error. - When processing mode is set tojson-ld-1.1
, + Unless the processing mode is set to `json-ld-1.0`, there is also an exception for@type
; see for further details.When processing mode is set to
json-ld-1.1
, +Unless the processing mode is set to `json-ld-1.0`, aliases of keywords are either simple term definitions, where the value is a keyword, or a expanded term definitions with an `@id` entry and optionally an `@protected` entry; @@ -3561,8 +3563,7 @@
Using the Document Base for the Default Vocabulary
earlier less deeply nested definitions, as discussed in . -Scoped Contexts are a new feature in JSON-LD 1.1, requiring - processing mode set to
+json-ld-1.1
.Scoped Contexts are a new feature in JSON-LD 1.1.
Protected term definitions are a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Protected term definitions are a new feature in JSON-LD 1.1.
@set
with @type
When processing mode is set to json-ld-1.1
,
+
Unless the processing mode is set to `json-ld-1.0`,
@type
may be used with an expanded term definition with @container
set
to @set
; no other entries may be set within such an expanded term definition.
This is used by the Compaction algorithm to ensure that the values of @type
(or an alias)
@@ -6517,8 +6517,7 @@
Nested properties are a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Nested properties are a new feature in JSON-LD 1.1.
If the processing mode is set to json-ld-1.1
,
+
Unless the processing mode is set to `json-ld-1.0`,
the special index @none
is used for indexing
data which does not have an associated index, which is useful to maintain
a normalized representation.
If the processing mode is set to json-ld-1.1
,
+
Unless the processing mode is set to `json-ld-1.0`,
"@container": "@index"
in a term description can be accompanied with
an "@index"
key. The value of that key must map to an IRI,
which identifies the semantic property linking each object to its key.
@@ -7574,7 +7573,7 @@
If the processing mode is set to json-ld-1.1
,
+
Unless the processing mode is set to `json-ld-1.0`,
the special index @none
is used for indexing
strings which do not have a language; this is useful to maintain
a normalized representation for string values not having a datatype.
Id maps are a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Id maps are a new feature in JSON-LD 1.1.
As with id maps, when used with @type
, a container may also
include @set
to ensure that key values are always contained in an array.
Type maps are a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Type maps are a new feature in JSON-LD 1.1.
Graph Containers are a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Graph Containers are a new feature in JSON-LD 1.1.
Named Graph Data Indexing is a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Named Graph Data Indexing is a new feature in JSON-LD 1.1.
Graph Containers are a new feature in JSON-LD 1.1, requiring
- processing mode set to json-ld-1.1
.
Graph Containers are a new feature in JSON-LD 1.1.