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 2014/05/08 00:10:29 UTC
svn commit: r908341 - in /websites/staging/jena/trunk/content: ./
documentation/tools/schemagen.html
Author: buildbot
Date: Wed May 7 22:10:29 2014
New Revision: 908341
Log:
Staging update by buildbot for jena
Modified:
websites/staging/jena/trunk/content/ (props changed)
websites/staging/jena/trunk/content/documentation/tools/schemagen.html
Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed May 7 22:10:29 2014
@@ -1 +1 @@
-1592253
+1593147
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 Wed May 7 22:10:29 2014
@@ -189,6 +189,16 @@ options is explained in detail below.</p
<td>Template for writing out declarations of class resources.</td>
</tr>
<tr>
+<td><code>--datatypesSection <string\></code></td>
+<td><code>sgen:datatypesSection</code></td>
+<td>Section declaration comment for datatypes section.</td>
+</tr>
+<tr>
+<td><code>--datatypeTemplate <string\></code></td>
+<td><code>sgen:datatypeTemplate</code></td>
+<td>Template for writing out declarations of datatypes.</td>
+</tr>
+<tr>
<td><code>--declarations <string\></code></td>
<td><code>sgen:declarations</code></td>
<td>Additional declarations to add at the top of the class.</td>
@@ -259,6 +269,11 @@ options is explained in detail below.</p
<td>Turn off all comment output in the generated vocabulary</td>
</tr>
<tr>
+<td><code>--nodatatypes</code></td>
+<td><code>sgen:nodatatypes</code></td>
+<td>Option to suppress datatypes in the generated vocabulary file.</td>
+</tr>
+<tr>
<td><code>--noheader</code></td>
<td><code>sgen:noHeader</code></td>
<td>Prevent the output of a file header, with class comment etc.</td>
@@ -1104,16 +1119,16 @@ configuration options file.</p>
<tbody>
<tr>
<td><strong>Command line</strong></td>
-<td><code>--noclasses</code><br /><code>--noproperties</code><br /><code>--noindividuals</code></td>
+<td><code>--noclasses</code><br /><code>--nodatatypes</code><br /><code>--noproperties</code><br /><code>--noindividuals</code></td>
</tr>
<tr>
<td><strong>Config file</strong></td>
-<td><code><sgen:noclassses rdf:datatype="&xsd;boolean"\>true</sgen:noclassses\></code><br /><code><sgen:noproperties rdf:datatype="&xsd;boolean"\>true</sgen:noproperties\></code><br /><code><sgen:noindividuals rdf:datatype="&xsd;boolean"\>true</sgen:noindividuals\></code></td>
+<td><code><sgen:noclassses rdf:datatype="&xsd;boolean"\>true</sgen:noclassses\></code><br /><code><sgen:nodatatypes rdf:datatype="&xsd;boolean"\>true</sgen:nodatatypes\></code><br /><code><sgen:noproperties rdf:datatype="&xsd;boolean"\>true</sgen:noproperties\></code><br /><code><sgen:noindividuals rdf:datatype="&xsd;boolean"\>true</sgen:noindividuals\></code></td>
</tr>
</tbody>
</table>
<p>By default, the vocabulary class generated from a given ontology
-will include constants for each of the included classes, properties
+will include constants for each of the included classes, datatypes, properties
and individuals in the ontology. To omit any of these groups, use
the corresponding <em>noXYZ</em> configuration option. For example,
specifying <code>--noproperties</code> means that the generated class will not
@@ -1130,11 +1145,11 @@ ontology, irrespective of what is in the
<tbody>
<tr>
<td><strong>Command line</strong></td>
-<td><code>--classSection *<section heading\>*</code><br /><code>--propSection*<section heading\>*</code><br /><code>--individualSection *<section heading*\></code><br /><code>--header *<file header section\>*</code><br /><code>--footer *<file footer section\>*</code></td>
+<td><code>--classSection *<section heading\>*</code><br /><code>--datatypeSection *<section heading\>*</code><br /><code>--propSection *<section heading\>*</code><br /><code>--individualSection *<section heading*\></code><br /><code>--header *<file header section\>*</code><br /><code>--footer *<file footer section\>*</code></td>
</tr>
<tr>
<td><strong>Config file</strong></td>
-<td><code><sgen:classSection rdf:datatype="&xsd;string"\>*section heading*</sgen:classSection\></code><br /><code><sgen:propSection rdf:datatype="&xsd;string"\>*section heading*</sgen:propSection\></code><br /><code><sgen:individualSection rdf:datatype="&xsd;string"\>*section heading*</sgen:individualSection\></code><br /><code><sgen:header rdf:datatype="&xsd;string"\>*file header*</sgen:header\></code><br /><code><sgen:footer rdf:datatype="&xsd;string"\>*file footer*</sgen:footer\></code></td>
+<td><code><sgen:classSection rdf:datatype="&xsd;string"\>*section heading*</sgen:classSection\></code><br /><code><sgen:datatypeSection rdf:datatype="&xsd;string"\>*section heading*</sgen:datatypeSection\></code><br /><code><sgen:propSection rdf:datatype="&xsd;string"\>*section heading*</sgen:propSection\></code><br /><code><sgen:individualSection rdf:datatype="&xsd;string"\>*section heading*</sgen:individualSection\></code><br /><code><sgen:header rdf:datatype="&xsd;string"\>*file header*</sgen:header\></code><br /><code><sgen:footer rdf:datatype="&xsd;string"\>*file footer*</sgen:footer\></code></td>
</tr>
</tbody>
</table>
@@ -1142,8 +1157,8 @@ ontology, irrespective of what is in the
sections of a class. These options allow the introduction of
arbitrary Java code, though typically this will be a comment block,
at the head of the sections of class constant declarations,
-property constant declarations, and individual constant
-declarations.</p>
+datatype constant declarations, property constant declarations,
+and individual constant declarations.</p>
<h3 id="include-vocabulary-source-code">Include vocabulary source code</h3>
<table>
<thead>
@@ -1396,6 +1411,12 @@ blue.</p>
<span class="s2"> Â Â Â ///////////////////////////</span>
<span class="s2"></sgen:classSection></span>
+<span class="s2"><!-- template for introducing the datatypes in the vocabulary --></span>
+<span class="s2"><sgen:datatypeSection rdf:datatype="</span><span class="ni">&xsd;</span><span class="err">string</span><span class="s2">"></span>
+<span class="s2"> Â Â Â // Vocabulary datatypes</span>
+<span class="s2"> Â Â Â ///////////////////////////</span>
+<span class="s2"></sgen:datatypeSection></span>
+
<span class="s2"><!-- template for introducing the individuals in the vocabulary --></span>
<span class="s2"><sgen:individualsSection rdf:datatype="</span><span class="ni">&xsd;</span><span class="err">string</span><span class="s2">"></span>
<span class="s2"> Â Â Â // Vocabulary individuals</span>