Skip to content

Commit 8b344fa

Browse files
committed
GH-134: Move Graph Comparison section to after 3.5 Triple Terms
1 parent bca8a46 commit 8b344fa

File tree

1 file changed

+33
-38
lines changed

1 file changed

+33
-38
lines changed

spec/index.html

+33-38
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,39 @@ <h3>Triple Terms</h3>
879879
as its <a>predicate</a>.</p>
880880
</section>
881881

882+
<section id="graph-isomorphism">
883+
<h3>Graph Comparison</h3>
884+
885+
<p id="section-graph-equality">Two
886+
<a>RDF graphs</a> <var>G</var> and <var>G'</var> are
887+
<dfn data-lt="graph isomorphism|isomorphic" data-lt-noDefault class="export">isomorphic</dfn>
888+
(that is, they have an identical form)
889+
if there is a bijection <var>M</var>
890+
from the set of all <a>RDF terms</a> into that same set,
891+
such that all of the following properties hold:</p>
892+
893+
<ul>
894+
<li><var>M</var> maps blank nodes to blank nodes.</li>
895+
<li><var>M</var>(<var>lit</var>)=<var>lit</var> for every <a>RDF literal</a> <var>lit</var>.</li>
896+
897+
<li><var>M</var>(<var>iri</var>)=<var>iri</var> for every <a>IRI</a> <var>iri</var>.</li>
898+
899+
<li><var>M</var>(<var>tt</var>) is the triple term ( <var>M</var>(<var>s</var>), <var>M</var>(<var>p</var>), <var>M</var>(<var>o</var>) ) if <var>tt</var> is a triple term of the form ( <var>s</var>, <var>p</var>, <var>o</var> ).</li>
900+
901+
<li>The triple ( <var>s</var>, <var>p</var>, <var>o</var> ) is in <var>G</var> if and
902+
only if the triple ( <var>M</var>(<var>s</var>), <var>M</var>(<var>p</var>), <var>M</var>(<var>o</var>) ) is in
903+
<var>G'</var>.</li>
904+
</ul>
905+
906+
<p>See also: <a>IRI equality</a>, <a>literal term equality</a>.</p>
907+
908+
<p>With this definition, <var>M</var> shows how each blank node
909+
in <var>G</var> can be replaced with
910+
a new blank node to give <var>G'</var>. Graph isomorphism
911+
is needed to support the RDF Test Cases [[RDF11-TESTCASES]] specification.</p>
912+
913+
</section>
914+
882915
<section id="section-text-direction" class="informative">
883916
<h3>Initial Text Direction</h3>
884917

@@ -953,44 +986,6 @@ <h3>Replacing Blank Nodes with IRIs</h3>
953986
IRI that results in a well-known <a>URI</a> after IRI-to-URI mapping [[!RFC3987]].</p>
954987
</section>
955988

956-
<section id="graph-isomorphism">
957-
<h3>Graph Comparison</h3>
958-
959-
<p id="section-graph-equality">Two
960-
<a>RDF graphs</a> <var>G</var> and <var>G'</var> are
961-
<dfn data-lt="graph isomorphism|isomorphic" data-lt-noDefault class="export">isomorphic</dfn>
962-
(that is, they have an identical form)
963-
if there is a bijection <var>M</var>
964-
from the set of all <a>RDF terms</a> into that same set,
965-
such that all of the following properties hold:</p>
966-
967-
<ul>
968-
<li><var>M</var> maps blank nodes to blank nodes.</li>
969-
<li><var>M</var>(<var>lit</var>)=<var>lit</var> for every <a>RDF literal</a> <var>lit</var>.</li>
970-
971-
<li><var>M</var>(<var>iri</var>)=<var>iri</var> for every <a>IRI</a> <var>iri</var>.</li>
972-
973-
<li><var>M</var>(<var>tt</var>) is the triple term ( <var>M</var>(<var>s</var>), <var>M</var>(<var>p</var>), <var>M</var>(<var>o</var>) ) if <var>tt</var> is a triple term of the form ( <var>s</var>, <var>p</var>, <var>o</var> ).</li>
974-
975-
<li>The triple ( <var>s</var>, <var>p</var>, <var>o</var> ) is in <var>G</var> if and
976-
only if the triple ( <var>M</var>(<var>s</var>), <var>M</var>(<var>p</var>), <var>M</var>(<var>o</var>) ) is in
977-
<var>G'</var>.</li>
978-
</ul>
979-
980-
<p>See also: <a>IRI equality</a>, <a>literal term equality</a>.</p>
981-
982-
<p>With this definition, <var>M</var> shows how each blank node
983-
in <var>G</var> can be replaced with
984-
a new blank node to give <var>G'</var>. Graph isomorphism
985-
is needed to support the RDF Test Cases [[RDF11-TESTCASES]] specification.</p>
986-
987-
<div class="issue" data-number="128">
988-
Graph isomorphism needs the following extra clause:
989-
<ul>
990-
<li>M(tt) is the triple term ( M(s), M(p), M(o) ) for tt a triple term of the form (s, p, o)</li>
991-
</ul>
992-
</div>
993-
</section>
994989
</section>
995990

996991
<section id="section-dataset">

0 commit comments

Comments
 (0)