Skip to content

Commit dd42f0e

Browse files
committed
adapts the definition of the abstract syntax to use the notion of a triple term (as per option 3 of w3c/rdf-star-wg#112) instead of quoted triples and asserted triples
1 parent 2ff13d4 commit dd42f0e

File tree

1 file changed

+38
-40
lines changed

1 file changed

+38
-40
lines changed

spec/index.html

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
are comprised of a default graph and zero or more named graphs.</li>
6868
</ul>
6969

70-
<p>RDF 1.2 introduces <a>quoted triples</a> as another kind of <a>RDF term</a>
70+
<p>RDF 1.2 introduces <a>triple terms</a> as another kind of <a>RDF term</a>
7171
which can be used as the <a>subject</a> or <a>object</a> of another <a>triple</a>.
7272
RDF 1.2 also introduces <a>directional language-tagged strings</a>,
7373
which contain a <a>base direction</a> element that allows the
@@ -130,7 +130,7 @@ <h3>Graph-based Data Model</h3>
130130

131131
<p>There can be four kinds of <a>nodes</a> in an
132132
<a>RDF graph</a>: <a>IRIs</a>, <a>literals</a>,
133-
<a>blank nodes</a>, and <a>quoted triples</a>.</p>
133+
<a>blank nodes</a>, and <a>triple terms</a>.</p>
134134

135135
</section>
136136

@@ -492,12 +492,12 @@ <h2>RDF Documents and Syntaxes</h2>
492492
<ul>
493493
<li><dfn class="no-export lint-ignore">Full</dfn> conformance
494494
supports <a data-lt="RDF graph">graphs</a> and <a data-lt="RDF dataset">datasets</a>
495-
containing <a>quoted triples</a>.
495+
with <a>triples</a> that contain <a>triple terms</a>.
496496
Concrete syntaxes in which such graphs and datasets can be expressed include
497497
[[RDF12-N-TRIPLES]], [[RDF12-N-QUADS]], [[RDF12-TURTLE]], and [[RDF12-TRIG]].</li>
498498
<li><dfn class="no-export lint-ignore">Classic</dfn> conformance
499-
only supports <a data-lt="RDF graph">graphs</a> or <a data-lt="RDF dataset">datasets</a>,
500-
that do not contain <a>quoted triples</a>.</li>
499+
only supports <a data-lt="RDF graph">graphs</a> or <a data-lt="RDF dataset">datasets</a>
500+
with <a>triples</a> that do not contain <a>triple terms</a>.</li>
501501
</ul>
502502
<p class="ednote">The conformance levels described above are tentative,
503503
and still the subject of group discussion. An alternative to conformance
@@ -538,72 +538,70 @@ <h2>RDF Graphs</h2>
538538
<section id="section-triples">
539539
<h3>Triples</h3>
540540

541-
<p>An <dfn data-local-lt="triple">RDF triple</dfn> is a 3-tuple that is defined recursively as follows:</p>
541+
<p>An <dfn data-local-lt="triple">RDF triple</dfn> (usually called "triple")
542+
is a 3-tuple (|s|, |p|, |o|) where:</p>
543+
544+
<ul>
545+
<li>|s| is an <a>IRI</a> or a <a>blank node</a>,</li>
546+
<li>|p| is an <a>IRI</a>, and</li>
547+
<li>|o| is an <a>IRI</a>, a <a>blank node</a>, a <a>literal</a>,
548+
or a <a>triple term</a>.</li>
549+
</ul>
550+
551+
<p>An <dfn>triple term</dfn> is a 3-tuple that is defined recursively as follows:</p>
542552

543553
<ul>
544554
<li>
545555
If |s| is an <a>IRI</a> or a <a>blank node</a>,
546556
|p| is an <a>IRI</a>, and
547557
|o| is an <a>IRI</a>, a <a>blank node</a>, or a <a>literal</a>,
548-
then (|s|, |p|, |o|) is an RDF triple.
558+
then (|s|, |p|, |o|) is a triple term.
549559
</li>
550560

551561
<li>
552-
If |t| and <var>t'</var> are <a>RDF triples</a>,
553-
|s| is an <a>IRI</a> or a <a>blank node</a>,
562+
If |s| is an <a>IRI</a> or a <a>blank node</a>,
554563
|p| is an <a>IRI</a>, and
555-
|o| is an <a>IRI</a>, a <a>blank node</a>, or a <a>literal</a>,
556-
then (|t|, |p|, |o|), (|s|, |p|, |t|), and (|t|, |p|, <var>t'</var>) are RDF triples.
564+
|t| is a <a>triple term</a>,
565+
then (|s|, |p|, |t|) is a triple term.
557566
</li>
558567
</ul>
559568

560-
<p>"RDF triple" is usually written "<a>triple</a>".<p>
561-
562569
<p>Given a <a>triple</a> (|s|, |p|, |o|),
563570
|s| is called the <dfn>subject</dfn> of the triple,
564571
|p| is called the <dfn>predicate</dfn> of the triple, and
565-
|o| is called the <dfn>object</dfn> of the triple.</p>
566-
567-
<p>When an <a>RDF triple</a> is used as the <a>subject</a> or <a>object</a> of a triple, this occurrence of
568-
the triple is called a <dfn data-local-lt="quoted">quoted triple</dfn>.</p>
569-
570-
<p class="note">By the given definitions,
571-
the <a>subject</a> of an <a>RDF triple</a> may be either an <a>IRI</a>,
572-
a <a>blank node</a>, or a <a>quoted triple</a>;
573-
the <a>predicate</a> of an <a>RDF triple</a> may only be an <a>IRI</a>;
574-
the <a>object</a> of an <a>RDF triple</a> may be either an <a>IRI</a>,
575-
a <a>blank node</a>, a <a>literal</a> or a <a>quoted triple</a>.</p>
576-
577-
<p class="note">The definition of <a>quoted triple</a> is recursive.
578-
That is, a <a>quoted triple</a> can itself have a
579-
<a>subject</a> or <a>object</a> component which is another <a>quoted triple</a>.
580-
However, by this definition, cycles of <a>quoted triples</a> cannot be created.</p>
572+
|o| is called the <dfn>object</dfn> of the triple.
573+
Similarly, given a <a>triple term</a> (|s|, |p|, |o|),
574+
|s| is called the <em>subject</em> of the triple term,
575+
|p| is called the <em>predicate</em> of the triple term, and
576+
|o| is called the <em>object</em> of the triple term.</p>
577+
578+
<p class="note">While, syntactically, the notion of an <a>RDF triple</a>
579+
and the notion of a <a>triple term</a> are the same, they represent
580+
different concepts. RDF triples are the members of <a>RDF graphs</a>,
581+
whereas triple terms can be used as components of RDF triples.</p>
582+
583+
<p class="note">The definition of <a>triple term</a> is recursive.
584+
That is, a <a>triple term</a> can itself have an
585+
<a>object</a> component which is another <a>triple term</a>.
586+
However, by this definition, cycles of <a>triple terms</a> cannot be created.</p>
581587

582588
<p><a>IRIs</a>, <a>literals</a>,
583-
<a>blank nodes</a>, and <a>quoted triples</a> are collectively known as
589+
<a>blank nodes</a>, and <a>triple terms</a> are collectively known as
584590
<span id="dfn-rdf-terms"><!-- obsolete term--></span><dfn data-lt="rdf term">RDF terms</dfn>.</p>
585591

586592
<p><a>IRIs</a>, <a>literals</a>,
587-
<a>blank nodes</a>, and <a>quoted triples</a> are distinct and distinguishable.
593+
<a>blank nodes</a>, and <a>triple terms</a> are distinct and distinguishable.
588594
For example, a literal with the string <code>http://example.org/</code> as
589595
its <a>lexical form</a>
590596
is not equal to the IRI <code>http://example.org/</code>,
591597
nor to a blank node with the <a>blank node identifier</a>
592598
<code>http://example.org/</code>.</p>
593599

594600
<p>The set of <span id="dfn-nodes"><!-- obsolete term--></span><dfn data-lt="node">nodes</dfn> of an <a>RDF graph</a>
595-
is the set of <a>subjects</a> and <a>objects</a> of <a>triples</a> in the graph.
601+
is the set of <a>subjects</a> and <a>objects</a> of the <a>triples</a> in the graph.
596602
It is possible for a predicate IRI to also occur as a node in
597603
the same graph.</p>
598604

599-
<p>An <dfn data-local-lt="asserted">asserted triple</dfn>
600-
is an <a>RDF triple</a> that is an element of an <a>RDF graph</a>.</p>
601-
602-
<p class="note">In an <a>RDF graph</a>,
603-
a <a>triple</a> may occur as either a <a>quoted triple</a>, an
604-
<a>asserted triple</a>, or both.</p>
605-
</section>
606-
607605
<section id="section-IRIs">
608606
<h3>IRIs</h3>
609607

0 commit comments

Comments
 (0)