You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -919,21 +924,21 @@ <h3>RDF Term Constructors</h3>
919
924
<tr><th> production </th><th> type </th><th>procedure</th></tr>
920
925
</thead>
921
926
<tbody>
922
-
<trid="handle-IRIREF" ><tdstyle="text-align:left;" ><aclass="type IRI" href="#grammar-production-IRIREF" >IRIREF </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-iri" >IRI </a></td><td>The characters between "<" and ">" are taken, after the <a>numeric escape sequences</a> are processed, to form the Unicode string of the IRI. <adata-cite="RDF12-CONCEPTS#dfn-relative-iri">Relative IRI reference</a> resolution is performed per <ahref="#sec-iri-references" class="sectionRef"></a>.</td></tr>
927
+
<trid="handle-IRIREF" ><tdstyle="text-align:left;" ><aclass="type IRI" href="#grammar-production-IRIREF" >IRIREF </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-iri" >IRI </a></td><td>The characters between <ahref="#cp-less-than"><codetitle="less-than sign"><</code></a> and <ahref="#cp-greater-than"><codetitle="greater-than sign">></code></a> are taken, with the <adata-lt="numeric escape sequence">numeric escape sequences</a> unescaped, to form the IRI. <adata-cite="RDF12-CONCEPTS#dfn-relative-iri">Relative IRI reference</a> resolution is performed per <ahref="#sec-iri-references" class="sectionRef">Section 6.3</a>. The resulting IRI MUST comply with the <adata-cite="RFC3987#section-2.2">syntactic restrictions</a> of generic IRI syntax, and SHOULD conform to <adata-cite="RFC3986#section-3.3">section 3.3</a> of [[RFC3986]] and comply with any narrower restrictions imposed by the corresponding IRI scheme specification.</td></tr>
923
928
<trid="handle-PNAME_NS" ><tdstyle="text-align:left;" rowspan="2"><aclass="type string" href="#grammar-production-PNAME_NS" >PNAME_NS </a></td><td><ahref="#prefix" >prefix </a></td><td>When used in a <ahref="#grammar-production-prefixID"><code>prefixID</code></a> or <ahref="#grammar-production-sparqlPrefix"><code>sparqlPrefix</code></a> production, the <code>prefix</code> is the potentially empty Unicode string matching the first argument of the rule is a key into the <ahref="#namespaces">namespaces map</a>.</td></tr>
924
929
<trid="handle-PNAME-IRI" ><td><adata-cite="RDF12-CONCEPTS#dfn-iri" >IRI </a></td><td>When used in a <ahref="#grammar-production-PrefixedName"><code>PrefixedName</code></a> production, the <code>iri</code> is the value in the <ahref="#namespaces">namespaces map</a> corresponding to the first argument of the rule.</td></tr>
925
930
<trid="handle-PNAME_LN" ><tdstyle="text-align:left;" ><aclass="type IRI" href="#grammar-production-PNAME_LN" >PNAME_LN </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-iri" >IRI </a></td><td>A potentially empty <ahref="#prefix">prefix</a> is identified by the first sequence, <ahref="#grammar-production-PNAME_NS"><code>PNAME_NS</code></a>. The <ahref="#namespaces">namespaces map</a><emclass="rfc2119">MUST</em> have a corresponding <code>namespace</code>. The Unicode string of the IRI is formed by unescaping the <adata-lt="reserved character escape sequence">reserved characters</a> in the second argument, <ahref="#grammar-production-PN_LOCAL"><code>PN_LOCAL</code></a>, and concatenating this onto the <code>namespace</code>.</td></tr>
926
-
<trid="handle-VersionSpecifier" ><tdstyle="text-align:left;" ><aclass="type literal" href="#grammar-production-VersionSpecifier" >VersionSpecifier </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-literal" >literal </a></td><td>The |curVersion| is taken from a literal using the matched <adata-cite="RDF12-CONCEPTS#dfn-rdf-string">RDF string</a> lexical form and `xsd:string` datatype.</td></tr>
931
+
<trid="handle-VersionSpecifier" ><tdstyle="text-align:left;" ><aclass="type literal" href="#grammar-production-VersionSpecifier" >VersionSpecifier </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-rdf-literal" >literal </a></td><td>The |curVersion| is taken from a literal using the matched <adata-cite="RDF12-CONCEPTS#dfn-rdf-string">RDF string</a> lexical form and `xsd:string` datatype.</td></tr>
927
932
<trid="handle-STRING_LITERAL_SINGLE_QUOTE" ><tdstyle="text-align:left;" ><aclass="type lexicalForm" href="#grammar-production-STRING_LITERAL_SINGLE_QUOTE" >STRING_LITERAL_SINGLE_QUOTE </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-lexical-form">lexical form</a></td><td>The characters between the outermost <ahref="#cp-apostrophe"><codetitle="apostrophe">'</code></a>s are taken, with <adata-lt="numeric escape sequence">numeric</a> and <adata-lt="string escape sequence">string</a> escape sequences unescaped, to form the Unicode string of a lexical form.</td></tr>
928
933
<trid="handle-STRING_LITERAL_QUOTE" ><tdstyle="text-align:left;" ><aclass="type lexicalForm" href="#grammar-production-STRING_LITERAL_QUOTE" >STRING_LITERAL_QUOTE </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-lexical-form">lexical form</a></td><td>The characters between the outermost <ahref="#cp-quotation-mark"><codetitle="quotation mark">"</code></a>s are taken, with <adata-lt="numeric escape sequence">numeric</a> and <adata-lt="string escape sequence">string</a> escape sequences unescaped, to form the Unicode string of a lexical form.</td></tr>
929
934
<trid="handle-STRING_LITERAL_LONG_SINGLE_QUOTE"><tdstyle="text-align:left;" ><aclass="type lexicalForm" href="#grammar-production-STRING_LITERAL_LONG_SINGLE_QUOTE">STRING_LITERAL_LONG_SINGLE_QUOTE</a></td><td><adata-cite="RDF12-CONCEPTS#dfn-lexical-form">lexical form</a></td><td>The characters between the outermost <ahref="#cp-triple-apostrophe"><code>'''</code></a>s are taken, with <adata-lt="numeric escape sequence">numeric</a> and <adata-lt="string escape sequence">string</a> escape sequences unescaped, to form the unicode string of a lexical form.</td></tr>
930
935
<trid="handle-STRING_LITERAL_LONG_QUOTE" ><tdstyle="text-align:left;" ><aclass="type lexicalForm" href="#grammar-production-STRING_LITERAL_LONG_QUOTE" >STRING_LITERAL_LONG_QUOTE. </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-lexical-form">lexical form</a></td><td>The characters between the outermost <ahref="#cp-triple-quote"><code>"""</code></a>s are taken, with <adata-lt="numeric escape sequence">numeric</a> and <adata-lt="string escape sequence">string</a> escape sequences unescaped, to form the Unicode string of a lexical form.</td></tr>
931
936
<trid="handle-LANG_DIR" ><tdstyle="text-align:left;" ><aclass="type langDir" href="#grammar-production-LANG_DIR" >LANG_DIR </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a></td><td>The characters following the <ahref="#cp-at-sign"><codetitle="at sign">@</code></a> form the <adata-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a> and optionally the <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a>, if the matched characters include <ahref="#cp-hyphen-hyphen"><code>--</code></a>.</td></tr>
932
-
<trid="handle-RDFLiteral" ><tdstyle="text-align:left;" ><aclass="type literal" href="#grammar-production-RDFLiteral" >RDFLiteral </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-literal" >literal </a></td><td>The literal has a lexical form of the first rule argument, <ahref="#grammar-production-String"><code>String</code></a>. If the <code>'^^' iri</code> rule is matched, the <adata-cite="RDF12-CONCEPTS#dfn-datatype-iri">datatype IRI</a> is derived from the <code>iri</code>, and the literal has no language tag. If the <ahref="#grammar-production-LANG_DIR" class="type langDir"><code>LANG_DIR</code></a> rule is matched, the <adata-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a> and <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a> are taken from <ahref=#handle-LANG_DIRclass="type langDir"><code>LANG_DIR</code></a>. If there is no <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a>, the datatype is <code>rdf:langString</code>. If there is an <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a>, the datatype is <code>rdf:dirLangString</code>. If neither matched, the datatype is <code>xsd:string</code>, and the literal has no language tag.</td></tr>
933
-
<trid="handle-INTEGER" ><tdstyle="text-align:left;" ><aclass="type integer" href="#grammar-production-INTEGER" >INTEGER </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-literal" >literal </a></td><td>The literal has a lexical form of the input string, and a datatype of <code>xsd:integer</code>.</td></tr>
934
-
<trid="handle-DECIMAL" ><tdstyle="text-align:left;" ><aclass="type decimal" href="#grammar-production-DECIMAL" >DECIMAL </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-literal" >literal </a></td><td>The literal has a lexical form of the input string, and a datatype of <code>xsd:decimal</code>.</td></tr>
935
-
<trid="handle-DOUBLE" ><tdstyle="text-align:left;" ><aclass="type double" href="#grammar-production-DOUBLE" >DOUBLE </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-literal" >literal </a></td><td>The literal has a lexical form of the input string, and a datatype of <code>xsd:double</code>.</td></tr>
936
-
<trid="handle-BooleanLiteral" ><tdstyle="text-align:left;" ><aclass="type boolean" href="#grammar-production-BooleanLiteral" >BooleanLiteral </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-literal" >literal </a></td><td>The literal has a lexical form of the <code>true</code> or <code>false</code>, depending on which matched the input, and a datatype of <code>xsd:boolean</code>.</td></tr>
937
+
<trid="handle-RDFLiteral" ><tdstyle="text-align:left;" ><aclass="type literal" href="#grammar-production-RDFLiteral" >RDFLiteral </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-rdf-literal" >literal </a></td><td>The literal has a lexical form of the first rule argument, <ahref="#grammar-production-String"><code>String</code></a>. If the <code>'^^' iri</code> rule is matched, the <adata-cite="RDF12-CONCEPTS#dfn-datatype-iri">datatype IRI</a> is derived from the <code>iri</code>, and the literal has no language tag. If the <ahref="#grammar-production-LANG_DIR" class="type langDir"><code>LANG_DIR</code></a> rule is matched, the <adata-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a> and <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a> are taken from <ahref=#handle-LANG_DIRclass="type langDir"><code>LANG_DIR</code></a>. If there is no <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a>, the datatype is <code>rdf:langString</code>. If there is an <adata-cite="RDF12-CONCEPTS#dfn-base-direction">initial text direction</a>, the datatype is <code>rdf:dirLangString</code>. If neither matched, the datatype is <code>xsd:string</code>, and the literal has no language tag.</td></tr>
938
+
<trid="handle-INTEGER" ><tdstyle="text-align:left;" ><aclass="type integer" href="#grammar-production-INTEGER" >INTEGER </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-rdf-literal" >literal </a></td><td>The literal has a lexical form of the input string, and a datatype of <code>xsd:integer</code>.</td></tr>
939
+
<trid="handle-DECIMAL" ><tdstyle="text-align:left;" ><aclass="type decimal" href="#grammar-production-DECIMAL" >DECIMAL </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-rdf-literal" >literal </a></td><td>The literal has a lexical form of the input string, and a datatype of <code>xsd:decimal</code>.</td></tr>
940
+
<trid="handle-DOUBLE" ><tdstyle="text-align:left;" ><aclass="type double" href="#grammar-production-DOUBLE" >DOUBLE </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-rdf-literal" >literal </a></td><td>The literal has a lexical form of the input string, and a datatype of <code>xsd:double</code>.</td></tr>
941
+
<trid="handle-BooleanLiteral" ><tdstyle="text-align:left;" ><aclass="type boolean" href="#grammar-production-BooleanLiteral" >BooleanLiteral </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-rdf-literal" >literal </a></td><td>The literal has a lexical form of the <code>true</code> or <code>false</code>, depending on which matched the input, and a datatype of <code>xsd:boolean</code>.</td></tr>
937
942
<trid="handle-BLANK_NODE_LABEL" ><tdstyle="text-align:left;" ><aclass="type bNode" href="#grammar-production-BLANK_NODE_LABEL" >BLANK_NODE_LABEL </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-blank-node" >blank node </a></td><td>The string matching the second argument, <ahref="#grammar-production-PN_LOCAL"><code>PN_LOCAL</code></a>, is a key in <ahref="#bnodeLabels">bnodeLabels</a>. If there is no corresponding blank node in the map, one is allocated.</td></tr>
<trid="handle-blankNodePropertyList" ><tdstyle="text-align:left;" ><aclass="type bNode" href="#grammar-production-blankNodePropertyList" >blankNodePropertyList </a></td><td><adata-cite="RDF12-CONCEPTS#dfn-blank-node" >blank node </a></td><td>A blank node is generated. Note the rules for <code>blankNodePropertyList</code> in the next section.</td></tr>
@@ -972,7 +977,20 @@ <h3>RDF Term Constructors</h3>
972
977
</tr>
973
978
</tbody>
974
979
</table>
980
+
981
+
<pclass="note">As processors which detect errors on input can result in
982
+
graphs which contain fewer triples than are described in the input
983
+
(including no triples whatsoever),
984
+
consumers should consider information of any errors signaled
0 commit comments