Skip to content

Commit d2a6a3b

Browse files
committed
substitution, entailment patterns rdfs4, rdfs14, rdfD1
1 parent 4d34ac7 commit d2a6a3b

File tree

1 file changed

+23
-32
lines changed

1 file changed

+23
-32
lines changed

spec/index.html

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -271,16 +271,20 @@ <h2>Notation and Terminology</h2>
271271
A triple <b><i>appears in</i></b> a graph G
272272
if it is in G or
273273
if the triple term composed by its subject, predicate, and object appears in G.
274-
<p/>
274+
</p>
275+
275276

276-
<p>
277-
For RDF terms t, x and y, we define the <dfn>substitution mapping</dfn>, t[x/y] inductively as follows:
278-
(1) if t=x, then t[x/y]=y;
279-
(2) if t = (s,p,o) and t &ne; x, then t[x/y]= (s[x/y], p[x/y], o[x/y]=y);
280-
(3) t[x/y]=t, else.
281-
<br/><br/>
282-
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.
283-
<p/>
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+
<ol>
282+
<li> if t=x, then t[x/y]=y; </li>
283+
<li> if t = (s,p,o) and t &ne; x, then t[x/y]= (s[x/y], p[x/y], o[x/y]=y);</li>
284+
<li> else, t[x/y]=t. </li>
285+
</ol>
286+
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.
287+
</p>
284288

285289

286290
<p>Suppose that M is a functional mapping from a set of blank
@@ -1085,9 +1089,9 @@ <h4>Patterns of RDF entailment (Informative)</h4>
10851089
</tr>
10861090
<tr >
10871091
<td class="othertable"><dfn>rdfD1</dfn></td>
1088-
<td class="othertable"> xxx aaa <code>"</code>sss<code>"^^</code>ddd <code>.</code> <br/>
1092+
<td class="othertable"> ttt and <code>"</code>sss<code>"^^</code>ddd appears in ttt <br/>
10891093
for ddd in D</td>
1090-
<td class="othertable">xxx aaa _:nnn <code>.</code><br/>
1094+
<td class="othertable">ttt [<code>"</code>sss<code>"^^</code>/_:nnn] <br/>
10911095
_:nnn <code>rdf:type</code> ddd <code>.</code></td>
10921096
</tr>
10931097
</tbody>
@@ -1489,6 +1493,11 @@ <h4>Patterns of RDFS entailment (Informative)</h4>
14891493
yyy aaa zzz <code>.</code></td>
14901494
<td class="othertable">zzz <code>rdf:type</code> xxx <code>.</code></td>
14911495
</tr>
1496+
<tr >
1497+
<td class="othertable"><dfn>rdfs4</dfn></td>
1498+
<td class="othertable">ttt and xxx appears in ttt</td>
1499+
<td class="othertable">xxx <code>rdf:type rdfs:Resource .</code>
1500+
</tr>
14921501
<tr >
14931502
<td class="othertable"><dfn>rdfs5</dfn></td>
14941503
<td class="othertable"> xxx <code>rdfs:subPropertyOf</code> yyy <code>.</code><br />
@@ -1538,34 +1547,16 @@ <h4>Patterns of RDFS entailment (Informative)</h4>
15381547
<td class="othertable">xxx <code>rdf:type rdfs:Datatype .</code></td>
15391548
<td class="othertable">xxx <code>rdfs:subClassOf rdfs:Literal .</code></td>
15401549
</tr>
1541-
</tbody>
1542-
</table>
1543-
1544-
<p/>
1545-
1546-
<table id="rdfs_entailment_patterns_recursive">
1547-
<tbody>
1548-
<tr>
1549-
<th ></th>
1550-
<th >If the triple <a>appears in</a> S:</th>
1551-
<th >then S RDFS <a>entails recognizing D</a>:</th>
1552-
</tr>
1553-
<tr >
1554-
<td class="othertable"><dfn>rdfs4</dfn></td>
1555-
<td class="othertable">xxx aaa yyy <code>.</code></td>
1556-
<td class="othertable">xxx <code>rdf:type rdfs:Resource .</code><br/>
1557-
yyy <code>rdf:type rdfs:Resource .</code></td>
1558-
</tr>
15591550
<tr >
15601551
<td class="othertable"><dfn>rdfs14</dfn></td>
1561-
<td class="othertable">xxx yyy &lt;&lt;(aaa bbb ccc)>> <code>.</code></td>
1562-
<td class="othertable">the graph S with the appearance replaced with<br/>
1563-
xxx yyy _:nnn <code></code><br/><br/>
1552+
<td class="othertable">ttt and &lt;&lt;(aaa bbb ccc)&gt;&gt; appears in ttt</td>
1553+
<td class="othertable">ttt [&lt;&lt;(aaa bbb ccc)>>/_:nnn]<br/>
15641554
_:nnn <code>rdf:type rdfs:Proposition .</code></td>
15651555
</tr>
15661556
</tbody>
15671557
</table>
15681558

1559+
15691560
<p>As an example of a RDFS entailment involving triple terms using the entailment pattern rdfs14, the following graph &mdash;</p>
15701561

15711562
<p><code>ex:a ex:b <<( ex:c ex:d <<(ex:e ex:f ex:g)>> )>> .</code></p>

0 commit comments

Comments
 (0)