This one needs more extensive review. The output of model.write does not
default plain to RDF/XML any more.
If someone look at the text and Tutorial04 ...
On 06/11/17 03:19, Bjo wrote:
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/tutorials%2Frdf_api.mdtext
Bjo
Index: trunk/content/tutorials/rdf_api.mdtext
===================================================================
--- trunk/content/tutorials/rdf_api.mdtext (revision 1814385)
+++ trunk/content/tutorials/rdf_api.mdtext (working copy)
@@ -1,5 +1,6 @@
Title: An Introduction to RDF and the Jena RDF API
+In the last Jena version, the output doesn't use that A0 reference system.
<h2>Preface</h2>
This is a tutorial introduction to both W3C's Resource Description Framework
@@ -267,7 +268,9 @@
predicate and object of each statement. There are four arcs in the Model, so
there are four statements. The "anon:14df86:ecc3dee17b:-7fff" is an internal
identifier generated by Jena. It is not a URI and should not be confused
-with one. It is simply an internal label used by the Jena implementation.</p>
+with one. It is simply an internal label used by the Jena implementation. On
the latest
+versions of Jena, you may not see "anon:" prepending the string but only an
hexadecimal
+code.</p>
<p>The W3C <a href="http://www.w3.org/2001/sw/RDFCore/">RDFCore Working
Group</a> have defined a similar simple notation called <a
@@ -300,12 +303,12 @@
>
<rdf:Description rdf:about='http://somewhere/JohnSmith'>
<vcard:FN>John Smith</vcard:FN>
- <vcard:N rdf:nodeID="A0"/>
+ <vcard:N rdf:parseType="Resource">
+ <vcard:Given>John</vcard:Given>
+ <vcard:Family>Smith</vcard:Family>
+ </vcard:N>
</rdf:Description>
- <rdf:Description rdf:nodeID="A0">
- <vcard:Given>John</vcard:Given>
- <vcard:Family>Smith</vcard:Family>
- </rdf:Description>
+
</rdf:RDF></code></pre>
</blockquote>