@@ -490,7 +490,7 @@ <h3>JsonLdProcessor</h3>
490
490
< dl class ="exception " title ="InvalidContext ">
491
491
< dt > INVALID_SYNTAX</ dt >
492
492
< dd > A general syntax error was detected in the < code > @context</ code > .
493
- For example, if a < code > @datatype </ code > key maps to anything other than
493
+ For example, if a < code > @type </ code > key maps to anything other than
494
494
a string or an array of strings, this exception would be raised.</ dd >
495
495
< dt > MULTIPLE_DATATYPES</ dt >
496
496
< dd > There is more than one target datatype specified for a single
@@ -518,7 +518,7 @@ <h3>JsonLdProcessor</h3>
518
518
< dl class ="exception " title ="InvalidContext ">
519
519
< dt > INVALID_SYNTAX</ dt >
520
520
< dd > A general syntax error was detected in the < code > @context</ code > .
521
- For example, if a < code > @datatype </ code > key maps to anything other than
521
+ For example, if a < code > @type </ code > key maps to anything other than
522
522
a string or an array of strings, this exception would be raised.</ dd >
523
523
< dt > MULTIPLE_DATATYPES</ dt >
524
524
< dd > There is more than one target datatype specified for a single
@@ -584,7 +584,7 @@ <h3>JsonLdProcessor</h3>
584
584
< dl class ="exception " title ="InvalidContext ">
585
585
< dt > INVALID_SYNTAX</ dt >
586
586
< dd > A general syntax error was detected in the < code > @context</ code > .
587
- For example, if a < code > @datatype </ code > key maps to anything other than
587
+ For example, if a < code > @type </ code > key maps to anything other than
588
588
a string or an array of strings, this exception would be raised.</ dd >
589
589
< dt > MULTIPLE_DATATYPES</ dt >
590
590
< dd > There is more than one target datatype specified for a single
@@ -615,7 +615,7 @@ <h3>JsonLdProcessor</h3>
615
615
< dl class ="exception " title ="InvalidContext ">
616
616
< dt > INVALID_SYNTAX</ dt >
617
617
< dd > A general syntax error was detected in the < code > @context</ code > .
618
- For example, if a < code > @datatype </ code > key maps to anything other than
618
+ For example, if a < code > @type </ code > key maps to anything other than
619
619
a string or an array of strings, this exception would be raised.</ dd >
620
620
< dt > MULTIPLE_DATATYPES</ dt >
621
621
< dd > There is more than one target datatype specified for a single
@@ -677,11 +677,10 @@ <h2>Syntax Tokens and Keywords</h2>
677
677
678
678
< dl >
679
679
< dt > < code > @context</ code > </ dt > < dd > Used to set the < tref > local context</ tref > .</ dd >
680
- < dt > < code > @datatype</ code > </ dt > < dd > Used to specify the datatype for a literal.</ dd >
681
680
< dt > < code > @id</ code > </ dt > < dd > Sets the active subject.</ dd >
682
681
< dt > < code > @language</ code > </ dt > < dd > Used to specify the language for a literal.</ dd >
683
682
< dt > < code > @literal</ code > </ dt > < dd > Used to specify a literal value.</ dd >
684
- < dt > < code > @type</ code > </ dt > < dd > Used to set the type of the active subject.</ dd >
683
+ < dt > < code > @type</ code > </ dt > < dd > Used to set the type of the active subject or the datatype of a literal .</ dd >
685
684
< dt > < code > :</ code > </ dt > < dd > The separator for JSON keys and values that use the < tref > prefix</ tref > mechanism.</ dd >
686
685
</ dl >
687
686
</ section >
@@ -815,7 +814,7 @@ <h2 id="context">Context</h2>
815
814
< li > For each key in < em > value</ em > having the lexical form of < code > NCName</ code > or an empty string,
816
815
with a value that is a < tref > JSON object</ tref >
817
816
< ol class ="algorithm ">
818
- < li > If the value has a < code > @datatype </ code > key, the value MUST have the form of < tref > term</ tref > ,
817
+ < li > If the value has a < code > @type </ code > key, the value MUST have the form of < tref > term</ tref > ,
819
818
< tref > prefix</ tref > :suffix, absolute IRI or the keyword < code > @id</ code > . Add a < tref > coercion
820
819
mapping</ tref > for the term to the < tref > local context</ tref > performing < a href ="#iri-expansion "> IRI
821
820
Expansion</ a > on the associated value using the < tref > active context</ tref > as necessary.</ li >
@@ -831,7 +830,7 @@ <h2 id="context">Context</h2>
831
830
< tref > active context</ tref > 's < tref > list mapping</ tref > .</ li >
832
831
</ ol >
833
832
834
- < p class ="note "> Rules for looking up < code > @datatype </ code > coercion is performed
833
+ < p class ="note "> Rules for looking up < code > @type </ code > coercion is performed
835
834
after merging local term definitions into the < tref > active context</ tref > . This allows datatype
836
835
IRIs to be specified using < tref > term</ tref > or < tref > prefix</ tref > defined within the same context.</ p >
837
836
</ section >
@@ -901,7 +900,7 @@ <h2>Value Expansion</h2>
901
900
< li > If the coercion target is a typed literal, expand the value
902
901
by adding two new key-value pairs. The first key-value pair
903
902
will be < code > @literal</ code > and the unexpanded value. The second
904
- key-value pair will be < code > @datatype </ code > and the associated
903
+ key-value pair will be < code > @type </ code > and the associated
905
904
coercion datatype expanded according to the
906
905
< a href ="#iri-expansion "> IRI Expansion</ a > rules.</ li >
907
906
</ ol >
@@ -956,7 +955,7 @@ <h2>Expansion</h2>
956
955
"name": "http://xmlns.com/foaf/0.1/name",
957
956
"homepage": {
958
957
"@id": "http://xmlns.com/foaf/0.1/homepage",
959
- "@datatype ", "@id"
958
+ "@type ", "@id"
960
959
}
961
960
},
962
961
"name": "Manu Sporny",
@@ -1044,7 +1043,7 @@ <h2>Compaction</h2>
1044
1043
"name": "http://xmlns.com/foaf/0.1/name",
1045
1044
"homepage": {
1046
1045
"@id": "http://xmlns.com/foaf/0.1/homepage",
1047
- "@datatype ": "@id"
1046
+ "@type ": "@id"
1048
1047
}
1049
1048
}
1050
1049
-->
@@ -1061,7 +1060,7 @@ <h2>Compaction</h2>
1061
1060
"name": "http://xmlns.com/foaf/0.1/name",
1062
1061
"homepage": {
1063
1062
"@id": "http://xmlns.com/foaf/0.1/homepage",
1064
- "@datatype ": "@id"
1063
+ "@type ": "@id"
1065
1064
}
1066
1065
},
1067
1066
"name": "Manu Sporny",
@@ -1126,7 +1125,7 @@ <h2>Framing</h2>
1126
1125
"Chapter": "http://example.org/vocab#Chapter",
1127
1126
"contains": {
1128
1127
"@id": "http://example.org/vocab#contains",
1129
- "@datatype ": "@id"
1128
+ "@type ": "@id"
1130
1129
},
1131
1130
"creator": "http://purl.org/dc/terms/creator",
1132
1131
"description": "http://purl.org/dc/terms/description",
@@ -1428,7 +1427,7 @@ <h2>Normalization</h2>
1428
1427
"name": "http://xmlns.com/foaf/0.1/name",
1429
1428
"homepage": {
1430
1429
"@id": "http://xmlns.com/foaf/0.1/homepage",
1431
- "@datatype ": "@id"
1430
+ "@type ": "@id"
1432
1431
},
1433
1432
"xsd": "http://www.w3.org/2001/XMLSchema#"
1434
1433
},
@@ -1898,7 +1897,7 @@ <h4>Object Comparison Algorithm</h4>
1898
1897
< code > @literal</ code > is first.
1899
1898
</ li >
1900
1899
< li > The lexicographically lesser string associated with
1901
- < code > @datatype </ code > is first.
1900
+ < code > @type </ code > is first.
1902
1901
</ li >
1903
1902
< li > The lexicographically lesser string associated with
1904
1903
< code > @language</ code > is first.
@@ -2360,12 +2359,12 @@ <h4>Label Serialization Algorithm</h4>
2360
2359
where < strong > IRI</ strong > is the value associated with the
2361
2360
< code > @id</ code > key.</ li >
2362
2361
< li > If the object contains a < code > @literal</ code > key and a
2363
- < code > @datatype </ code > key, build the < tref > object string</ tref >
2362
+ < code > @type </ code > key, build the < tref > object string</ tref >
2364
2363
using the pattern
2365
2364
< code > "</ code > < strong > LITERAL</ strong > < code > "^^<</ code > < strong > DATATYPE</ strong > < code > ></ code >
2366
2365
where < strong > LITERAL</ strong > is the value associated with the
2367
2366
< code > @literal</ code > key and < strong > DATATYPE</ strong > is the
2368
- value associated with the < code > @datatype </ code > key.</ li >
2367
+ value associated with the < code > @type </ code > key.</ li >
2369
2368
< li > If the object contains a < code > @literal</ code > key and a
2370
2369
< code > @language</ code > key, build the < tref > object string</ tref >
2371
2370
using the pattern
@@ -2468,7 +2467,7 @@ <h3>Data Round Tripping</h3>
2468
2467
var myObj = { "@context" : {
2469
2468
"number" : {
2470
2469
"@id": "http://example.com/vocab#number",
2471
- "@datatype ": "xsd:nonNegativeInteger"
2470
+ "@type ": "xsd:nonNegativeInteger"
2472
2471
}
2473
2472
},
2474
2473
"number" : 42 };
@@ -2588,8 +2587,8 @@ <h3>RDF Conversion Algorithm</h3>
2588
2587
to a literal value as follows:
2589
2588
< ol class ="algorithm ">
2590
2589
< li >
2591
- as a < tref > typed literal</ tref > if the < tref > JSON object</ tref > contains a < code > @datatype </ code > key
2592
- after performing < a href ="#iri-expansion "> IRI Expansion</ a > on the specified< code > @datatype </ code > .
2590
+ as a < tref > typed literal</ tref > if the < tref > JSON object</ tref > contains a < code > @type </ code > key
2591
+ after performing < a href ="#iri-expansion "> IRI Expansion</ a > on the specified< code > @type </ code > .
2593
2592
</ li >
2594
2593
< li >
2595
2594
otherwise, as a < tref > plain literal</ tref > . If the < tref > JSON object</ tref > contains
0 commit comments