You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by bu...@apache.org on 2012/01/15 18:52:32 UTC
svn commit: r802661 - in
/websites/staging/jena/trunk/content/jena/documentation/assembler:
assembler-howto.html examples.ttl
Author: buildbot
Date: Sun Jan 15 17:52:31 2012
New Revision: 802661
Log:
Staging update by buildbot for jena
Modified:
websites/staging/jena/trunk/content/jena/documentation/assembler/assembler-howto.html
websites/staging/jena/trunk/content/jena/documentation/assembler/examples.ttl
Modified: websites/staging/jena/trunk/content/jena/documentation/assembler/assembler-howto.html
==============================================================================
--- websites/staging/jena/trunk/content/jena/documentation/assembler/assembler-howto.html (original)
+++ websites/staging/jena/trunk/content/jena/documentation/assembler/assembler-howto.html Sun Jan 15 17:52:31 2012
@@ -170,7 +170,7 @@ schema with conventional prefix <code>ja
<code>http://jena.hpl.hp.com/2005/11/Assembler#</code>; the class <code>JA</code> is its
Java rendition.</p>
<p>The examples used in this document are extracted from the examples
-file <a href="examples.n3">examples.n3</a>. The pieces of RDF/OWL schema are
+file <a href="examples.ttl">examples.ttl</a>. The pieces of RDF/OWL schema are
extracted from the <code>ja-vocabulary</code> file.</p>
<p>The property names selected are those which are the "declared
properties" (as per Jena's <code>listDeclaredProperties</code> method) of the
@@ -210,7 +210,7 @@ this document, we will usually leave out
<p>We can construct our example model from the specification like this
(you may need to tweak the filename to make this work in your
environment):</p>
-<div class="codehilite"><pre><span class="n">Model</span> <span class="n">spec</span> <span class="o">=</span> <span class="n">FileManager</span><span class="o">.</span><span class="n">get</span><span class="p">()</span><span class="o">.</span><span class="n">loadModel</span><span class="p">(</span> <span class="s">"examples.n3"</span> <span class="p">);</span>
+<div class="codehilite"><pre><span class="n">Model</span> <span class="n">spec</span> <span class="o">=</span> <span class="n">FileManager</span><span class="o">.</span><span class="n">get</span><span class="p">()</span><span class="o">.</span><span class="n">loadModel</span><span class="p">(</span> <span class="s">"examples.ttl"</span> <span class="p">);</span>
<span class="n">Resource</span> <span class="n">root</span> <span class="o">=</span> <span class="n">spec</span><span class="o">.</span><span class="n">createResource</span><span class="p">(</span> <span class="n">spec</span><span class="o">.</span><span class="n">expandPrefix</span><span class="p">(</span> <span class="s">"eg:opening-example"</span> <span class="p">)</span> <span class="p">);</span>
<span class="n">Model</span> <span class="n">m</span> <span class="o">=</span> <span class="n">Assembler</span><span class="o">.</span><span class="n">general</span><span class="o">.</span><span class="n">openModel</span><span class="p">(</span> <span class="n">root</span> <span class="p">);</span>
</pre></div>
Modified: websites/staging/jena/trunk/content/jena/documentation/assembler/examples.ttl
==============================================================================
--- websites/staging/jena/trunk/content/jena/documentation/assembler/examples.ttl (original)
+++ websites/staging/jena/trunk/content/jena/documentation/assembler/examples.ttl Sun Jan 15 17:52:31 2012
@@ -47,7 +47,7 @@
.
eg:opening-example a ja:MemoryModel
- ; ja:content [ja:externalContent <file:Data/example.n3>]
+ ; ja:content [ja:externalContent <file:Data/example.ttl>]
.
eg:common-example a ja:MemoryModel
@@ -75,7 +75,7 @@ eg:fileModel-example-1
.
eg:fileModel-example-2
- ja:modelName "http://somewhere.org/stuff.n3"
+ ja:modelName "http://somewhere.org/stuff.ttl"
; ja:mapName ja:true
; ja:directory <file:FileModels>
.
@@ -126,6 +126,6 @@ eg:document-manager-example
; ja:meta [dm:altURL <http://localhost/RDF/my-alt.rdf>]
.
-eg:mapper lm:mapping [ lm:name "file:foo.n3" ; lm:altName "file:etc/foo.n3" ]
+eg:mapper lm:mapping [ lm:name "file:foo.ttl" ; lm:altName "file:etc/foo.ttl" ]
.