File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 17
17
require 'yaml'
18
18
require 'cgi'
19
19
20
+ # FIXME: This is here until the rdf:JSON is added in RDF.rb
21
+ unless RDF ::RDFV . properties . include? ( RDF . to_uri + 'JSON' )
22
+ RDF ::RDFV . property :JSON , label : "JSON" , comment : "JSON datatype"
23
+ end
24
+
20
25
PREFIXES = {
21
26
dc : "http://purl.org/dc/terms/" ,
22
27
cred : "https://w3id.org/credentials#" ,
Original file line number Diff line number Diff line change 338
338
< dt > < dfn > JSON literal</ dfn > </ dt > < dd >
339
339
A < a > JSON literal</ a > is a < a > typed literal</ a > where the associated < a > IRI</ a > is < code > rdf:JSON</ code > .
340
340
In the < a > value object</ a > representation, the value of < code > @type</ code > is < code > @json</ code > .
341
- JSON literals represent values which are valid [[JSON ]].
341
+ JSON literals represent values which are valid JSON [[RFC8259 ]].
342
342
See < dfn data-cite ="JSON-LD11#dfn-json-datatype " class ="preserve "> JSON datatype</ dfn > in [[JSON-LD11]].
343
343
</ dd >
344
344
< dt > < dfn > typed literal</ dfn > </ dt > < dd >
Original file line number Diff line number Diff line change @@ -4734,8 +4734,8 @@ <h2>Data Round Tripping</h2>
4734
4734
values < code > true</ code > and < code > false</ code > are the strings
4735
4735
< code > true</ code > and < code > false</ code > .</ p >
4736
4736
4737
- < p class ="changed "> The < a > canonical lexical form</ a > of the < a > JSON literal</ a >
4738
- values are non-normative, as a normative recommendation for
4737
+ < p class ="changed "> The < a > canonical lexical form</ a > of a < a > JSON literal</ a >
4738
+ value is non-normative, as a normative recommendation for
4739
4739
JSON canonicalization is not yet defined. Implementations
4740
4740
SHOULD use the following guidelines when creating the lexical
4741
4741
representation of a < a > JSON literal</ a > :</ p >
@@ -4761,7 +4761,7 @@ <h2>Data Round Tripping</h2>
4761
4761
this specification will likely be updated to require such a canonical representation.
4762
4762
Users are cautioned from depending on the
4763
4763
< a > JSON literal</ a > lexical representation as an < a > RDF literal</ a > ,
4764
- as the specifics of serialization may change in a future revison of this document.</ div >
4764
+ as the specifics of serialization may change in a future revison of this document.</ p >
4765
4765
4766
4766
< aside class ="example changed " data-ignore
4767
4767
title ="Canonicalized JSON literal ">
You can’t perform that action at this time.
0 commit comments