@@ -668,11 +668,11 @@ <h2>Syntax Tokens and Keywords</h2>
668
668
< dt > < code > @context</ code > </ dt > < dd > Used to set the < tref > local context</ tref > .</ dd >
669
669
< dt > < code > @id</ code > </ dt > < dd > Sets the active subject.</ dd >
670
670
< dt > < code > @language</ code > </ dt > < dd > Used to specify the language for a literal.</ dd >
671
- < dt > < code > @literal </ code > </ dt > < dd > Used to specify a literal value .</ dd >
671
+ < dt > < code > @value </ code > </ dt > < dd > Used to specify the value of a literal.</ dd >
672
672
< dt > < code > @type</ code > </ dt > < dd > Used to set the type of the active subject or the datatype of a literal.</ dd >
673
673
< dt > < code > :</ code > </ dt > < dd > The separator for JSON keys and values that use the < tref > prefix</ tref > mechanism.</ dd >
674
674
</ dl >
675
-
675
+
676
676
< p > All JSON-LD tokens and keywords are case-sensitive.</ p >
677
677
</ section >
678
678
@@ -823,7 +823,7 @@ <h2 id="context">Context</h2>
823
823
</ ol >
824
824
</ li >
825
825
</ ol >
826
-
826
+
827
827
< p class ="note "> It can be difficult to distinguish between a < code > prefix:suffix</ code > and an absolute IRI,
828
828
as a < tref > prefix</ tref > may seem to be a valid IRI < em > scheme</ em > . When performing repeated IRI expansion,
829
829
a term used as a prefix may not have a valid mapping due to dependencies in resolving term definitions. By
@@ -887,11 +887,11 @@ <h2>Value Expansion</h2>
887
887
are required to be expanded at times when processing JSON-LD documents.
888
888
</ p >
889
889
890
- < p > The algorithm for expanding a value < em > value</ em > takes an < tref > active property</ tref >
890
+ < p > The algorithm for expanding a < em > value</ em > takes an < tref > active property</ tref >
891
891
and < tref > active context</ tref > . It is implemented as follows:</ p >
892
892
< ol class ="algorithm ">
893
893
< li > If < em > value</ em > is < tref > true</ tref > , < tref > false</ tref > or < tref > number</ tref > , expand the value by
894
- adding a two new key-value pairs. The first key-value pair will be < code > @literal </ code > and
894
+ adding a two new key-value pairs. The first key-value pair will be < code > @value </ code > and
895
895
the string representation of < em > value</ em > . The second key-value pair will be < code > @type> </ code > ,
896
896
and the expanded version of < code > xsd:boolean</ code > , < code > xsd:integer</ code > , or < code > xsd:double</ code > ,
897
897
depending on < em > value</ em > .
@@ -900,11 +900,11 @@ <h2>Value Expansion</h2>
900
900
key is < code > @id</ code > and the value is the expanded IRI according to the < a href ="#iri-expansion "> IRI
901
901
Expansion</ a > rules.</ li >
902
902
< li > Otherwise, if < tref > active property</ tref > is the target of typed literal coercion,
903
- expand < em > value</ em > by adding two new key-value pairs. The first key-value pair will be < code > @literal </ code >
903
+ expand < em > value</ em > by adding two new key-value pairs. The first key-value pair will be < code > @value </ code >
904
904
and the unexpanded value. The second key-value pair will be < code > @type</ code > and the associated coercion
905
905
datatype expanded according to the < a href ="#iri-expansion "> IRI Expansion</ a > rules.</ li >
906
- < li > Otherwise, if the < tref > active context</ tref > has a < code > @language</ code > ,
907
- expand < em > value</ em > by adding two new key-value pairs. The first key-value pair will be < code > @literal </ code >
906
+ < li > Otherwise, if the < tref > active context</ tref > has a < code > @language</ code > ,
907
+ expand < em > value</ em > by adding two new key-value pairs. The first key-value pair will be < code > @value </ code >
908
908
and the unexpanded value. The second key-value pair will be < code > @language</ code > and value of
909
909
< code > @language</ code > from the < tref > active context</ tref > .</ li > < li > Otherwise, < em > value</ em > is already
910
910
expanded.</ li >
@@ -923,7 +923,7 @@ <h2>Value Compaction</h2>
923
923
and < tref > active context</ tref > . It is implemented as follows:</ p >
924
924
< ol class ="algorithm ">
925
925
< li > If the value may be expressed as < tref > true</ tref > , < tref > false</ tref > or < tref > number</ tref > ,
926
- the value is the native representation of the < code > @literal </ code > value.</ li >
926
+ the value is the native representation of the < code > @value </ code > value.</ li >
927
927
< li > Otherwise, if the < tref > active context</ tref > contains a coercion target for the
928
928
key that matches the expression of the value, compact the value using the
929
929
following steps:
@@ -933,15 +933,15 @@ <h2>Value Compaction</h2>
933
933
processed according to the
934
934
< a href ="#iri-compaction "> IRI Compaction</ a > steps.</ li >
935
935
< li > If the coercion target is a typed literal, the compacted
936
- value is the value associated with the < code > @literal </ code > key.</ li >
936
+ value is the value associated with the < code > @value </ code > key.</ li >
937
937
</ ol >
938
938
</ li >
939
939
< li > Otherwise, if < em > value</ em > contains an < code > @id</ code > key, the compacted value is < em > value</ em > with
940
940
the value of < code > @id</ code > processed according to the
941
941
< a href ="#iri-compaction "> IRI Compaction</ a > steps.</ li >
942
942
< li > Otherwise, if the < tref > active context</ tref > contains a < code > @language</ code > , which
943
- matches the < code > @language</ code > of the value, or the value has only a < code > @literal </ code > key, the compacted
944
- value is the value associated with the < code > @literal </ code > key.</ li >
943
+ matches the < code > @language</ code > of the value, or the value has only a < code > @value </ code > key, the compacted
944
+ value is the value associated with the < code > @value </ code > key.</ li >
945
945
< li > Otherwise, if the value contains a < code > @type</ code > key, the compacted value
946
946
is < em > value</ em > with the < code > @type</ code > value processed according to the
947
947
< a href ="#iri-compaction "> IRI Compaction</ a > steps.</ li >
@@ -1010,7 +1010,7 @@ <h3>Expansion Algorithm</h3>
1010
1010
< ol class ="algorithm ">
1011
1011
< li > If the key is < code > @id</ code > or < code > @type</ code > and the value is a < tref > string</ tref > ,
1012
1012
expand the value according to < a href ="#iri-expansion "> IRI Expansion</ a > .</ li >
1013
- < li > Otherwise, if the key is < code > @literal </ code > , the value MUST be a < tref > string</ tref > and
1013
+ < li > Otherwise, if the key is < code > @value </ code > , the value MUST be a < tref > string</ tref > and
1014
1014
is not subject to further expansion.</ li >
1015
1015
< li > Otherwise, if the key is not a < tref > keyword</ tref > , expand the key according to
1016
1016
< a href ="#iri-expansion "> IRI Expansion</ a > rules and set as < tref > active property</ tref > .</ li >
@@ -1133,7 +1133,7 @@ <h3>Compaction Algorithm</h3>
1133
1133
< li > If the value is an object
1134
1134
< ol class ="algorithm ">
1135
1135
< li > If the value contains only an < code > @id</ code > key or the value contains a
1136
- < code > @literal </ code > key, the compacted value is the result of performing
1136
+ < code > @value </ code > key, the compacted value is the result of performing
1137
1137
< a href ="#value-compaction "> Value Compaction</ a > on the value.</ li >
1138
1138
< li > Otherwise, if the value contains only a < code > @list</ code > key, and the
1139
1139
< tref > active property</ tref > is subject to list coercion, the compacted value is the result of
@@ -1953,7 +1953,7 @@ <h4>Object Comparison Algorithm</h4>
1953
1953
< li > If both values are literals:
1954
1954
< ol class ="algorithm ">
1955
1955
< li > The lexicographically lesser string associated with
1956
- < code > @literal </ code > is first.
1956
+ < code > @value </ code > is first.
1957
1957
</ li >
1958
1958
< li > The lexicographically lesser string associated with
1959
1959
< code > @type</ code > is first.
@@ -2417,24 +2417,24 @@ <h4>Label Serialization Algorithm</h4>
2417
2417
< code > <</ code > < strong > IRI</ strong > < code > ></ code >
2418
2418
where < strong > IRI</ strong > is the value associated with the
2419
2419
< code > @id</ code > key.</ li >
2420
- < li > If the object contains a < code > @literal </ code > key and a
2420
+ < li > If the object contains a < code > @value </ code > key and a
2421
2421
< code > @type</ code > key, build the < tref > object string</ tref >
2422
2422
using the pattern
2423
- < code > "</ code > < strong > LITERAL </ strong > < code > "^^<</ code > < strong > DATATYPE</ strong > < code > ></ code >
2424
- where < strong > LITERAL </ strong > is the value associated with the
2425
- < code > @literal </ code > key and < strong > DATATYPE</ strong > is the
2423
+ < code > "</ code > < strong > VALUE </ strong > < code > "^^<</ code > < strong > DATATYPE</ strong > < code > ></ code >
2424
+ where < strong > VALUE </ strong > is the value associated with the
2425
+ < code > @value </ code > key and < strong > DATATYPE</ strong > is the
2426
2426
value associated with the < code > @type</ code > key.</ li >
2427
- < li > If the object contains a < code > @literal </ code > key and a
2427
+ < li > If the object contains a < code > @value </ code > key and a
2428
2428
< code > @language</ code > key, build the < tref > object string</ tref >
2429
2429
using the pattern
2430
- < code > "</ code > < strong > LITERAL </ strong > < code > "@</ code > < strong > LANGUAGE</ strong >
2431
- where < strong > LITERAL </ strong > is the value associated with the
2432
- < code > @literal </ code > key and < strong > LANGUAGE</ strong > is the
2430
+ < code > "</ code > < strong > VALUE </ strong > < code > "@</ code > < strong > LANGUAGE</ strong >
2431
+ where < strong > VALUE </ strong > is the value associated with the
2432
+ < code > @value </ code > key and < strong > LANGUAGE</ strong > is the
2433
2433
value associated with the < code > @language</ code > key.</ li >
2434
2434
< li > Otherwise, the value is a string. Build the
2435
2435
< tref > object string</ tref > using the pattern
2436
- < code > "</ code > < strong > LITERAL </ strong > < code > "</ code >
2437
- where < strong > LITERAL </ strong > is the value associated with the
2436
+ < code > "</ code > < strong > VALUE </ strong > < code > "</ code >
2437
+ where < strong > VALUE </ strong > is the value associated with the
2438
2438
current key.</ li >
2439
2439
< li > If this is the second iteration of the loop,
2440
2440
append a < code > |</ code > separator character to the
@@ -2642,7 +2642,7 @@ <h3>RDF Conversion Algorithm</h3>
2642
2642
with those < tref > keyword</ tref > s. Use the new < tref > JSON object</ tref > in subsequent steps.
2643
2643
</ li >
2644
2644
< li >
2645
- If the < tref > JSON object</ tref > has a < code > @literal </ code > key, set the < tref > active object</ tref >
2645
+ If the < tref > JSON object</ tref > has a < code > @value </ code > key, set the < tref > active object</ tref >
2646
2646
to a literal value as follows:
2647
2647
< ol class ="algorithm ">
2648
2648
< li >
0 commit comments