Skip to content

Commit 1988384

Browse files
committed
Support triple annotations with rdf:annotation and rdf:annotationNodeID.
1 parent 23610c9 commit 1988384

File tree

5 files changed

+202
-26
lines changed

5 files changed

+202
-26
lines changed

spec/example23.nt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<http://example.org/> <http://example.org/prop> "blah" .
2+
<http://example.org/triple1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> <<(<http://example.org/> <http://example.org/prop> "blah")>> .
3+
<http://example.org/triple1> <http://example.org/prop> "foo" .

spec/example23.rdf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3+
xmlns:ex="http://example.org/stuff/1.0/"
4+
xml:base="http://example.org/triples/">
5+
<rdf:Description rdf:about="http://example.org/">
6+
<ex:prop rdf:annotation="http://example.org/triple1">blah</ex:prop>
7+
</rdf:Description>
8+
<rdf:Description rdf:about="http://example.org/triple1">
9+
<ex:prop>foo</ex:prop>
10+
</rdf:Description>
11+
</rdf:RDF>

spec/example24.nt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<http://example.org/> <http://example.org/prop> "blah" .
2+
_:triple1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> <<(<http://example.org/> <http://example.org/prop> "blah")>> .
3+
_:triple1 <http://example.org/prop> "foo" .

spec/example24.rdf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3+
xmlns:ex="http://example.org/stuff/1.0/"
4+
xml:base="http://example.org/triples/">
5+
<rdf:Description rdf:about="http://example.org/">
6+
<ex:prop rdf:annotationNodeID="triple1">blah</ex:prop>
7+
</rdf:Description>
8+
<rdf:Description rdf:nodeID="triple1">
9+
<ex:prop>foo</ex:prop>
10+
</rdf:Description>
11+
</rdf:RDF>

0 commit comments

Comments
 (0)