~ tweaked relative and prefixed IRI examples
authorEric Prud'hommeaux <eric@w3.org>
Sun, 25 Mar 2012 15:34:07 -0400
changeset 241 0a40a05da374
parent 240 8869e580c59e
child 242 59bd930a7ff5
~ tweaked relative and prefixed IRI examples
rdf-turtle/N-Turples.html
--- a/rdf-turtle/N-Turples.html	Sun Mar 25 15:21:10 2012 -0400
+++ b/rdf-turtle/N-Turples.html	Sun Mar 25 15:34:07 2012 -0400
@@ -249,19 +249,19 @@
 
 			<pre class="example"><script type="text/plain">
 # A triple with all absolute IRIs (which is also a valid N-Triples triple):
-<http://an.example/subject1> <http://an.example/predicate1> <http://an.example/object1> .
-
-@base <http://an.example/>
-<subject2> <predicate2> <object2> .     # IRIs relative to http://an.example/
+<http://one.example/subject1> <http://one.example/predicate1> <http://one.example/object1> .
 
-@prefix p: <http://an.example/>
-p:subject3 p:predicate3 p:object3 .     # prefixed IRIs
+@base <http://one.example/>
+<subject2> <predicate2> <object2> .     # relative IRIs, e.g. http://one.example/subject2
 
-@prefix q: <path>                       # relative prefix
-q:subject4 q:predicate4 q:object4 .     # prefixed IRIs relative to http://an.example/
+@prefix p: <http://two.example/>
+p:subject3 p:predicate3 p:object3 .     # prefixed IRIs, e.g. http://two.example/subject3
+
+@prefix p: <path/>                      # prefix p: now stands for http://one.example/path/
+p:subject4 p:predicate4 p:object4 .     # prefixed IRIs, e.g. http://one.example/path/subject4
 
 @prefix : <http://another.example/>     # empty prefix
-:subject5 :predicate5 :object5 .        # prefixed IRIs
+:subject5 :predicate5 :object5 .        # prefixed IRIs, e.g. http://another.example/subject5
 
 :subject6 a :subject7 .                 # same as :subject6 rdf:type :subject7 .
 </script></pre>