Skip to content

Commit ace9abc

Browse files
authored
Merge pull request #92 from doerthe/substitution
Substitution function and entailment patterns rdfs14 and rdfD1
2 parents 39805f4 + 3a56325 commit ace9abc

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

spec/index.html

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,23 @@ <h2>Notation and Terminology</h2>
272272
if the triple term composed by its subject, predicate, and object appears in G.
273273
</p>
274274

275+
276+
277+
278+
279+
<p>
280+
For RDF terms t, x, and y, we define the <dfn>substitution mapping</dfn> t[x/y] inductively, as follows:
281+
</p>
282+
<ol>
283+
<li>If t = x, then t[x/y] = y.</li>
284+
<li>Otherwise, if t = (s, p, o), then t[x/y] = (s[x/y], p[x/y], o[x/y]).</li>
285+
<li>Otherwise, t[x/y] = t.</li>
286+
</ol>
287+
<p>
288+
For each triple (s, p, o), we set (s, p, o)[x/y] = (s[x/y], p[x/y], o[x/y]). For each graph G, we obtain G[x/y] by applying [x/y] to each triple t in G.
289+
</p>
290+
291+
275292
<p>Suppose that M is a functional mapping from a set of blank
276293
nodes to some set of RDF terms. Any graph obtained
277294
from a graph G by replacing some or all of the blank nodes N appearing in G by M(N) is
@@ -1074,9 +1091,9 @@ <h4>Patterns of RDF entailment (Informative)</h4>
10741091
</tr>
10751092
<tr >
10761093
<td class="othertable"><dfn>rdfD1</dfn></td>
1077-
<td class="othertable"> xxx aaa <code>"</code>sss<code>"^^</code>ddd <code>.</code> <br/>
1094+
<td class="othertable">Any triple ttt such that <code>"</code>sss<code>"^^</code>ddd appears in ttt <br/>
10781095
for ddd in D</td>
1079-
<td class="othertable">xxx aaa _:nnn <code>.</code><br/>
1096+
<td class="othertable">ttt [<code>"</code>sss<code>"^^</code>ddd/_:nnn] <br/>
10801097
_:nnn <code>rdf:type</code> ddd <code>.</code></td>
10811098
</tr>
10821099
</tbody>
@@ -1478,6 +1495,11 @@ <h4>Patterns of RDFS entailment (Informative)</h4>
14781495
yyy aaa zzz <code>.</code></td>
14791496
<td class="othertable">zzz <code>rdf:type</code> xxx <code>.</code></td>
14801497
</tr>
1498+
<tr >
1499+
<td class="othertable"><dfn>rdfs4</dfn></td>
1500+
<td class="othertable">Any triple ttt such that xxx appears in ttt</td>
1501+
<td class="othertable">xxx <code>rdf:type rdfs:Resource .</code>
1502+
</tr>
14811503
<tr >
14821504
<td class="othertable"><dfn>rdfs5</dfn></td>
14831505
<td class="othertable"> xxx <code>rdfs:subPropertyOf</code> yyy <code>.</code><br />
@@ -1527,34 +1549,14 @@ <h4>Patterns of RDFS entailment (Informative)</h4>
15271549
<td class="othertable">xxx <code>rdf:type rdfs:Datatype .</code></td>
15281550
<td class="othertable">xxx <code>rdfs:subClassOf rdfs:Literal .</code></td>
15291551
</tr>
1530-
</tbody>
1531-
</table>
1532-
1533-
<p></p>
1534-
1535-
<table id="rdfs_entailment_patterns_recursive">
1536-
<tbody>
1537-
<tr>
1538-
<th ></th>
1539-
<th >If the triple <a>appears in</a> S:</th>
1540-
<th >then S RDFS <a>entails recognizing D</a>:</th>
1541-
</tr>
1542-
<tr >
1543-
<td class="othertable"><dfn>rdfs4</dfn></td>
1544-
<td class="othertable">xxx aaa yyy <code>.</code></td>
1545-
<td class="othertable">xxx <code>rdf:type rdfs:Resource .</code><br/>
1546-
yyy <code>rdf:type rdfs:Resource .</code></td>
1547-
</tr>
15481552
<tr >
15491553
<td class="othertable"><dfn>rdfs14</dfn></td>
1550-
<td class="othertable">xxx yyy &lt;&lt;(aaa bbb ccc)>> <code>.</code></td>
1551-
<td class="othertable">the graph S with the appearance replaced with<br/>
1552-
xxx yyy _:nnn <code></code><br/><br/>
1554+
<td class="othertable">Any triple ttt such that &lt;&lt;(aaa bbb ccc)&gt;&gt; appears in ttt</td>
1555+
<td class="othertable">ttt [&lt;&lt;(aaa bbb ccc)>>/_:nnn]<br/>
15531556
_:nnn <code>rdf:type rdfs:Proposition .</code></td>
15541557
</tr>
15551558
</tbody>
15561559
</table>
1557-
15581560
<p>As an example of a RDFS entailment involving triple terms using the entailment pattern rdfs14, the following graph &mdash;</p>
15591561

15601562
<p><code>ex:a ex:b &lt;&lt;( ex:c ex:d &lt;&lt;(ex:e ex:f ex:g)>> )>> .</code></p>

0 commit comments

Comments
 (0)