Skip to content

Commit 4312f6f

Browse files
authored
Merge pull request #165 from bergos/rdfstar-simple
Added RDF* support by extending Quad from Term
2 parents e5846b8 + 13ed1e4 commit 4312f6f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

index.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ <h3><dfn>Term</dfn> interface</h3>
144144
<p>
145145
<dfn>termType</dfn> contains a value that identifies the concrete interface of the term, since
146146
Term itself is not directly instantiated. Possible values include <code>"NamedNode"</code>,
147-
<code>"BlankNode"</code>, <code>"Literal"</code>, <code>"Variable"</code> and
148-
<code>"DefaultGraph"</code>.
147+
<code>"BlankNode"</code>, <code>"Literal"</code>, <code>"Variable"</code>,
148+
<code>"DefaultGraph"</code> and <code>"Quad"</code>.
149149
</p>
150150
<p>
151151
<dfn>value</dfn> is refined by each interface which extends Term.
@@ -319,7 +319,9 @@ <h3><dfn>DefaultGraph</dfn> interface</h3>
319319
<h3><dfn>Quad</dfn> interface</h3>
320320

321321
<pre class="idl">
322-
interface Quad {
322+
interface Quad : Term {
323+
attribute string termType;
324+
attribute string value;
323325
attribute Term subject;
324326
attribute Term predicate;
325327
attribute Term object;
@@ -329,8 +331,14 @@ <h3><dfn>Quad</dfn> interface</h3>
329331
</pre>
330332

331333
<p>
332-
<dfn>subject</dfn> the subject, which is a <code>NamedNode</code>, <code>BlankNode</code> or
333-
<code>Variable</code>.
334+
<dfn>termType</dfn> contains the constant <code>"Quad"</code>.
335+
</p>
336+
<p>
337+
<dfn>value</dfn> contains an empty string as constant value.
338+
</p>
339+
<p>
340+
<dfn>subject</dfn> the subject, which is a <code>NamedNode</code>, <code>BlankNode</code>,
341+
<code>Variable</code> or <code>Quad</code>.
334342
</p>
335343
<p>
336344
<dfn>predicate</dfn> the predicate, which is a <code>NamedNode</code> or

0 commit comments

Comments
 (0)