From d062a5869e01d58606e77e20386b319024df396e Mon Sep 17 00:00:00 2001
From: Olaf Hartig Datatype IRIs
MUST refer to the RDF-compatible XSD type named xsd:xxx
for
every XSD type listed in section 5.1.
The following three datatype IRIs are defined in this section:
+The following three datatype IRIs are defined in Appendix :
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
@@ -1237,6 +1237,101 @@ RDF uses IRIs, which may include + + fragment identifiers, + as resource identifiers. + The semantics of fragment identifiers is + defined in + RFC 3986 [[RFC3986]]: They identify a secondary resource + that is usually a part of, view of, defined in, or described in + the primary resource, and the precise semantics depend on the set + of representations that might result from a retrieval action + on the primary resource.
+ +This section discusses the handling of fragment identifiers + in representations that encode RDF graphs.
+ +In RDF-bearing representations of a primary resource
+ <foo>
,
+ the secondary resource identified by a fragment bar
+ is the resource denoted by the
+ full IRI <foo#bar>
in the RDF graph.
+ Since IRIs in RDF graphs can denote anything, this can be
+ something external to the representation, or even external
+ to the web.
In this way, the RDF-bearing representation acts as an intermediary + between the web-accessible primary resource, and some set of possibly + non-web or abstract entities that the RDF graph may describe.
+ +In cases where other specifications constrain the semantics of
+ fragment identifiers in RDF-bearing representations, the encoded
+ RDF graph should use fragment identifiers in a way that is consistent
+ with these constraints. For example, in an HTML+RDFa document [[HTML-RDFA]],
+ the fragment chapter1
may identify a document section
+ via the semantics of HTML's @name
or @id
+ attributes. The IRI <#chapter1>
should
+ then be taken to denote that same section in any RDFa-encoded
+ triples within the same document.
+ Similarly, fragment identifiers should be used consistently in resources
+ with multiple representations that are made available via
+ content negotiation
+ [[WEBARCH]]. For example, if the fragment chapter1
identifies a
+ document section in an HTML representation of the primary resource, then the
+ IRI <#chapter1>
should be taken to
+ denote that same section in all RDF-bearing representations of the
+ same primary resource.
It is sometimes convenient to loosen the requirements + on RDF triples. For example, the completeness + of the RDFS entailment rules is easier to show with a + generalization of RDF triples.
+ +A generalized RDF triple is a triple having a subject, + a predicate, and object, where each can be an IRI, a + blank node or a + literal. A + generalized RDF graph + is a set of generalized RDF triples. A + generalized RDF dataset + comprises a distinguished generalized RDF graph, and zero + or more pairs each associating an IRI, a blank node or a literal + to a generalized RDF graph.
+ + +Generalized RDF triples, graphs, and datasets differ + from normative RDF triples, + graphs, and + datasets only + by allowing IRIs, + blank nodes and + literals to appear + in any position, i.e., as subject, predicate, object or graph names.
+ +Any users of + generalized RDF triples, graphs or datasets need to be + aware that these notions are non-standard extensions of + RDF and their use may cause interoperability problems. + There is no requirement on the part of any RDF tool to + accept, process, or produce anything beyond standard RDF + triples, graphs, and datasets.
+ +This section defines additional datatypes that RDF processors MAY support.
rdf:HTML
Datatyperdf:JSON
DatatypeRDF uses IRIs, which may include - - fragment identifiers, - as resource identifiers. - The semantics of fragment identifiers is - defined in - RFC 3986 [[RFC3986]]: They identify a secondary resource - that is usually a part of, view of, defined in, or described in - the primary resource, and the precise semantics depend on the set - of representations that might result from a retrieval action - on the primary resource.
- -This section discusses the handling of fragment identifiers - in representations that encode RDF graphs.
- -In RDF-bearing representations of a primary resource
- <foo>
,
- the secondary resource identified by a fragment bar
- is the resource denoted by the
- full IRI <foo#bar>
in the RDF graph.
- Since IRIs in RDF graphs can denote anything, this can be
- something external to the representation, or even external
- to the web.
In this way, the RDF-bearing representation acts as an intermediary - between the web-accessible primary resource, and some set of possibly - non-web or abstract entities that the RDF graph may describe.
- -In cases where other specifications constrain the semantics of
- fragment identifiers in RDF-bearing representations, the encoded
- RDF graph should use fragment identifiers in a way that is consistent
- with these constraints. For example, in an HTML+RDFa document [[HTML-RDFA]],
- the fragment chapter1
may identify a document section
- via the semantics of HTML's @name
or @id
- attributes. The IRI <#chapter1>
should
- then be taken to denote that same section in any RDFa-encoded
- triples within the same document.
- Similarly, fragment identifiers should be used consistently in resources
- with multiple representations that are made available via
- content negotiation
- [[WEBARCH]]. For example, if the fragment chapter1
identifies a
- document section in an HTML representation of the primary resource, then the
- IRI <#chapter1>
should be taken to
- denote that same section in all RDF-bearing representations of the
- same primary resource.
It is sometimes convenient to loosen the requirements - on RDF triples. For example, the completeness - of the RDFS entailment rules is easier to show with a - generalization of RDF triples.
- -A generalized RDF triple is a triple having a subject, - a predicate, and object, where each can be an IRI, a - blank node or a - literal. A - generalized RDF graph - is a set of generalized RDF triples. A - generalized RDF dataset - comprises a distinguished generalized RDF graph, and zero - or more pairs each associating an IRI, a blank node or a literal - to a generalized RDF graph.
- - -Generalized RDF triples, graphs, and datasets differ - from normative RDF triples, - graphs, and - datasets only - by allowing IRIs, - blank nodes and - literals to appear - in any position, i.e., as subject, predicate, object or graph names.
- -Any users of - generalized RDF triples, graphs or datasets need to be - aware that these notions are non-standard extensions of - RDF and their use may cause interoperability problems. - There is no requirement on the part of any RDF tool to - accept, process, or produce anything beyond standard RDF - triples, graphs, and datasets.
- -rdf:XMLLiteral
Datatyperdf:JSON
Datatype
- The rdf:JSON
datatype was originally defined in
- Section 10.2 The `rdf:JSON` Datatype
- in [[?JSON-LD11]].
-
RDF provides for JSON content as a possible literal value.
+ This allows markup in literal values. Such content is indicated in an
+ RDF graph using a literal whose datatype is set
+ to rdf:JSON
.
The rdf:JSON
datatype is defined as follows:
http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON
.rdf:JSON
datatype as an RDF literal,
+ as the specifics of serialization may change in a future revision of
+ this document.xsd:string
,
+ in order to avoid side effects with existing specifications.
+ JSON.parse
+ function as defined in Section 24.5 The JSON Object
+ of [[ECMASCRIPT]],rdf:XMLLiteral
Datatyperdf:JSON
DatatypeRDF provides for JSON content as a possible literal value.
- This allows markup in literal values. Such content is indicated in an
- RDF graph using a literal whose datatype is set
+ This includes allowing markup in literal values. Such content is indicated in an
+ RDF graph as a literal whose datatype is set
to rdf:JSON
.
The rdf:JSON
datatype is defined as follows:
rdf:JSON
Datatyperdf:JSON
specification
will likely be updated to require such a canonical representation.
- Users are cautioned from depending on the lexical representation of
- literals with the rdf:JSON
datatype as an RDF literal,
+ Users are cautioned against depending on the lexical representation of
+ literals with the rdf:JSON
datatype as RDF literals,
as the specifics of serialization may change in a future revision of
this document.rdf:JSON
DatatypeJSON.parse
function as defined in Section 24.5 The JSON Object
of [[ECMASCRIPT]],
- rdf:HTML
and rdf:XMLLiteral
.
+ rdf:JSON
, rdf:HTML
, and rdf:XMLLiteral
.
The list of datatypes supported by an implementation is determined
by its recognized datatype IRIs.
@@ -1344,10 +1344,10 @@ rdf:HTML
DatatypeThe rdf:HTML
datatype is defined as follows:
http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML
.DocumentFragment
nodes [[DOM]]. Two
@@ -1357,7 +1357,7 @@ rdf:HTML
Datatypenode.{{Node/isEqualNode(otherNode)}}
[[DOM]] returns true
.Each member of the lexical space is associated with the result of applying the following algorithm:
@@ -1456,16 +1456,16 @@rdf:JSON
DatatypeThe rdf:JSON
datatype is defined as follows:
http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON
.rdf:JSON
Datatyperdf:JSON
DatatypeIRI equality: Two IRIs are the same if and only if they consist of the same sequence of - Unicode code points, + Unicode code points, as in Simple String Comparison in section 5.3.1 of [[!RFC3987]]. (This is done in the abstract syntax, so the IRIs are resolved @@ -701,7 +701,7 @@
rdf:JSON
, rdf:HTML
, and rdf:XMLLiteral
.
The list of datatypes supported by an implementation is determined
by its recognized datatype IRIs.
@@ -1086,7 +1086,7 @@ Readers might note that the xsd:hexBinary and xsd:base64Binary +
Readers might note that the `xsd:hexBinary` and `xsd:base64Binary` datatypes are the only safe datatypes for transferring binary information.
@@ -1223,8 +1223,8 @@Semantic extensions of RDF might choose to recognize other datatype IRIs - and require them to refer to a fixed datatype. See the RDF - Semantics specification [[RDF12-SEMANTICS]] for more information on + and require them to refer to a fixed datatype. + See [[[RDF12-SEMANTICS]]] [[RDF12-SEMANTICS]] for more information on semantic extensions.
The Web Ontology Language @@ -1460,60 +1460,56 @@
rdf:JSON
Datatypehttp://www.w3.org/1999/02/22-rdf-syntax-ns#JSON
.rdf:JSON
specification
- will likely be updated to require such a canonical representation.
- Users are cautioned against depending on the lexical representation of
- literals with the rdf:JSON
datatype as RDF literals,
- as the specifics of serialization may change in a future revision of
- this document.xsd:string
,
- in order to avoid side effects with existing specifications.
+
+ Two JSON values are considered equal
+ if they are the same if they are the same string,
+ number,
+ boolean, or
+ null,
+ if they are both an array with equal entries, or
+ if they are both a map with equal map entries.
JSON.parse
- function as defined in Section 24.5 The JSON Object
- of [[ECMASCRIPT]],JSON.parse
+ function as defined in Section 24.5 The JSON Object
+ of [[ECMASCRIPT]].
rdf:JSON
Datatyperdf:JSON
DatatypeJSON.parse
function as defined in Section 24.5 The JSON Object
of [[ECMASCRIPT]].
This section discusses the handling of fragment identifiers in representations that encode RDF graphs.
-In RDF-bearing representations of a primary resource
- <foo>
,
- the secondary resource identified by a fragment bar
+
In RDF-bearing representations of a primary resource,
+ <https://example.com/foo>
,
+ the secondary resource identified by a fragment identifier, bar
,
is the resource denoted by the
- full IRI <foo#bar>
in the RDF graph.
+ full IRI <https://example.com/foo#bar>
in the RDF graph.
Since IRIs in RDF graphs can denote anything, this can be
something external to the representation, or even external
to the web.
chapter1
may identify a document section
+ a fragment identifier such as chapter1
may identify a document section
via the semantics of HTML's @name
or @id
attributes. The IRI <#chapter1>
should
then be taken to denote that same section in any RDFa-encoded
@@ -1282,7 +1282,7 @@ chapter1
identifies a
+ [[WEBARCH]]. For example, if the fragment identifier chapter1
identifies a
document section in an HTML representation of the primary resource, then the
IRI <#chapter1>
should be taken to
denote that same section in all RDF-bearing representations of the
@@ -1293,19 +1293,19 @@ It is sometimes convenient to loosen the requirements - on RDF triples. For example, the completeness + on RDF triples. For example, the completeness of the RDFS entailment rules is easier to show with a generalization of RDF triples.
A generalized RDF triple is a triple having a subject, - a predicate, and object, where each can be an IRI, a + a predicate, and an object, where each can be an IRI, a blank node or a literal. A generalized RDF graph is a set of generalized RDF triples. A generalized RDF dataset comprises a distinguished generalized RDF graph, and zero - or more pairs each associating an IRI, a blank node or a literal + or more pairs each associating an IRI, a blank node, or a literal to a generalized RDF graph.
@@ -1314,14 +1314,14 @@Any users of - generalized RDF triples, graphs or datasets need to be +
Any user of + generalized RDF triples, graphs, or datasets needs to be aware that these notions are non-standard extensions of - RDF and their use may cause interoperability problems. + RDF, and their use may cause interoperability problems. There is no requirement on the part of any RDF tool to accept, process, or produce anything beyond standard RDF triples, graphs, and datasets.
From f767ad6490eedf4ef8084c13c9692e61e8134605 Mon Sep 17 00:00:00 2001 From: Gregg Kelloggrdf:JSON
Datatypehttp://www.w3.org/1999/02/22-rdf-syntax-ns#JSON
.JSON.parse
function as defined in Section 24.5 The JSON Object
of [[ECMASCRIPT]].
rdf:JSON
Datatyperdf:JSON
DatatypeU+0000
+ through U+001F
using lower case hexadecimal Unicode notation
+ (`\uhhhh`) except for the set of predefined JSON control characters —
+ `U+0008`, `U+0009`, `U+000A`, `U+000C`, and `U+000D` — which SHOULD be
+ serialized as `\b`, `\t`, `\n`, `\f`, and `\r`, respectively. All
+ other Unicode characters SHOULD be serialized "as is", except
+ `U+005C` (`\`) and `U+0022` (`"`), which SHOULD be serialized as
+ `\\` and `\"`, respectively.rdf:JSON
specification
+ will likely be updated to require such a canonical representation.
+ Users are cautioned against depending on the lexical representation of
+ literals with the rdf:JSON
datatype as RDF literals,
+ as the specifics of serialization may change in a future revision of
+ this document.xsd:string
,
+ in order to avoid side effects with existing specifications.
JSON.parse
- function as defined in Section 24.5 The JSON Object
- of [[ECMASCRIPT]].
+ maps every element of the lexical space to the result of
+ JSON.parse
+ function as defined in Section 24.5 The JSON Object
+ of [[ECMASCRIPT]],xsd:xxx
for
every XSD type listed in section 5.1.
- The following three datatype IRIs are defined in Appendix :
+The datatypes identified by the three IRIs below are defined in + Appendix :
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
@@ -1257,11 +1258,11 @@ This section discusses the handling of fragment identifiers in representations that encode RDF graphs.
-In RDF-bearing representations of a primary resource, +
In RDF-bearing representations of a primary resource, e.g.,
<https://example.com/foo>
,
- the secondary resource identified by a fragment identifier, bar
,
+ the secondary resource identified by a fragment identifier, e.g., bar
,
is the resource denoted by the
- full IRI <https://example.com/foo#bar>
in the RDF graph.
+ full IRI in the RDF graph, which would be <https://example.com/foo#bar>
in this case.
Since IRIs in RDF graphs can denote anything, this can be
something external to the representation, or even external
to the web.
chapter1
may identify a document section
via the semantics of HTML's @name
or @id
- attributes. The IRI <#chapter1>
should
+ attributes. Such an IRI, e.g., <#chapter1>
, should
then be taken to denote that same section in any RDFa-encoded
triples within the same document.
Similarly, fragment identifiers should be used consistently in resources
@@ -1322,7 +1323,7 @@ rdf:JSON
DatatypeReaders might note that the `xsd:hexBinary` and `xsd:base64Binary` - datatypes are the only safe datatypes for transferring binary - information.
+Readers might note that the only safe datatypes for transferring + binary information are `xsd:hexBinary` and `xsd:base64Binary`.