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 @@
   &gt;
    &lt;rdf:Description rdf:about='http://somewhere/JohnSmith'&gt;
      &lt;vcard:FN&gt;John Smith&lt;/vcard:FN&gt;
-    &lt;vcard:N rdf:nodeID=&quot;A0&quot;/&gt;
+    &lt;vcard:N rdf:parseType=&quot;Resource&quot;&gt;
+      &lt;vcard:Given&gt;John&lt;/vcard:Given&gt;
+      &lt;vcard:Family&gt;Smith&lt;/vcard:Family&gt;
+    &lt;/vcard:N&gt;
    &lt;/rdf:Description&gt;
-  &lt;rdf:Description rdf:nodeID=&quot;A0&quot;&gt;
-    &lt;vcard:Given&gt;John&lt;/vcard:Given&gt;
-    &lt;vcard:Family&gt;Smith&lt;/vcard:Family&gt;
-  &lt;/rdf:Description&gt;
+
  &lt;/rdf:RDF&gt;</code></pre>
  </blockquote>

Reply via email to