jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r866584 [17/21] - in /websites/staging/jena/trunk/content: ./ documentation/assembler/ documentation/inference/ documentation/io/ documentation/javadoc/arq/ documentation/javadoc/fuseki/ documentation/javadoc/jena/ documentation/javadoc/lar...
Date Thu, 20 Jun 2013 10:18:36 GMT
Modified: websites/staging/jena/trunk/content/documentation/tools/schemagen.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tools/schemagen.html (original)
+++ websites/staging/jena/trunk/content/documentation/tools/schemagen.html Thu Jun 20 10:18:34 2013
@@ -162,7 +162,7 @@ the use of schemagen, and the various op
 may be used to control the output.</p>
 <p>Schemagen is typically invoked from the command line or from a
 built script (such as Ant). Synopsis of the command:</p>
-<div class="codehilite"><pre><span class="n">java</span> <span class="n">jena</span><span class="o">.</span><span class="n">schemagen</span> <span class="o">-</span><span class="n">i</span> <span class="sr">&lt;input&gt;</span> <span class="p">[</span><span class="o">-</span><span class="n">a</span> <span class="sr">&lt;namespaceURI&gt;</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">o</span> <span class="o">&lt;</span><span class="n">output</span> <span class="n">file</span><span class="o">&gt;</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">c</span> <span class="o">&lt;</span><span class="n">config</span> <span class="n">uri</span><span class="o">&gt;</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">e</span> <span class="sr">&lt;encoding&gt;</span><span class="p">]</span> <span class="o">...</span>
+<div class="codehilite"><pre><span class="n">java</span> <span class="n">jena</span><span class="p">.</span><span class="n">schemagen</span> <span class="o">-</span><span class="nb">i</span> <span class="o">&lt;</span><span class="n">input</span><span class="o">&gt;</span> <span class="p">[</span><span class="o">-</span><span class="n">a</span> <span class="o">&lt;</span><span class="n">namespaceURI</span><span class="o">&gt;</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">o</span> <span class="o">&lt;</span><span class="n">output</span> <span class="n">file</span><span class="o">&gt;</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">c</span> <span class="o">&lt;</span><span class="n">config</span> <span class="n">uri</span><span class="o">&gt;</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">e</span> <span class="o">&lt;</span><span class
 ="n">encoding</span><span class="o">&gt;</span><span class="p">]</span> <span class="p">...</span>
 </pre></div>
 
 
@@ -370,7 +370,7 @@ and manipulated. However, when developin
 frequently convenient to refer to the controlled vocabulary terms
 directly from Java code. This leads typically to the declaration of
 constants, such as:</p>
-<div class="codehilite"><pre>    <span class="n">public</span> <span class="n">static</span> <span class="n">final</span> <span class="n">Resource</span> <span class="n">A_CLASS</span> <span class="o">=</span> <span class="k">new</span> <span class="n">ResourceImpl</span><span class="p">(</span> <span class="s">&quot;http://example.org/schemas#a-class&quot;</span> <span class="p">);</span>
+<div class="codehilite"><pre>    <span class="n">public</span> <span class="n">static</span> <span class="n">final</span> <span class="n">Resource</span> <span class="n">A_CLASS</span> <span class="p">=</span> <span class="n">new</span> <span class="n">ResourceImpl</span><span class="p">(</span> &quot;<span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">example</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">schemas</span>#<span class="n">a</span><span class="o">-</span><span class="n">class</span>&quot; <span class="p">);</span>
 </pre></div>
 
 
@@ -409,37 +409,37 @@ vocabulary:</p>
 <p>We process this document with a command something like:
 <code>Java jena.schemagen -i deputy.rdf -a http://example.org/eg#</code>
 to produce the following generated class:</p>
-<div class="codehilite"><pre>/* CVS <span class="p">$</span><span class="nv">Id</span>: schemagen.html,v 1.16 2010-06-11 00:08:23 ian_dickinson Exp <span class="p">$</span> */
+<div class="codehilite"><pre><span class="cm">/* CVS $Id: schemagen.html,v 1.16 2010-06-11 00:08:23 ian_dickinson Exp $ */</span>
 
-import com.hp.hpl.jena.rdf.model.*;
+<span class="kn">import</span> <span class="nn">com</span><span class="p">.</span><span class="n">hp</span><span class="p">.</span><span class="n">hpl</span><span class="p">.</span><span class="n">jena</span><span class="p">.</span><span class="n">rdf</span><span class="p">.</span><span class="n">model</span><span class="p">.</span><span class="o">*</span><span class="p">;</span>
 
-/**
- * Vocabulary definitions from deputy.rdf
- * @author Auto-generated by schemagen on 01 May 2003 21:49
- */
-public class Deputy <span class="err">{</span>
-    /** <span class="nt">&lt;p&gt;</span>The RDF model that holds the vocabulary terms<span class="nt">&lt;/p&gt;</span> */
-    private static Model m_model = ModelFactory.createDefaultModel();
-    
-    /** <span class="nt">&lt;p&gt;</span>The namespace of the vocabulary as a string <span class="err">{</span>@value}<span class="nt">&lt;/p&gt;</span> */
-    public static final String NS = &quot;http://example.org/eg<span class="err">#</span>&quot;;
-    
-    /** <span class="nt">&lt;p&gt;</span>The namespace of the vocabulary as a resource <span class="err">{</span>@value}<span class="nt">&lt;/p&gt;</span> */
-    public static final Resource NAMESPACE = m_model.createResource( &quot;http://example.org/eg<span class="err">#</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>The name that everyone calls a dog<span class="nt">&lt;/p&gt;</span> */
-    public static final Property petName = m_model.createProperty( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">petName</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>Posh dogs have a formal name on their KC certificate<span class="nt">&lt;/p&gt;</span> */
-    public static final Property kennelName = m_model.createProperty( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">kennelName</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>A class of canine companions<span class="nt">&lt;/p&gt;</span> */
-    public static final Resource Dog = m_model.createResource( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">Dog</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>Deputy is a particular Dog<span class="nt">&lt;/p&gt;</span> */
-    public static final Resource deputy = m_model.createResource( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">deputy</span>&quot; );
-    
-}
+<span class="cm">/**</span>
+<span class="cm"> * Vocabulary definitions from deputy.rdf</span>
+<span class="cm"> * @author Auto-generated by schemagen on 01 May 2003 21:49</span>
+<span class="cm"> */</span>
+<span class="n">public</span> <span class="k">class</span> <span class="n">Deputy</span> <span class="p">{</span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The RDF model that holds the vocabulary terms&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">private</span> <span class="k">static</span> <span class="n">Model</span> <span class="n">m_model</span> <span class="o">=</span> <span class="n">ModelFactory</span><span class="p">.</span><span class="n">createDefaultModel</span><span class="p">();</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The namespace of the vocabulary as a string {@value}&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">String</span> <span class="no">NS</span> <span class="o">=</span> <span class="s">&quot;http://example.org/eg#&quot;</span><span class="p">;</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The namespace of the vocabulary as a resource {@value}&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Resource</span> <span class="no">NAMESPACE</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createResource</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The name that everyone calls a dog&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Property</span> <span class="n">petName</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createProperty</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#petName&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;Posh dogs have a formal name on their KC certificate&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Property</span> <span class="n">kennelName</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createProperty</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#kennelName&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;A class of canine companions&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Resource</span> <span class="n">Dog</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createResource</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#Dog&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;Deputy is a particular Dog&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Resource</span> <span class="n">deputy</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createResource</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#deputy&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+<span class="p">}</span>
 </pre></div>
 
 
@@ -458,37 +458,37 @@ ontology API, rather than the RDF model 
 to <code>owl:Class</code>, and invoke
 <code>Java jena.schemagen -i deputy.rdf -b http://example.org/eg# --ontology</code>
 to get:</p>
-<div class="codehilite"><pre>/* CVs <span class="p">$</span><span class="nv">Id</span>: schemagen.html,v 1.16 2010-06-11 00:08:23 ian_dickinson Exp <span class="p">$</span> */
+<div class="codehilite"><pre><span class="cm">/* CVs $Id: schemagen.html,v 1.16 2010-06-11 00:08:23 ian_dickinson Exp $ */</span>
 
-import com.hp.hpl.jena.rdf.model.*;
-import com.hp.hpl.jena.ontology.*;
-/**
- * Vocabulary definitions from deputy.rdf
- * @author Auto-generated by schemagen on 01 May 2003 22:03
- */
-public class Deputy <span class="err">{</span>
-    /** <span class="nt">&lt;p&gt;</span>The ontology model that holds the vocabulary terms<span class="nt">&lt;/p&gt;</span> */
-    private static OntModel m_model = ModelFactory.createOntologyModel( ProfileRegistry.OWL_LANG );
-    
-    /** <span class="nt">&lt;p&gt;</span>The namespace of the vocabulary as a string <span class="err">{</span>@value}<span class="nt">&lt;/p&gt;</span> */
-    public static final String NS = &quot;http://example.org/eg<span class="err">#</span>&quot;;
-    
-    /** <span class="nt">&lt;p&gt;</span>The namespace of the vocabulary as a resource <span class="err">{</span>@value}<span class="nt">&lt;/p&gt;</span> */
-    public static final Resource NAMESPACE = m_model.createResource( &quot;http://example.org/eg<span class="err">#</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>The name that everyone calls a dog<span class="nt">&lt;/p&gt;</span> */
-    public static final Property petName = m_model.createProperty( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">petName</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>Posh dogs have a formal name on their KC certificate<span class="nt">&lt;/p&gt;</span> */
-    public static final Property kennelName = m_model.createProperty( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">kennelName</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>A class of canine companions<span class="nt">&lt;/p&gt;</span> */
-    public static final OntClass Dog = m_model.createClass( &quot;http://example.org/eg<span class="cp">#</span><span class="nf">Dog</span>&quot; );
-    
-    /** <span class="nt">&lt;p&gt;</span>Deputy is a particular Dog<span class="nt">&lt;/p&gt;</span> */
-    public static final Individual deputy = m_model.createIndividual( Dog, &quot;http://example.org/eg<span class="cp">#</span><span class="nf">deputy</span>&quot; );
-    
-}
+<span class="kn">import</span> <span class="nn">com</span><span class="p">.</span><span class="n">hp</span><span class="p">.</span><span class="n">hpl</span><span class="p">.</span><span class="n">jena</span><span class="p">.</span><span class="n">rdf</span><span class="p">.</span><span class="n">model</span><span class="p">.</span><span class="o">*</span><span class="p">;</span>
+<span class="kn">import</span> <span class="nn">com</span><span class="p">.</span><span class="n">hp</span><span class="p">.</span><span class="n">hpl</span><span class="p">.</span><span class="n">jena</span><span class="p">.</span><span class="n">ontology</span><span class="p">.</span><span class="o">*</span><span class="p">;</span>
+<span class="cm">/**</span>
+<span class="cm"> * Vocabulary definitions from deputy.rdf</span>
+<span class="cm"> * @author Auto-generated by schemagen on 01 May 2003 22:03</span>
+<span class="cm"> */</span>
+<span class="n">public</span> <span class="k">class</span> <span class="n">Deputy</span> <span class="p">{</span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The ontology model that holds the vocabulary terms&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">private</span> <span class="k">static</span> <span class="n">OntModel</span> <span class="n">m_model</span> <span class="o">=</span> <span class="n">ModelFactory</span><span class="p">.</span><span class="n">createOntologyModel</span><span class="p">(</span> <span class="n">ProfileRegistry</span><span class="p">.</span><span class="no">OWL_LANG</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The namespace of the vocabulary as a string {@value}&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">String</span> <span class="no">NS</span> <span class="o">=</span> <span class="s">&quot;http://example.org/eg#&quot;</span><span class="p">;</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The namespace of the vocabulary as a resource {@value}&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Resource</span> <span class="no">NAMESPACE</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createResource</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;The name that everyone calls a dog&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Property</span> <span class="n">petName</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createProperty</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#petName&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;Posh dogs have a formal name on their KC certificate&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Property</span> <span class="n">kennelName</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createProperty</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#kennelName&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;A class of canine companions&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">OntClass</span> <span class="n">Dog</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createClass</span><span class="p">(</span> <span class="s">&quot;http://example.org/eg#Dog&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+ <span class="err">   </span><span class="cm">/** &lt;p&gt;Deputy is a particular Dog&lt;/p&gt; */</span>
+ <span class="err">   </span><span class="n">public</span> <span class="k">static</span> <span class="k">final</span> <span class="n">Individual</span> <span class="n">deputy</span> <span class="o">=</span> <span class="n">m_model</span><span class="p">.</span><span class="n">createIndividual</span><span class="p">(</span> <span class="n">Dog</span><span class="p">,</span> <span class="s">&quot;http://example.org/eg#deputy&quot;</span> <span class="p">);</span>
+ <span class="err">   </span>
+<span class="p">}</span>
 </pre></div>
 
 
@@ -614,7 +614,7 @@ processed. The substitutions are:</p>
 defined for resource URI's in the schemagen namespace. The
 expansion for <code>sgen</code> is:
 <code>http://jena.hpl.hp.com/2003/04/schemagen#</code>, thus:</p>
-<div class="codehilite"><pre><span class="err">xmlns:sgen=&quot;http:</span><span class="c1">//jena.hpl.hp.com/2003/04/schemagen#&quot;</span>
+<div class="codehilite"><pre><span class="n">xmlns</span><span class="o">:</span><span class="n">sgen</span><span class="o">=</span><span class="s2">&quot;http://jena.hpl.hp.com/2003/04/schemagen#&quot;</span>
 </pre></div>
 
 
@@ -697,7 +697,7 @@ and no root is specified on the command 
 which set of configuration options will be used. The root URI given
 as a command line option must match exactly with the URI given in
 the configuration file. For example:</p>
-<div class="codehilite"><pre><span class="n">Java</span> <span class="n">jena</span><span class="o">.</span><span class="n">schemagen</span> <span class="o">-</span><span class="n">c</span> <span class="n">config</span><span class="sr">/localconf.rdf -r http://example.org/sg</span><span class="c1">#project1</span>
+<div class="codehilite"><pre><span class="n">Java</span> <span class="n">jena</span><span class="p">.</span><span class="n">schemagen</span> <span class="o">-</span><span class="n">c</span> <span class="n">config</span><span class="o">/</span><span class="n">localconf</span><span class="p">.</span><span class="n">rdf</span> <span class="o">-</span><span class="n">r</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">example</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">sg</span>#<span class="n">project1</span>
 </pre></div>
 
 
@@ -1313,128 +1313,132 @@ target for their own application it will
 <p>The source of this example is provided in the Jena download as
 <code>etc/schemagen.rdf</code>. For clarity, RDF/XML text is highlighted in
 blue.</p>
-<div class="codehilite"><pre><span class="o">&lt;</span><span class="p">?</span><span class="n">xml</span> <span class="n">version</span><span class="o">=</span><span class="s">&#39;1.0&#39;</span><span class="p">?</span><span class="o">&gt;</span>
+<div class="codehilite"><pre><span class="err">&lt;</span><span class="o">?</span><span class="err">xml</span> <span class="err">version=</span><span class="s1">&#39;1.0&#39;</span><span class="o">?</span><span class="k">&gt;</span>
 
-<span class="o">&lt;!</span><span class="n">DOCTYPE</span> <span class="n">rdf:RDF</span> <span class="p">[</span>
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">jena</span> <span class="err">   </span><span class="s">&#39;http://jena.hpl.hp.com/&#39;</span><span class="o">&gt;</span>
+<span class="k">&lt;!DOCTYPE</span> <span class="nt">rdf:RDF</span> <span class="k">[</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">jena</span> <span class="ni">   &#39;http://jena.hpl.hp.com/&#39;</span><span class="k">&gt;</span>
 
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">rdf</span> <span class="err">    </span><span class="s">&#39;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#39;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">rdfs</span> <span class="err">   </span><span class="s">&#39;http://www.w3.org/2000/01/rdf-schema#&#39;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">owl</span> <span class="err">    </span><span class="s">&#39;http://www.w3.org/2002/07/owl#&#39;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">xsd</span> <span class="err">    </span><span class="s">&#39;http://www.w3.org/2001/XMLSchema#&#39;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">base</span> <span class="err">   </span><span class="s">&#39;&amp;jena;2003/04/schemagen&#39;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="o">&lt;!</span><span class="n">ENTITY</span> <span class="n">sgen</span> <span class="err">   </span><span class="s">&#39;&amp;base;#&#39;</span><span class="o">&gt;</span>
-<span class="p">]</span><span class="o">&gt;</span>
-
-<span class="o">&lt;</span><span class="n">rdf:RDF</span>
- <span class="err"> </span><span class="n">xmlns:rdf</span> <span class="err">  </span><span class="o">=</span><span class="s">&quot;&amp;rdf;&quot;</span>
- <span class="err"> </span><span class="n">xmlns:rdfs</span> <span class="err"> </span><span class="o">=</span><span class="s">&quot;&amp;rdfs;&quot;</span>
- <span class="err"> </span><span class="n">xmlns:owl</span> <span class="err">  </span><span class="o">=</span><span class="s">&quot;&amp;owl;&quot;</span>
- <span class="err"> </span><span class="n">xmlns:sgen</span>  <span class="o">=</span><span class="s">&quot;&amp;sgen;&quot;</span>
- <span class="err"> </span><span class="n">xmlns</span> <span class="err">      </span><span class="o">=</span><span class="s">&quot;&amp;sgen;&quot;</span>
- <span class="err"> </span><span class="n">xml:base</span> <span class="err">   </span><span class="o">=</span><span class="s">&quot;&amp;base;&quot;</span>
-<span class="o">&gt;</span>
-
-<span class="o">&lt;!--</span>
-    <span class="n">Example</span> <span class="n">schemagen</span> <span class="n">configuration</span> <span class="k">for</span> <span class="k">use</span> <span class="n">with</span> <span class="n">jena</span><span class="o">.</span><span class="n">schemagen</span>
- <span class="err">   </span><span class="n">Not</span> <span class="n">all</span> <span class="n">possible</span> <span class="n">options</span> <span class="n">are</span> <span class="n">used</span> <span class="n">in</span> <span class="n">this</span> <span class="n">example</span><span class="p">,</span> <span class="n">see</span> <span class="n">Javadoc</span> <span class="ow">and</span> <span class="n">Howto</span> <span class="k">for</span> <span class="n">full</span> <span class="n">details</span><span class="o">.</span>
-
-    <span class="n">Author:</span> <span class="n">Ian</span> <span class="n">Dickinson</span><span class="p">,</span> <span class="n">mailto:ian</span><span class="o">.</span><span class="n">dickinson</span><span class="nv">@hp</span><span class="o">.</span><span class="n">com</span>
-    <span class="n">CVs:</span> <span class="err">   </span><span class="nv">$Id:</span> <span class="n">schemagen</span><span class="o">.</span><span class="n">html</span><span class="p">,</span><span class="n">v</span> <span class="mf">1.16</span> <span class="mi">2010</span><span class="o">-</span><span class="mo">06</span><span class="o">-</span><span class="mi">11</span> <span class="mo">00</span><span class="p">:</span><span class="mi">08</span><span class="p">:</span><span class="mi">23</span> <span class="n">ian_dickinson</span> <span class="n">Exp</span> <span class="nv">$</span>
-<span class="err">--&gt;</span>
-
-<span class="err">&lt;</span><span class="nv">sgen:Config</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">specifies</span> <span class="n">that</span> <span class="n">the</span> <span class="err"> </span><span class="n">source</span> <span class="n">document</span> <span class="n">uses</span> <span class="n">OWL</span> <span class="o">--&gt;</span>
- <span class="err">   </span><span class="o">&lt;</span><span class="n">sgen:owl</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;boolean&quot;</span><span class="o">&gt;</span><span class="n">true</span><span class="sr">&lt;/sgen:owl&gt;</span>
-
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">specifies</span> <span class="n">that</span> <span class="n">we</span> <span class="n">want</span> <span class="n">the</span> <span class="n">generated</span> <span class="n">vocab</span> <span class="n">to</span> <span class="k">use</span> <span class="n">OntClass</span><span class="p">,</span> <span class="n">OntProperty</span><span class="p">,</span> <span class="n">etc</span><span class="p">,</span> <span class="ow">not</span> <span class="n">Resource</span> <span class="ow">and</span> <span class="n">Property</span> <span class="o">--&gt;</span>
- <span class="err">   </span><span class="o">&lt;</span><span class="n">sgen:ontology</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;boolean&quot;</span><span class="o">&gt;</span><span class="n">true</span><span class="sr">&lt;/sgen:ontology&gt;</span>
-
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">specifies</span> <span class="n">that</span> <span class="n">we</span> <span class="n">want</span> <span class="n">names</span> <span class="n">mapped</span> <span class="n">to</span> <span class="n">uppercase</span> <span class="p">(</span><span class="n">as</span> <span class="n">standard</span> <span class="n">Java</span> <span class="n">constants</span><span class="p">)</span> <span class="o">--&gt;</span>
- <span class="err">   </span><span class="o">&lt;</span><span class="n">sgen:uppercase</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;boolean&quot;</span><span class="o">&gt;</span><span class="n">true</span><span class="sr">&lt;/sgen:uppercase&gt;</span>
-
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">append</span> <span class="n">Vocab</span> <span class="n">to</span> <span class="n">class</span> <span class="n">name</span><span class="p">,</span> <span class="n">so</span> <span class="n">input</span> <span class="n">beer</span><span class="o">.</span><span class="n">owl</span> <span class="n">becomes</span> <span class="n">BeerVocab</span><span class="o">.</span><span class="n">java</span> <span class="o">--&gt;</span>
- <span class="err">   </span><span class="o">&lt;</span><span class="n">sgen:classnamesuffix</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span><span class="n">Vocab</span><span class="sr">&lt;/sgen:classnamesuffix&gt;</span>
-
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">the</span> <span class="n">Java</span> <span class="nb">package</span> <span class="n">that</span> <span class="n">the</span> <span class="n">vocabulary</span> <span class="n">is</span> <span class="n">in</span> <span class="o">--&gt;</span>
- <span class="err">   </span><span class="o">&lt;</span><span class="n">sgen:package</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span><span class="n">com</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">vocabulary</span><span class="sr">&lt;/sgen:package&gt;</span>
-
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">the</span> <span class="n">directory</span> <span class="ow">or</span> <span class="n">file</span> <span class="n">to</span> <span class="nb">write</span> <span class="n">the</span> <span class="n">results</span> <span class="n">out</span> <span class="n">to</span> <span class="o">--&gt;</span>
- <span class="err">   </span><span class="o">&lt;</span><span class="n">sgen:output</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span><span class="n">src</span><span class="sr">/com/</span><span class="n">example</span><span class="sr">/vocabulary&lt;/sg</span><span class="n">en:output</span><span class="o">&gt;</span>
-
- <span class="err">   </span><span class="o">&lt;!--</span> <span class="n">the</span> <span class="n">template</span> <span class="k">for</span> <span class="n">the</span> <span class="n">file</span> <span class="n">header</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:header</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;/*****************************************************************************</span>
- <span class="o">*</span> <span class="n">Source</span> <span class="n">code</span> <span class="n">information</span>
- <span class="o">*</span> <span class="o">-----------------------</span>
- <span class="o">*</span> <span class="n">Original</span> <span class="n">author</span> <span class="err">   </span><span class="n">Jane</span> <span class="n">Smart</span><span class="p">,</span> <span class="n">example</span><span class="o">.</span><span class="n">com</span>
- <span class="o">*</span> <span class="n">Author</span> <span class="n">email</span> <span class="err">      </span><span class="n">jane</span><span class="o">.</span><span class="n">smart</span><span class="nv">@example</span><span class="o">.</span><span class="n">com</span>
- <span class="o">*</span> <span class="n">Package</span> <span class="err">           </span><span class="nv">@package@</span>
- <span class="err">*</span> <span class="nv">Web</span> <span class="n">site</span> <span class="err">          </span><span class="nv">@website@</span>
- <span class="err">*</span> <span class="nv">Created</span> <span class="err">           </span><span class="nv">%date%</span>
- <span class="err">*</span> <span class="nv">Filename</span> <span class="err">          </span><span class="nv">$RCSfile:</span> <span class="n">schemagen</span><span class="o">.</span><span class="n">html</span><span class="p">,</span><span class="n">v</span> <span class="nv">$</span>
- <span class="err">*</span> <span class="nv">Revision</span> <span class="err">          </span><span class="nv">$Revision:</span> <span class="mf">1.16</span> <span class="nv">$</span>
- <span class="err">*</span> <span class="nv">Release</span> <span class="n">status</span> <span class="err">    </span><span class="nv">@releaseStatus@</span> <span class="err">$</span><span class="nv">State:</span> <span class="n">Exp</span> <span class="nv">$</span>
- <span class="err">*</span>
- <span class="err">*</span> <span class="nv">Last</span> <span class="n">modified</span> <span class="n">on</span> <span class="err">  </span><span class="nv">$Date:</span> <span class="mi">2010</span><span class="o">-</span><span class="mo">06</span><span class="o">-</span><span class="mi">11</span> <span class="mo">00</span><span class="p">:</span><span class="mi">08</span><span class="p">:</span><span class="mi">23</span> <span class="nv">$</span>
- <span class="err">*</span> <span class="err">              </span><span class="nv">by</span> <span class="err">  </span><span class="nv">$Author:</span> <span class="n">ian_dickinson</span> <span class="nv">$</span>
- <span class="err">*</span>
- <span class="err">*</span> <span class="err">@</span><span class="nv">copyright@</span>
- <span class="err">*****************************************************************************/</span>
-
-<span class="err">//</span> <span class="nv">Package</span>
-<span class="sr">//////////////////////////////////////</span><span class="o">/</span>
-<span class="nv">%package%</span>
-
-<span class="err">//</span> <span class="nv">Imports</span>
-<span class="sr">//////////////////////////////////////</span><span class="o">/</span>
-<span class="nv">%imports%</span>
-
-<span class="err">/**</span>
- <span class="err">*</span> <span class="nv">Vocabulary</span> <span class="n">definitions</span> <span class="n">from</span> <span class="nv">%sourceURI%</span>
- <span class="err">*</span> <span class="err">@</span><span class="nv">author</span> <span class="n">Auto</span><span class="o">-</span><span class="n">generated</span> <span class="n">by</span> <span class="n">schemagen</span> <span class="n">on</span> <span class="nv">%date%</span>
- <span class="err">*/&lt;/</span><span class="nv">sgen:header</span><span class="o">&gt;</span>
-
-<span class="o">&lt;!--</span> <span class="n">the</span> <span class="n">template</span> <span class="k">for</span> <span class="n">the</span> <span class="n">file</span> <span class="n">footer</span> <span class="p">(</span><span class="n">note</span> <span class="nv">@footer@</span> <span class="nv">is</span> <span class="n">an</span> <span class="n">Ant</span><span class="o">-</span><span class="n">ism</span><span class="p">,</span> <span class="ow">and</span> <span class="n">will</span> <span class="ow">not</span> <span class="n">be</span> <span class="n">processed</span> <span class="n">by</span> <span class="n">SchemaGen</span><span class="p">)</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:footer</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span>
-<span class="o">/*</span>
-<span class="nv">@footer@</span>
-<span class="err">*/</span>
-<span class="err">&lt;/</span><span class="nv">sgen:footer</span><span class="o">&gt;</span>
-
-<span class="o">&lt;!--</span> <span class="n">template</span> <span class="k">for</span> <span class="n">extra</span> <span class="n">declarations</span> <span class="n">at</span> <span class="n">the</span> <span class="n">top</span> <span class="n">of</span> <span class="n">the</span> <span class="n">class</span> <span class="n">file</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:declarations</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="sr">/** Factory for generating symbols */</span>
- <span class="err">   </span><span class="n">private</span> <span class="n">static</span> <span class="n">KsValueFactory</span> <span class="n">s_vf</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DefaultValueFactory</span><span class="p">();</span>
-<span class="sr">&lt;/sgen:declarations&gt;</span>
-
-<span class="o">&lt;!--</span> <span class="n">template</span> <span class="k">for</span> <span class="n">introducing</span> <span class="n">the</span> <span class="n">properties</span> <span class="n">in</span> <span class="n">the</span> <span class="n">vocabulary</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:propSection</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="sr">//</span> <span class="n">Vocabulary</span> <span class="n">properties</span>
- <span class="err">   </span><span class="sr">//////////////////////////</span><span class="o">/</span>
-<span class="sr">&lt;/sgen:propSection&gt;</span>
-
-<span class="o">&lt;!--</span> <span class="n">template</span> <span class="k">for</span> <span class="n">introducing</span> <span class="n">the</span> <span class="n">classes</span> <span class="n">in</span> <span class="n">the</span> <span class="n">vocabulary</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:classSection</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="sr">//</span> <span class="n">Vocabulary</span> <span class="n">classes</span>
- <span class="err">   </span><span class="sr">//////////////////////////</span><span class="o">/</span>
-<span class="sr">&lt;/sgen:classSection&gt;</span>
-
-<span class="o">&lt;!--</span> <span class="n">template</span> <span class="k">for</span> <span class="n">introducing</span> <span class="n">the</span> <span class="n">individuals</span> <span class="n">in</span> <span class="n">the</span> <span class="n">vocabulary</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:individualsSection</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span>
- <span class="err">   </span><span class="sr">//</span> <span class="n">Vocabulary</span> <span class="n">individuals</span>
- <span class="err">   </span><span class="sr">//////////////////////////</span><span class="o">/</span>
-<span class="sr">&lt;/sgen:individualsSection&gt;</span>
-
-<span class="o">&lt;!--</span> <span class="n">template</span> <span class="k">for</span> <span class="n">doing</span> <span class="n">fancy</span> <span class="n">declarations</span> <span class="n">of</span> <span class="n">individuals</span> <span class="o">--&gt;</span>
-<span class="o">&lt;</span><span class="n">sgen:individualTemplate</span> <span class="n">rdf:datatype</span><span class="o">=</span><span class="s">&quot;&amp;xsd;string&quot;</span><span class="o">&gt;</span><span class="n">public</span> <span class="n">static</span> <span class="n">final</span> <span class="n">KsSymbol</span> <span class="nv">%valname%</span> <span class="err">=</span> <span class="nv">s_vf</span><span class="o">.</span><span class="n">newSymbol</span><span class="p">(</span> <span class="s">&quot;%valuri%&quot;</span> <span class="p">);</span>
-
- <span class="err">   </span><span class="sr">/** Ontology individual corresponding to {@link #%valname%} */</span>
- <span class="err">   </span><span class="n">public</span> <span class="n">static</span> <span class="n">final</span> <span class="nv">%valclass%</span> <span class="nv">_%valname%</span> <span class="err">=</span> <span class="nv">m_model</span><span class="o">.</span><span class="nv">%valcreator%</span><span class="err">(</span> <span class="err">%</span><span class="nv">valtype%</span><span class="p">,</span> <span class="s">&quot;%valuri%&quot;</span> <span class="p">);</span>
-<span class="sr">&lt;/sgen:individualTemplate&gt;</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">rdf</span> <span class="ni">    &#39;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#39;</span><span class="k">&gt;</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">rdfs</span> <span class="ni">   &#39;http://www.w3.org/2000/01/rdf-schema#&#39;</span><span class="k">&gt;</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">owl</span> <span class="ni">    &#39;http://www.w3.org/2002/07/owl#&#39;</span><span class="k">&gt;</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">xsd</span> <span class="ni">    &#39;http://www.w3.org/2001/XMLSchema#&#39;</span><span class="k">&gt;</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">base</span> <span class="ni">   &#39;&amp;jena;2003/04/schemagen&#39;</span><span class="k">&gt;</span>
+ <span class="err">   </span><span class="k">&lt;!ENTITY</span> <span class="ni">sgen</span> <span class="ni">   &#39;&amp;base;#&#39;</span><span class="k">&gt;</span>
+<span class="k">]&gt;</span>
+
+<span class="err">&lt;rdf:RDF</span>
+ <span class="err"> xmlns:rdf</span> <span class="err">  =</span><span class="s2">&quot;&amp;rdf;&quot;</span>
+ <span class="err"> xmlns:rdfs</span> <span class="err"> =</span><span class="s2">&quot;&amp;rdfs;&quot;</span>
+ <span class="err"> xmlns:owl</span> <span class="err">  =</span><span class="s2">&quot;&amp;owl;&quot;</span>
+ <span class="err"> xmlns:sgen</span>  <span class="err">=</span><span class="s2">&quot;&amp;sgen;&quot;</span>
+ <span class="err"> xmlns</span> <span class="err">      =</span><span class="s2">&quot;&amp;sgen;&quot;</span>
+ <span class="err"> xml:base</span> <span class="err">   =</span><span class="s2">&quot;&amp;base;&quot;</span>
+<span class="k">&gt;</span>
+
+<span class="c">&lt;!--</span>
+<span class="c">    Example schemagen configuration for use with jena.schemagen</span>
+<span class="c">    Not all possible options are used in this example, see Javadoc and Howto for full details.</span>
+
+<span class="c">    Author: Ian Dickinson, mailto:ian.dickinson@hp.com</span>
+<span class="c">    CVs:    $Id: schemagen.html,v 1.16 2010-06-11 00:08:23 ian_dickinson Exp $</span>
+<span class="c">--&gt;</span>
+
+<span class="err">&lt;sgen:Config</span><span class="k">&gt;</span>
+ <span class="err">   </span><span class="c">&lt;!-- specifies that the  source document uses OWL --&gt;</span>
+ <span class="err">   &lt;sgen:owl</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;boolean&quot;</span><span class="k">&gt;</span><span class="err">true&lt;/sgen:owl</span><span class="k">&gt;</span>
+
+ <span class="err">   </span><span class="c">&lt;!-- specifies that we want the generated vocab to use OntClass, OntProperty, etc, not Resource and Property --&gt;</span>
+ <span class="err">   &lt;sgen:ontology</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;boolean&quot;</span><span class="k">&gt;</span><span class="err">true&lt;/sgen:ontology</span><span class="k">&gt;</span>
+
+ <span class="err">   </span><span class="c">&lt;!-- specifies that we want names mapped to uppercase (as standard Java constants) --&gt;</span>
+ <span class="err">   &lt;sgen:uppercase</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;boolean&quot;</span><span class="k">&gt;</span><span class="err">true&lt;/sgen:uppercase</span><span class="k">&gt;</span>
+
+ <span class="err">   </span><span class="c">&lt;!-- append Vocab to class name, so input beer.owl becomes BeerVocab.java --&gt;</span>
+ <span class="err">   &lt;sgen:classnamesuffix</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;string&quot;</span><span class="k">&gt;</span><span class="err">Vocab&lt;/sgen:classnamesuffix</span><span class="k">&gt;</span>
+
+ <span class="err">   </span><span class="c">&lt;!-- the Java package that the vocabulary is in --&gt;</span>
+ <span class="err">   &lt;sgen:package</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;string&quot;</span><span class="k">&gt;</span><span class="err">com.example.vocabulary&lt;/sgen:package</span><span class="k">&gt;</span>
+
+ <span class="err">   </span><span class="c">&lt;!-- the directory or file to write the results out to --&gt;</span>
+ <span class="err">   &lt;sgen:output</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;string&quot;</span><span class="k">&gt;</span><span class="err">src/com/example/vocabulary&lt;/sgen:output</span><span class="k">&gt;</span>
+
+ <span class="err">   </span><span class="c">&lt;!-- the template for the file header --&gt;</span>
+<span class="err">&lt;sgen:header</span> <span class="err">rdf:datatype=</span><span class="s2">&quot;&amp;xsd;string&quot;</span><span class="k">&gt;</span><span class="err">/</span><span class="o">*****************************************************************************</span>
+ <span class="o">*</span> <span class="err">Source</span> <span class="err">code</span> <span class="err">information</span>
+ <span class="o">*</span> <span class="err">-----------------------</span>
+ <span class="o">*</span> <span class="err">Original</span> <span class="err">author</span> <span class="err">   Jane</span> <span class="err">Smart</span><span class="o">,</span> <span class="err">example.com</span>
+ <span class="o">*</span> <span class="err">Author</span> <span class="err">email</span> <span class="err">      jane.smart@example.com</span>
+ <span class="o">*</span> <span class="err">Package</span> <span class="err">           @package@</span>
+ <span class="o">*</span> <span class="err">Web</span> <span class="err">site</span> <span class="err">          @website@</span>
+ <span class="o">*</span> <span class="err">Created</span> <span class="err">           </span><span class="ni">%date%</span>
+<span class="ni"> * Filename           $RCSfile: schemagen.html,v $</span>
+<span class="ni"> * Revision           $Revision: 1.16 $</span>
+<span class="ni"> * Release status     @releaseStatus@ $State: Exp $</span>
+<span class="ni"> *</span>
+<span class="ni"> * Last modified on   $Date: 2010-06-11 00:08:23 $</span>
+<span class="ni"> *               by   $Author: ian_dickinson $</span>
+<span class="ni"> *</span>
+<span class="ni"> * @copyright@</span>
+<span class="ni"> *****************************************************************************/</span>
+
+
+<span class="ni">// Package</span>
+<span class="ni">///////////////////////////////////////</span>
+<span class="ni">%package%</span>
+
+
+<span class="ni">// Imports</span>
+<span class="ni">///////////////////////////////////////</span>
+<span class="ni">%imports%</span>
+
+
+
+<span class="ni">/**</span>
+<span class="ni"> * Vocabulary definitions from %sourceURI%</span>
+<span class="ni"> * @author Auto-generated by schemagen on %date%</span>
+<span class="ni"> */&lt;/sgen:header&gt;</span>
+
+<span class="ni">&lt;!-- the template for the file footer (note @footer@ is an Ant-ism, and will not be processed by SchemaGen) --&gt;</span>
+<span class="ni">&lt;sgen:footer rdf:datatype=&quot;&amp;xsd;</span><span class="err">string</span><span class="s2">&quot;&gt;</span>
+<span class="s2">/*</span>
+<span class="s2">@footer@</span>
+<span class="s2">*/</span>
+<span class="s2">&lt;/sgen:footer&gt;</span>
+
+<span class="s2">&lt;!-- template for extra declarations at the top of the class file --&gt;</span>
+<span class="s2">&lt;sgen:declarations rdf:datatype=&quot;</span><span class="ni">&amp;xsd;</span><span class="err">string</span><span class="s2">&quot;&gt;</span>
+<span class="s2">    /** Factory for generating symbols */</span>
+<span class="s2">    private static KsValueFactory s_vf = new DefaultValueFactory();</span>
+<span class="s2">&lt;/sgen:declarations&gt;</span>
+
+<span class="s2">&lt;!-- template for introducing the properties in the vocabulary --&gt;</span>
+<span class="s2">&lt;sgen:propSection rdf:datatype=&quot;</span><span class="ni">&amp;xsd;</span><span class="err">string</span><span class="s2">&quot;&gt;</span>
+<span class="s2">    // Vocabulary properties</span>
+<span class="s2">    ///////////////////////////</span>
+<span class="s2">&lt;/sgen:propSection&gt;</span>
+
+<span class="s2">&lt;!-- template for introducing the classes in the vocabulary --&gt;</span>
+<span class="s2">&lt;sgen:classSection rdf:datatype=&quot;</span><span class="ni">&amp;xsd;</span><span class="err">string</span><span class="s2">&quot;&gt;</span>
+<span class="s2">    // Vocabulary classes</span>
+<span class="s2">    ///////////////////////////</span>
+<span class="s2">&lt;/sgen:classSection&gt;</span>
+
+<span class="s2">&lt;!-- template for introducing the individuals in the vocabulary --&gt;</span>
+<span class="s2">&lt;sgen:individualsSection rdf:datatype=&quot;</span><span class="ni">&amp;xsd;</span><span class="err">string</span><span class="s2">&quot;&gt;</span>
+<span class="s2">    // Vocabulary individuals</span>
+<span class="s2">    ///////////////////////////</span>
+<span class="s2">&lt;/sgen:individualsSection&gt;</span>
+
+<span class="s2">&lt;!-- template for doing fancy declarations of individuals --&gt;</span>
+<span class="s2">&lt;sgen:individualTemplate rdf:datatype=&quot;</span><span class="ni">&amp;xsd;</span><span class="err">string</span><span class="s2">&quot;&gt;public static final KsSymbol %valname% = s_vf.newSymbol( &quot;</span><span class="ni">%valuri%&quot; );</span>
+
+ <span class="err">   /</span><span class="o">**</span> <span class="err">Ontology</span> <span class="err">individual</span> <span class="err">corresponding</span> <span class="err">to</span> <span class="err">{@link</span> <span class="err">#</span><span class="ni">%valname%} */</span>
+<span class="ni">    public static final %valclass% _%valname% = m_model.%valcreator%( %valtype%, &quot;%valuri%&quot; );</span>
+<span class="err">&lt;/sgen:individualTemplate</span><span class="k">&gt;</span>
 
-<span class="sr">&lt;/sgen:Config&gt;</span>
+<span class="err">&lt;/sgen:Config</span><span class="k">&gt;</span>
 
-<span class="sr">&lt;/rdf:RDF&gt;</span>
+<span class="err">&lt;/rdf:RDF</span><span class="k">&gt;</span>
 </pre></div>
   </div>
 

Modified: websites/staging/jena/trunk/content/download/maven.html
==============================================================================
--- websites/staging/jena/trunk/content/download/maven.html (original)
+++ websites/staging/jena/trunk/content/download/maven.html Thu Jun 20 10:18:34 2013
@@ -186,8 +186,7 @@ on a version of Jena:</p>
 
 
 <p>This will transitively resolve all the dependencies for you: <code>jena-core</code>,
-<code>jena-arq</code>, <code>jena-tdb</code> and <code>jena-iri</code> and their dependencies.<br />
-</p>
+<code>jena-arq</code>, <code>jena-tdb</code> and <code>jena-iri</code> and their dependencies.  </p>
 <p>Note the use of <code>&lt;type&gt;pom&lt;/type&gt;</code> above.  This does not work
 in all tools. An alternative is to depend on <code>jena-tdb</code>, which will pull
 in the other artifacts.</p>
@@ -249,7 +248,7 @@ to recent bug fixes, you should add the 
 install them in your local Maven repository, then you simply checkout the source 
 tree and build with maven 
 <code>mvn install</code>. This assumes you have Maven and Subversion installed:</p>
-<div class="codehilite"><pre><span class="n">svn</span> <span class="n">co</span> <span class="n">https:</span><span class="sr">//s</span><span class="n">vn</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">org</span><span class="sr">/repos/</span><span class="n">asf</span><span class="sr">/jena/</span><span class="n">trunk</span><span class="o">/</span> <span class="n">Jena</span>
+<div class="codehilite"><pre><span class="n">svn</span> <span class="n">co</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">svn</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">repos</span><span class="o">/</span><span class="n">asf</span><span class="o">/</span><span class="n">jena</span><span class="o">/</span><span class="n">trunk</span><span class="o">/</span> <span class="n">Jena</span>
 <span class="n">cd</span> <span class="n">Jena</span>
 <span class="n">mvn</span> <span class="n">clean</span> <span class="n">install</span>
 </pre></div>

Modified: websites/staging/jena/trunk/content/getting_involved/index.html
==============================================================================
--- websites/staging/jena/trunk/content/getting_involved/index.html (original)
+++ websites/staging/jena/trunk/content/getting_involved/index.html Thu Jun 20 10:18:34 2013
@@ -184,7 +184,7 @@ CMS?</a> for guidance on how to do this.
 <p>You can also check the state of each Jena module on our continuous integration server: <a href="https://builds.apache.org/view/G-L/view/Jena/">https://builds.apache.org/view/G-L/view/Jena/</a>.</p>
 <h3 id="subversion-repository">Subversion repository</h3>
 <p>You can find the Jena source code in the Apache subversion repository: <a href="http://svn.apache.org/repos/asf/jena/trunk/">http://svn.apache.org/repos/asf/jena/trunk/</a>.</p>
-<div class="codehilite"><pre><span class="n">svn</span> <span class="n">co</span> <span class="n">https:</span><span class="sr">//s</span><span class="n">vn</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">org</span><span class="sr">/repos/</span><span class="n">asf</span><span class="sr">/jena/</span><span class="n">trunk</span><span class="o">/</span> <span class="n">Jena</span>
+<div class="codehilite"><pre><span class="n">svn</span> <span class="n">co</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">svn</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">org</span><span class="o">/</span><span class="n">repos</span><span class="o">/</span><span class="n">asf</span><span class="o">/</span><span class="n">jena</span><span class="o">/</span><span class="n">trunk</span><span class="o">/</span> <span class="n">Jena</span>
 <span class="n">cd</span> <span class="n">Jena</span>
 <span class="n">mvn</span> <span class="n">clean</span> <span class="n">install</span>
 </pre></div>
@@ -196,13 +196,13 @@ Or, you can look at the <a href="https:/
 <h3 id="submit-your-patches">Submit your patches</h3>
 <p>Patches should be attached to issues in Jira (click on <code>More Actions &gt; Attach Files</code>).
 To create a patch you can simply use the command:</p>
-<div class="codehilite"><pre><span class="n">svn</span> <span class="n">diff</span> <span class="o">&gt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="o">.</span><span class="n">patch</span>
+<div class="codehilite"><pre><span class="n">svn</span> <span class="n">diff</span> <span class="o">&gt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="p">.</span><span class="n">patch</span>
 </pre></div>
 
 
 <p>Please, inspect your patch and make sure it includes all (and only) the relevant changes for a single issue. Don't forget tests!
 If you want to test if a patch applies cleanly you can use:</p>
-<div class="codehilite"><pre><span class="n">patch</span> <span class="o">-</span><span class="n">p0</span> <span class="o">&lt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="o">.</span><span class="n">patch</span>
+<div class="codehilite"><pre><span class="n">patch</span> <span class="o">-</span><span class="n">p0</span> <span class="o">&lt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="p">.</span><span class="n">patch</span>
 </pre></div>
 
 

Modified: websites/staging/jena/trunk/content/help_and_support/bugs_and_suggestions.html
==============================================================================
--- websites/staging/jena/trunk/content/help_and_support/bugs_and_suggestions.html (original)
+++ websites/staging/jena/trunk/content/help_and_support/bugs_and_suggestions.html Thu Jun 20 10:18:34 2013
@@ -162,13 +162,13 @@ but are less likely to be accidentally f
 <p>Patches and other code contributions should also be attached to issues in JIRA (click on <code>More Actions &gt; Attach Files</code>). 
 Please note that ASF requires that all contributions must be covered by an appropriate license.
 To create a patch you can simply use the command: </p>
-<div class="codehilite"><pre><span class="n">svn</span> <span class="n">diff</span> <span class="o">&gt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="o">.</span><span class="n">patch</span>
+<div class="codehilite"><pre><span class="n">svn</span> <span class="n">diff</span> <span class="o">&gt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="p">.</span><span class="n">patch</span>
 </pre></div>
 
 
 <p>Please, inspect your patch and make sure it includes all (and only) the relevant changes for a single issue. Don't forget unit tests!
 If you want to test if a patch applies cleanly you can use: </p>
-<div class="codehilite"><pre><span class="n">patch</span> <span class="o">-</span><span class="n">p0</span> <span class="o">&lt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="o">.</span><span class="n">patch</span>
+<div class="codehilite"><pre><span class="n">patch</span> <span class="o">-</span><span class="n">p0</span> <span class="o">&lt;</span> <span class="n">JENA</span><span class="o">-</span><span class="n">XYZ</span><span class="p">.</span><span class="n">patch</span>
 </pre></div>
 
 

Modified: websites/staging/jena/trunk/content/tutorials/rdf_api.html
==============================================================================
--- websites/staging/jena/trunk/content/tutorials/rdf_api.html (original)
+++ websites/staging/jena/trunk/content/tutorials/rdf_api.html Thu Jun 20 10:18:34 2013
@@ -759,6 +759,7 @@ such as extracting a Java <code>Map</cod
 adding a whole group of mappings at once; see the documentation for
 <code>PrefixMapping</code> for details.
 
+
 <h2 id="ch-Jena RDF Packages">Jena RDF Packages</h2>
 
 <p>Jena is a Java API for semantic web applications.  The key RDF package for
@@ -787,6 +788,7 @@ used. That way, if the model implementat
 implementation of <code>Resource</code>, then no conversions between the two
 types will be necessary.</p>
 
+
 <h2 id="ch-Navigating a Model">Navigating a Model</h2>
 
 <p>So far, this tutorial has dealt mainly with creating, reading and writing
@@ -898,6 +900,7 @@ The code produces the following output w
 <code>listProperties()</code> method without an argument.
 </p>
 
+
 <h2 id="ch-Querying a Model">Querying a Model</h2>
 
 <p>The previous section dealt with the case of navigating a model from a
@@ -974,6 +977,9 @@ is equivalent to
 <blockquote><code>listStatements( new SimpleSelector( S, P, O ) )
 </code></blockquote>
 
+
+
+
 <p>
 The following code, which can be found in full in <a
 href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial 7</a> lists the full names on all the

Modified: websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html
==============================================================================
--- websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html (original)
+++ websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html Thu Jun 20 10:18:34 2013
@@ -598,6 +598,7 @@ Você verá que os prefixos da entra
 
 <p>Jena possui outras operações sobre mapeamento de prefixos de um modelo, como um<code>Map</code> de Java extraído a partir dos mapeamentos existentes, ou a adição de um grupo inteiro de mapeamentos de uma só vez; olhe a documentação de <code>PrefixMapping</code> para mais detalhes.
 
+
 <h2 id="ch-Jena RDF Packages">Pacotes Jena RDF</h2>
 
 <p>Jena é uma API JAVA para aplicações de web semântica. O pacote RDF chave para o desenvolvedor é
@@ -608,6 +609,7 @@ Você verá que os prefixos da entra
 <p>Os pacotes <code>com.hp.hpl.jena...impl</code> contêm a implementação de classes que podem ser comuns a várias implementações. Por exemplo, eles definem as classes <code>ResourceImpl</code>,
 <code>PropertyImpl</code>, e <code>LiteralImpl</code> que podem ser usadas diretamente ou então herdadas por diferentes implementações. As aplicações devem raramente usar essas classes diretamente. Por exemplo, em vez de criar um nova instância de  <code>ResourceImpl</code>, é melhor usar o método <code>createResource</code> do modelo que estiver sendo usado. Desta forma, se a implementação do modelo usar uma implementação otimizada de <code>Resource</code>, então não serão necessárias conversões entre os dois tipos.</p>
 
+
 <h2 id="ch-Navigating a Model">Navegação em Modelos</h2>
 
 <p>Até agora, este tutorial mostrou como criar, ler e escrever modelos RDF. Chegou o momento de mostrar como acessar as informações mantidas num modelo.</p>
@@ -682,6 +684,7 @@ while (iter.hasNext()) {
 <code>listProperties()</code> sem argumentos.
 </p>
 
+
 <h2 id="ch-Querying a Model">Consultas em Modelos</h2>
 
 <p>A sessão anterior mostrou como navegar um modelo a partir de um recurso com uma URI conhecida. Essa sessão mostrará como fazer buscas em um modelo. O núcleo da API Jena suporta um limitada primitiva de consulta. As consultas mais poderosas de RDQL são descritas em outros lugares.</p>
@@ -733,6 +736,9 @@ while (iter.hasNext()) {
 <blockquote><code>listStatements( new SimpleSelector( S, P, O ) )
 </code></blockquote>
 
+
+
+
 <p>
 O código a seguir, que pode ser encontrado em  <a
 href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial 7</a> que lista os nomes completos de todos os vcards do banco de dados.</p>

Modified: websites/staging/jena/trunk/content/tutorials/sparql_basic_patterns.html
==============================================================================
--- websites/staging/jena/trunk/content/tutorials/sparql_basic_patterns.html (original)
+++ websites/staging/jena/trunk/content/tutorials/sparql_basic_patterns.html Thu Jun 20 10:18:34 2013
@@ -167,8 +167,8 @@ the pattern matched - which values the v
 pattern to match.</p>
 <p>The first query example had a single solution. Change the pattern
 to this second query: (<a href="sparql_data/q-bp1.rq">q-bp1.rq</a>):</p>
-<div class="codehilite"><pre><span class="n">SELECT</span> <span class="p">?</span><span class="n">x</span> <span class="p">?</span><span class="n">fname</span>
-<span class="n">WHERE</span> <span class="p">{?</span><span class="n">x</span>  <span class="sr">&lt;http://www.w3.org/2001/vcard-rdf/3.0#FN&gt;</span>  <span class="p">?</span><span class="n">fname</span><span class="p">}</span>
+<div class="codehilite"><pre><span class="n">SELECT</span> ?<span class="n">x</span> ?<span class="n">fname</span>
+<span class="n">WHERE</span> <span class="p">{</span>?<span class="n">x</span>  <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="p">.</span><span class="n">w3</span><span class="p">.</span><span class="n">org</span><span class="o">/</span>2001<span class="o">/</span><span class="n">vcard</span><span class="o">-</span><span class="n">rdf</span><span class="o">/</span>3<span class="p">.</span>0#<span class="n">FN</span><span class="o">&gt;</span>  ?<span class="n">fname</span><span class="p">}</span>
 </pre></div>
 
 
@@ -177,10 +177,10 @@ the data source</p>
 <div class="codehilite"><pre><span class="o">----------------------------------------------------</span>
 <span class="o">|</span> <span class="n">x</span>                                <span class="o">|</span> <span class="n">name</span>          <span class="o">|</span>
 <span class="o">====================================================</span>
-<span class="o">|</span> <span class="sr">&lt;http://somewhere/RebeccaSmith/&gt;</span> <span class="o">|</span> <span class="s">&quot;Becky Smith&quot;</span> <span class="o">|</span>
-<span class="o">|</span> <span class="sr">&lt;http://somewhere/SarahJones/&gt;</span>   <span class="o">|</span> <span class="s">&quot;Sarah Jones&quot;</span> <span class="o">|</span>
-<span class="o">|</span> <span class="sr">&lt;http://somewhere/JohnSmith/&gt;</span>    <span class="o">|</span> <span class="s">&quot;John Smith&quot;</span>  <span class="o">|</span>
-<span class="o">|</span> <span class="sr">&lt;http://somewhere/MattJones/&gt;</span>    <span class="o">|</span> <span class="s">&quot;Matt Jones&quot;</span>  <span class="o">|</span>
+<span class="o">|</span> <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">somewhere</span><span class="o">/</span><span class="n">RebeccaSmith</span><span class="o">/&gt;</span> <span class="o">|</span> &quot;<span class="n">Becky</span> <span class="n">Smith</span>&quot; <span class="o">|</span>
+<span class="o">|</span> <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">somewhere</span><span class="o">/</span><span class="n">SarahJones</span><span class="o">/&gt;</span>   <span class="o">|</span> &quot;<span class="n">Sarah</span> <span class="n">Jones</span>&quot; <span class="o">|</span>
+<span class="o">|</span> <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">somewhere</span><span class="o">/</span><span class="n">JohnSmith</span><span class="o">/&gt;</span>    <span class="o">|</span> &quot;<span class="n">John</span> <span class="n">Smith</span>&quot;  <span class="o">|</span>
+<span class="o">|</span> <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">somewhere</span><span class="o">/</span><span class="n">MattJones</span><span class="o">/&gt;</span>    <span class="o">|</span> &quot;<span class="n">Matt</span> <span class="n">Jones</span>&quot;  <span class="o">|</span>
 <span class="o">----------------------------------------------------</span>
 </pre></div>
 
@@ -195,10 +195,10 @@ variables in every solution as we shall 
 <p>A basic pattern is a set of triple patterns. It matches when the
 triple patterns all match with the same value used each time the
 variable with the same name is used.</p>
-<div class="codehilite"><pre><span class="n">SELECT</span> <span class="p">?</span><span class="n">givenName</span>
+<div class="codehilite"><pre><span class="n">SELECT</span> ?<span class="n">givenName</span>
 <span class="n">WHERE</span>
-  <span class="p">{</span> <span class="p">?</span><span class="n">y</span>  <span class="sr">&lt;http://www.w3.org/2001/vcard-rdf/3.0#Family&gt;</span>  <span class="s">&quot;Smith&quot;</span> <span class="o">.</span>
-    <span class="p">?</span><span class="n">y</span>  <span class="sr">&lt;http://www.w3.org/2001/vcard-rdf/3.0#Given&gt;</span>  <span class="p">?</span><span class="n">givenName</span> <span class="o">.</span>
+  <span class="p">{</span> ?<span class="n">y</span>  <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="p">.</span><span class="n">w3</span><span class="p">.</span><span class="n">org</span><span class="o">/</span>2001<span class="o">/</span><span class="n">vcard</span><span class="o">-</span><span class="n">rdf</span><span class="o">/</span>3<span class="p">.</span>0#<span class="n">Family</span><span class="o">&gt;</span>  &quot;<span class="n">Smith</span>&quot; <span class="p">.</span>
+    ?<span class="n">y</span>  <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="p">.</span><span class="n">w3</span><span class="p">.</span><span class="n">org</span><span class="o">/</span>2001<span class="o">/</span><span class="n">vcard</span><span class="o">-</span><span class="n">rdf</span><span class="o">/</span>3<span class="p">.</span>0#<span class="n">Given</span><span class="o">&gt;</span>  ?<span class="n">givenName</span> <span class="p">.</span>
   <span class="p">}</span>
 </pre></div>
 
@@ -210,9 +210,9 @@ to be the same for each triple pattern m
 are:</p>
 <div class="codehilite"><pre><span class="o">-------------</span>
 <span class="o">|</span> <span class="n">givenName</span> <span class="o">|</span>
-<span class="o">=============</span>
-<span class="o">|</span> <span class="s">&quot;John&quot;</span>    <span class="o">|</span>
-<span class="o">|</span> <span class="s">&quot;Rebecca&quot;</span> <span class="o">|</span>
+<span class="o">============</span><span class="p">=</span>
+<span class="o">|</span> &quot;<span class="n">John</span>&quot;    <span class="o">|</span>
+<span class="o">|</span> &quot;<span class="n">Rebecca</span>&quot; <span class="o">|</span>
 <span class="o">-------------</span>
 </pre></div>
 
@@ -221,12 +221,12 @@ are:</p>
 <p>There is shorthand mechanism for writing long URIs using prefixes.
 The query above is more clearly written as the query
 (<a href="sparql_data/q-bp3.rq">q-bp3.rq</a>):</p>
-<div class="codehilite"><pre><span class="n">PREFIX</span> <span class="n">vcard:</span>      <span class="sr">&lt;http://www.w3.org/2001/vcard-rdf/3.0#&gt;</span>
+<div class="codehilite"><pre><span class="n">PREFIX</span> <span class="n">vcard</span><span class="p">:</span>      <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="p">.</span><span class="n">w3</span><span class="p">.</span><span class="n">org</span><span class="o">/</span>2001<span class="o">/</span><span class="n">vcard</span><span class="o">-</span><span class="n">rdf</span><span class="o">/</span>3<span class="p">.</span>0#<span class="o">&gt;</span>
 
-<span class="n">SELECT</span> <span class="p">?</span><span class="n">givenName</span>
+<span class="n">SELECT</span> ?<span class="n">givenName</span>
 <span class="n">WHERE</span>
- <span class="p">{</span> <span class="p">?</span><span class="n">y</span> <span class="n">vcard:Family</span> <span class="s">&quot;Smith&quot;</span> <span class="o">.</span>
-   <span class="p">?</span><span class="n">y</span> <span class="n">vcard:Given</span>  <span class="p">?</span><span class="n">givenName</span> <span class="o">.</span>
+ <span class="p">{</span> ?<span class="n">y</span> <span class="n">vcard</span><span class="p">:</span><span class="n">Family</span> &quot;<span class="n">Smith</span>&quot; <span class="p">.</span>
+   ?<span class="n">y</span> <span class="n">vcard</span><span class="p">:</span><span class="n">Given</span>  ?<span class="n">givenName</span> <span class="p">.</span>
  <span class="p">}</span>
 </pre></div>
 
@@ -239,12 +239,12 @@ concatenating the parts.</p>
 <h3 id="blank-nodes">Blank Nodes</h3>
 <p>Change the query just a little to return y as well
 (<a href="sparql_data/q-bp4.rq">q-bp4.rq</a>) :</p>
-<div class="codehilite"><pre><span class="n">PREFIX</span> <span class="n">vcard:</span>      <span class="sr">&lt;http://www.w3.org/2001/vcard-rdf/3.0#&gt;</span>
+<div class="codehilite"><pre><span class="n">PREFIX</span> <span class="n">vcard</span><span class="p">:</span>      <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="p">.</span><span class="n">w3</span><span class="p">.</span><span class="n">org</span><span class="o">/</span>2001<span class="o">/</span><span class="n">vcard</span><span class="o">-</span><span class="n">rdf</span><span class="o">/</span>3<span class="p">.</span>0#<span class="o">&gt;</span>
 
-<span class="n">SELECT</span> <span class="p">?</span><span class="n">y</span> <span class="p">?</span><span class="n">givenName</span>
+<span class="n">SELECT</span> ?<span class="n">y</span> ?<span class="n">givenName</span>
 <span class="n">WHERE</span>
- <span class="p">{</span> <span class="p">?</span><span class="n">y</span> <span class="n">vcard:Family</span> <span class="s">&quot;Smith&quot;</span> <span class="o">.</span>
-   <span class="p">?</span><span class="n">y</span> <span class="n">vcard:Given</span>  <span class="p">?</span><span class="n">givenName</span> <span class="o">.</span>
+ <span class="p">{</span> ?<span class="n">y</span> <span class="n">vcard</span><span class="p">:</span><span class="n">Family</span> &quot;<span class="n">Smith</span>&quot; <span class="p">.</span>
+   ?<span class="n">y</span> <span class="n">vcard</span><span class="p">:</span><span class="n">Given</span>  ?<span class="n">givenName</span> <span class="p">.</span>
  <span class="p">}</span>
 </pre></div>
 
@@ -253,8 +253,8 @@ concatenating the parts.</p>
 <div class="codehilite"><pre><span class="o">--------------------</span>
 <span class="o">|</span> <span class="n">y</span>    <span class="o">|</span> <span class="n">givenName</span> <span class="o">|</span>
 <span class="o">====================</span>
-<span class="o">|</span> <span class="n">_:b0</span> <span class="o">|</span> <span class="s">&quot;John&quot;</span>    <span class="o">|</span>
-<span class="o">|</span> <span class="n">_:b1</span> <span class="o">|</span> <span class="s">&quot;Rebecca&quot;</span> <span class="o">|</span>
+<span class="o">|</span> <span class="n">_</span><span class="p">:</span><span class="n">b0</span> <span class="o">|</span> &quot;<span class="n">John</span>&quot;    <span class="o">|</span>
+<span class="o">|</span> <span class="n">_</span><span class="p">:</span><span class="n">b1</span> <span class="o">|</span> &quot;<span class="n">Rebecca</span>&quot; <span class="o">|</span>
 <span class="o">--------------------</span>
 </pre></div>
 



Mime
View raw message