Skip to content

Commit 79b9b40

Browse files
pfpspchampinTallTedniklasl
authored
fix up definitions to account for triple terms (#117)
* fix up defintions in Section 4 to account for triple terms * fix up simple entailment for triple terms with blank nodes * Update spec/index.html Co-authored-by: Pierre-Antoine Champin <[email protected]> * Update spec/index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> * Update spec/index.html Co-authored-by: Niklas Lindström <[email protected]> --------- Co-authored-by: Pierre-Antoine Champin <[email protected]> Co-authored-by: Ted Thibodeau Jr <[email protected]> Co-authored-by: Niklas Lindström <[email protected]>
1 parent bc48236 commit 79b9b40

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

spec/index.html

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ <h2>Notation and Terminology</h2>
177177
<p>This document uses the following terminology for describing RDF graph syntax, all as defined in the companion RDF Concepts specification [[!RDF12-CONCEPTS]]:
178178
<dfn data-cite="RDF12-CONCEPTS#dfn-iri">IRI</dfn><span id="dfn-iri"></span>,
179179
<dfn data-cite="RDF12-CONCEPTS#dfn-rdf-triple" data-lt="triple">RDF triple</dfn><span id="dfn-rdf-triple"><!-- refer to RDF Concepts term --></span>,
180+
<dfn data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</dfn><span id="dfn-triple-term"><!-- refer to RDF Concepts term --></span>,
180181
<dfn data-cite="RDF12-CONCEPTS#dfn-rdf-graph" data-lt="graph">RDF graph</dfn><span id="dfn-rdf-graph"><!-- refer to RDF Concepts term --></span>,
181182
<dfn data-cite="RDF12-CONCEPTS#dfn-subject">subject</dfn><span id="dfn-subject"><!-- refer to RDF Concepts term --></span>,
182183
<dfn data-cite="RDF12-CONCEPTS#dfn-predicate">predicate</dfn><span id="dfn-predicate"><!-- refer to RDF Concepts term --></span>,
@@ -185,6 +186,7 @@ <h2>Notation and Terminology</h2>
185186
<dfn data-cite="RDF12-CONCEPTS#dfn-node">node</dfn><span id="dfn-node"><!-- refer to RDF Concepts term --></span>,
186187
<dfn data-cite="RDF12-CONCEPTS#dfn-blank-node">blank node</dfn><span id="dfn-blank-node"><!-- refer to RDF Concepts term --></span>,
187188
<dfn data-cite="RDF12-CONCEPTS#dfn-literal">literal</dfn><span id="dfn-literal"><!-- refer to RDF Concepts term --></span>,
189+
<dfn data-cite="RDF12-CONCEPTS#dfn-rdf-term">RDF term</dfn><span id="dfn-rdf-term"><!-- refer to RDF Concepts term --></span>,
188190
<dfn data-cite="RDF12-CONCEPTS#dfn-graph-isomorphism">isomorphic</dfn><span id="dfn-isomorphic"></span>,
189191
<dfn data-cite="RDF12-CONCEPTS#dfn-appear" data-lt="appearing in">appears in</dfn><span id="dfn-appears-in"></span>, and
190192
<dfn data-cite="RDF12-CONCEPTS#dfn-rdf-dataset" data-lt="dataset">RDF dataset</dfn><span id="dfn-rdf-dataset"><!-- refer to RDF Concepts term --></span>.
@@ -193,7 +195,13 @@ <h2>Notation and Terminology</h2>
193195
<dfn data-cite="RDF12-CONCEPTS#dfn-generalized-rdf-graph">generalized RDF graphs</dfn>, and
194196
<dfn data-cite="RDF12-CONCEPTS#dfn-generalized-rdf-dataset">generalized RDF datasets</dfn>.</p>
195197

196-
<p>An <dfn class="export">interpretation</dfn> is a mapping from IRIs and literals into a set,
198+
<p>A <dfn>ground RDF graph</dfn> is an RDF graph in which no blank nodes appear.
199+
A <dfn>ground RDF term</dfn> is an RDF term in which no blank nodes appear.
200+
A <dfn>ground triple term</dfn> is a triple term term in which no blank nodes appear.
201+
A <dfn>ground RDF triple</dfn> is an RDF triple in which no blank nodes appear.</p>
202+
<!-- This may end up in RDF Concepts -->
203+
204+
<p>An <dfn class="export">interpretation</dfn> is a mapping from <a>ground RDF terms</a> into a set,
197205
together with some constraints upon the set and the mapping.
198206
This document defines various notions of interpretation,
199207
each corresponding in a standard way to an entailment regime.
@@ -204,7 +212,7 @@ <h2>Notation and Terminology</h2>
204212
but if clear from the context might refer to a specific kind of interpretation.</p>
205213

206214
<p>The word <dfn id="dfn-denote" data-cite="RDF12-CONCEPTS#dfn-denote" data-lt="denote" data-local-lt="denoted">denotes</dfn>
207-
is used here for the relationship between an <a>IRI</a> or <a>literal</a>
215+
is used here for the relationship between a <a>ground RDF term</a>
208216
and what it refers to in a given interpretation,
209217
itself called the <dfn id="dfn-referent" data-cite="RDF12-CONCEPTS#dfn-referent">referent</dfn>.
210218
(The phrase <dfn class="no-export lint-ignore">refer to</dfn> is often used instead of denote and
@@ -246,7 +254,6 @@ <h2>Notation and Terminology</h2>
246254
so that each triple in a graph is considered to be a subgraph.
247255
A <dfn>proper subgraph</dfn> is a proper subset of the triples in the graph.</p>
248256

249-
<p>A <dfn>ground</dfn> RDF graph is one that contains no blank nodes.</p>
250257

251258
<p>
252259
For RDF terms t, x, and y, where either y is not a triple term or x does not appear in y, we define the <dfn>substitution mapping</dfn> t[x/y] inductively, as follows:
@@ -271,16 +278,9 @@ <h2>Notation and Terminology</h2>
271278

272279
<p class="issue">the defined term "RDF term" is not accessible from outside this document, which is a problem (RDF semantics, and probably other specs, need to reference it). There are other definitions in this spec that need to be exported - see <a href="https://github.com/w3c/rdf-concepts/issues/152">issue #152</a> in RDF-concepts.</p>
273280

274-
275-
<p>An <dfn class="no-export lint-ignore">instance with respect to</dfn> a vocabulary
276-
V is an <a>instance</a> in which all the
277-
<a>names</a> in the instance that were substituted
278-
for blank nodes in the original are <a>names</a>
279-
from V.</p>
280-
281281
<p>A <dfn>proper instance</dfn> of a graph
282-
is an <a>instance</a> in which a blank node has been replaced by a <a>name</a>, or two blank
283-
nodes in the graph have been mapped into the same node in the instance. </p>
282+
is an <a>instance</a> in which a blank node has been mapped into something other than a blank node, or two blank
283+
nodes in the graph have been mapped into the same blank node. </p>
284284

285285
<p>Two graphs are <a data-cite="RDF12-CONCEPTS#dfn-graph-isomorphism">isomorphic</a> when each maps into the other by a 1:1 mapping on blank nodes. Isomorphic graphs are mutual instances with an invertible instance
286286
mapping. As blank nodes have no particular identity beyond their location in a graph, we will often treat isomorphic graphs as identical.</p>
@@ -500,10 +500,14 @@ <h3>Blank nodes</h3>
500500

501501
<p>Suppose I is a simple interpretation and A is a mapping from a set of blank nodes
502502
to the universe IR of I.
503-
Define the mapping [I+A] to be I on <a>names</a>,
504-
and A on blank nodes on the set: [I+A](x)=I(x) when x is a <a>name</a>
505-
and [I+A](x)=A(x) when x is a blank node;
506-
and extend this mapping to triples and RDF graphs using the rules given above for ground graphs.
503+
Define the mapping [I+A] as:</p>
504+
<ul>
505+
<li> [I+A](x)=I(x) when x is a <a>name</a>, </li>
506+
<li> [I+A](x)=A(x) when x is a blank node, </li>
507+
<li> [I+A](x)= RE( [I+A](x.s), [I+A](x.p), [I+A](x.o) ) where x.s, x.p, and x.o are the first, second, and third components of x, respectively. </li>
508+
</ul>
509+
<p>
510+
Extend this mapping to triples and RDF graphs using the rules given above for ground graphs.
507511
Then the semantic conditions for an RDF graph are:</p>
508512

509513
<table>

0 commit comments

Comments
 (0)