diff --git a/spec/figure1.png b/spec/figure1.png deleted file mode 100644 index d1e9f70..0000000 Binary files a/spec/figure1.png and /dev/null differ diff --git a/spec/figure1.svg b/spec/figure1.svg index 68ef45b..bcb32c4 100644 --- a/spec/figure1.svg +++ b/spec/figure1.svg @@ -1,1275 +1,73 @@ - - - -]> - -Example RDF Graph used in the "RDF 1.1 XML Syntax" Recommendation -The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) - [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.1 XML Syntax" . - [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . - _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . - _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . - + + + Example RDF Graph used in the "RDF 1.2 XML Syntax" Recommendation + The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) + [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.2 XML Syntax" . + [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . + _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . + _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . + The second and third triples are highlighted (using a different color). + + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> - Graph RDF/XML Example 1 - 2014-01-09 - image/svg+xml - - - - The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) - [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.1 XML Syntax" . - [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . - _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . - _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" .#7D590C; - + Graph RDF/XML Example 1 + 2023-02-08 + image/svg+xml + + + + The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) + [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.2 XML Syntax" . + [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . + _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . + _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . + The second and third triples are highlighted (using a different color). + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spec/figure2.png b/spec/figure2.png deleted file mode 100644 index e93248c..0000000 Binary files a/spec/figure2.png and /dev/null differ diff --git a/spec/figure2.svg b/spec/figure2.svg index 0241e0c..c5796a8 100644 --- a/spec/figure2.svg +++ b/spec/figure2.svg @@ -1,1277 +1,73 @@ - - - -]> - -Example RDF Graph used in the "RDF 1.1 XML Syntax" Recommendation -The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) - [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.1 XML Syntax" . - [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . - _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . - _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . - The second and third triples are highlighted (using a different color). - + + + Example RDF Graph used in the "RDF 1.2 XML Syntax" Recommendation + The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) + [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.2 XML Syntax" . + [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . + _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . + _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . + The second and third triples are highlighted + (using a different color and in bold text). + + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> - Graph RDF/XML Example 2 - 2014-01-09 - image/svg+xml - - - - The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) - [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.1 XML Syntax" . - [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . - _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . - _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . - The second and third triples are highlighted (using a different color). - + Graph RDF/XML Example 2 + 2023-02-08 + image/svg+xml + + + + The diagram displays the following triples in N-Triple syntax (with the angular brackets replaced to avoid syntax issues in the present description) + [http://www.w3.org/TR/rdf-syntax-grammar] [http://purl.org/dc/elements/1.1/title] "RDF 1.2 XML Syntax" . + [http://www.w3.org/TR/rdf-syntax-grammar] [http://www.example.org/terms/editor] _:b1 . + _:b1 [http://www.example.org/terms/homePage] [http://purl.org/net/dajobe] . + _:b1 [http://www.example.org/terms/fullName] "Dave Beckett" . + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spec/index.html b/spec/index.html index eacbd18..56f4151 100644 --- a/spec/index.html +++ b/spec/index.html @@ -73,23 +73,14 @@
-

This document is an edited version of the 2004 RDF XML Syntax - Specification Recommendation. The purpose of this revision is - to make this - document available as part of the RDF 1.2 document set. Changes are - limited to revised references, terminology updates, and adaptations to - the introduction. - The technical content of the document is unchanged, except for - the fact that the datatype XMLLiiteral is marked as - non-normative in RDF 1.2. The (non-normative) algorithm for - parsing XMLLiteral - (Sec. 7.2.17) - has been updated to be in line with - the current state of XML technology. Details of the changes - are listed in the Changes - section. Since the edits to this document do not invalidate - previous implementations the Director decided no new implementation report was required.

- +

This document is a part of the RDF 1.2 document suite. The + document defines the RDF/XML syntax, + a concrete syntax for RDF [[RDF12-CONCEPTS]].

+ +

There have been no substantive changes to this document since [[rdf-syntax-grammar]]. + Minor editorial changes, if any, are + detailed in .

+ @@ -139,9 +130,9 @@

An XML Syntax for RDF

encodes RDF graphs and explains this with examples. If there is any conflict between this informal description and the formal description of the syntax and grammar in sections - 6 Syntax Data Model and - 7 RDF/XML Grammar, the - latter two sections take precedence. + and + , + the latter two sections take precedence.

@@ -214,8 +205,11 @@

Introduction

Node Elements and Property Elements

- Graph for RDF/XML Example -
Graph for RDF/XML Example (SVG version)
+ + +

The image represents the graph described in .

+
+
Graph for RDF/XML Example

An RDF graph is given in Figure 1 @@ -227,8 +221,16 @@

Node Elements and Property Elements

graph shown in Figure 2:

- One Path Through the Graph -
One Path Through the Graph (SVG version)
+ + +

+ The image represents the graph described in + highlighting the path from `<http://www.w3.org/TR/rdf-syntax-grammar>` + to `<http://purl.org/net/dajobe>`. + Elements along the path are marked in bold text. +

+
+
One Path Through the Graph

The left hand side of the Figure 2 @@ -296,8 +298,8 @@

Node Elements and Property Elements

Example 2 gives the result in Example 3 (this example fails to show that the blank node is - shared between the two paths, see - 2.10):

+ shared between the two paths, + see ):

Property Attributes
     only if the property element name is not repeated
     (required by XML — attribute names are unique on an XML element)
     and any in-scope xml:lang on the
-    property element's string literal (if any) are the same (see
-    Section 2.7)
+    property element's string literal (if any) are the same
+    (see )
     This abbreviation is known as a Property Attribute
     and can be applied to any node element.

@@ -950,7 +952,7 @@

Container Membership Property Elements: rdf:li and rdf:_< Example 17. There is an rdf:li special property element that is equivalent to rdf:_1, rdf:_2 in order, - explained in detail in section 7.4. + explained in detail in . The mapping to the container membership properties is always done in the order that the rdf:li special property elements appear in XML — the document order is significant. @@ -1011,7 +1013,7 @@

Collections: rdf:parseType="Collection"

nodes of the collection. This syntax form corresponds to a set of triples connecting the collection of subject nodes, the exact triples generated are described in detail in - Section 7.2.19 Production parseTypeCollectionPropertyElt. + . The collection construction is always done in the order that the node elements appear in the XML document. Whether the order of the collection of nodes is significant is an application issue and not @@ -1053,7 +1055,7 @@

Reifying Statements: rdf:ID

The rdf:ID attribute can be used on a property element to reify the triple that it generates (See - section 7.3 Reification Rules for the + for the full details). The identifier for the triple should be constructed as a IRI @@ -1234,7 +1236,7 @@

Identifiers

  • given as XML attribute values interpreted as relative IRIs that are resolved against the in-scope base URI - as described in section 5.3 + as described in to give absolute IRIs
  • transformed from XML namespace-qualified element and attribute names (QNames)
  • @@ -1258,7 +1260,7 @@

    Identifiers

    IRIs by appending the attribute value to the result of appending "#" to the in-scope base URI which is defined in - Section 5.3 Resolving IRIs

    +

    Literal
    @@ -1413,7 +1415,7 @@

    Syntax Data Model

    Information Set Mapping. A sequence of events is normally derived from an XML document, in which case they are in document order as defined below in - Section 6.2 Information Set Mapping. + . The sequence these events form are intended to be similar to the sequence of events produced by the [[SAX]] XML API from the same XML document. Sequences of events may be checked against @@ -1801,7 +1803,7 @@

    IRI Event

    For further information on identifiers in the RDF graph, see - section 5.2.

    + .

    @@ -1837,7 +1839,7 @@

    Blank Node Identifier Event

    For further information on identifiers in the RDF graph, see - section 5.2.

    + .

    @@ -2022,7 +2024,7 @@

    Information Set Mapping

    Grammar Notation

    The following notation is used to describe matching the sequence - of data model events as given in Section 6 + of data model events as given in and the actions to perform for the matches. The RDF/XML grammar is defined in terms of mapping from these matched data model events to triples, using notation of the form:

    @@ -2045,7 +2047,7 @@

    Grammar Notation

    where the event-content is an expression matching - event-types (as defined in Section 6.1), + event-types (as defined in ), using notation given in the following sections. The number is used for reference purposes. The grammar action may include generating @@ -2072,7 +2074,7 @@

    Grammar General Notation

    rdf:X - A URI as defined in section 5.1. + A URI as defined in . "ABC" @@ -2187,8 +2189,8 @@

    Grammar Action Notation

    resolve(e, s) A string created by interpreting string s as a relative IRI to the - ·base-uri· accessor of e - as defined in Section 5.3 Resolving URIs. + ·base-uri· accessor of e + as defined in . The resulting string represents an IRI. @@ -2196,7 +2198,7 @@

    Grammar Action Notation

    generated-blank-node-id() A string value for a new distinct generated blank node identifier - as defined in section 5.2 Identifiers. + as defined in . @@ -2209,7 +2211,8 @@

    Grammar Action Notation

    bnodeid(identifier := value) - Create a new Blank Node Identifier Event. See also section 5.2 Identifiers. + Create a new Blank Node Identifier Event. + See also section . literal(literal-value := string,
    @@ -2473,7 +2476,7 @@

    Production coreSyntaxTerms

    A subset of the syntax terms from the RDF vocabulary in - section 5.1 + which are used in RDF/XML.

    @@ -2488,7 +2491,7 @@

    Production syntaxTerms

    All the syntax terms from the RDF vocabulary in - section 5.1 + which are used in RDF/XML.

    @@ -2718,7 +2721,7 @@

    Production propertyElt

    e.URI = rdf:li then apply the list expansion rules on element e.parent in - section 7.4 + to give a new URI u and e.URI := u.

    @@ -2760,7 +2763,7 @@

    Production resourcePropertyElt

    i := uri(identifier := resolve(e, concat("#", a.string-value))) using the reification rules in - section 7.3 + and e.subject := i

    @@ -2800,7 +2803,7 @@

    Production literalPropertyElt

    i := uri(identifier := resolve(e, concat("#", a.string-value))) using the reification rules in - section 7.3 + and e.subject := i.

    @@ -2821,7 +2824,7 @@

    Production parseTypeLiteralPropertyElt

    For element e and the literal l that is the rdf:parseType="Literal" content. l is not transformed by the syntax data model mapping into events - (as noted in section 6 Syntax Data Model) + (as noted in section ) but remains an XML Infoset of XML Information items.

    l is transformed into the lexical form of an @@ -2875,7 +2878,7 @@

    Production parseTypeLiteralPropertyElt

    i := uri(identifier := resolve(e, concat("#", a.string-value))) using the reification rules in - section 7.3 + and e.subject := i.

    @@ -2914,7 +2917,7 @@

    Production parseTypeResourcePropertyElt

    i := uri(identifier := resolve(e, concat("#", a.string-value))) using the reification rules in - section 7.3 + and e.subject := i.

    If the element content c is not empty, then use event @@ -2974,7 +2977,7 @@

    Production parseTypeCollectionPropertyElt

    i := uri(identifier := resolve(e, concat("#", a.string-value))) using the reification rules in - section 7.3. + .

    If s is empty, no further work is performed.

    @@ -3053,7 +3056,7 @@

    Production emptyPropertyElt

    and then if i is given, the above statement is reified with uri(identifier := resolve(e, concat("#", i.string-value))) using the reification rules in - section 7.3.

    + .

    Test: Indicated by @@ -3147,7 +3150,7 @@

    Production emptyPropertyElt

    reified with uri(identifier := resolve(e, concat("#", i.string-value))) using the reification rules in - section 7.3.

    + .

    @@ -3296,7 +3299,7 @@

    Production literal

    The string-value for the resulting event is discussed in - section 7.2.17.

    + .

    @@ -3526,8 +3529,8 @@

    Changes for RDF 1.1 Recommendation

  • Updated link to QName definition in XML-NAMES
  • Added diff with 2004 Recommendation
  • Sections concerning rdf:XMLLiteral - (Sec. 2.8 - and Sec. 7.2.17) + ( + and ) marked as non-normative.
  • Adapted Production