Edit C:\Users\Admin\.m2\repository\com\hp\hpl\jena\jena\2.6.4\etc\schemagen.rdf
<?xml version='1.0'?> <!DOCTYPE rdf:RDF [ <!ENTITY jena 'http://jena.hpl.hp.com/'> <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> <!ENTITY owl 'http://www.w3.org/2002/07/owl#'> <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> <!ENTITY base '&jena;2003/04/schemagen'> <!ENTITY sgen '&base;#'> ]> <rdf:RDF xmlns:rdf ="&rdf;" xmlns:rdfs ="&rdfs;" xmlns:owl ="&owl;" xmlns:sgen ="&sgen;" xmlns ="&sgen;" xml:base ="&base;" > <!-- Example schemagen configuration for use with jena.schemagen Not all possible options are used in this example, see Javadoc and Howto for full details. Author: Ian Dickinson, mailto:ian_dickinson@users.sourceforge.net CVS: $Id: schemagen.rdf,v 1.3 2009/10/06 13:04:42 ian_dickinson Exp $ --> <sgen:Config> <!-- specifies that the source document uses OWL --> <sgen:owl rdf:datatype="&xsd;boolean">true</sgen:owl> <!-- specifies that we want the generated vocab to use OntClass, OntProperty, etc, not Resource and Property --> <sgen:ontology rdf:datatype="&xsd;boolean">true</sgen:ontology> <!-- specifies that we want names mapped to uppercase (as standard Java constants) --> <sgen:uppercase rdf:datatype="&xsd;boolean">true</sgen:uppercase> <!-- append Vocab to class name, so input beer.owl becomes BeerVocab.java --> <sgen:classnamesuffix rdf:datatype="&xsd;string">Vocab</sgen:classnamesuffix> <!-- the java package that the vocabulary is in --> <sgen:package rdf:datatype="&xsd;string">com.example.vocabulary</sgen:package> <!-- the directory or file to write the results out to --> <sgen:output rdf:datatype="&xsd;string">src/com/example/vocabulary</sgen:output> <!-- the template for the file header --> <sgen:header rdf:datatype="&xsd;string">/***************************************************************************** * Source code information * ----------------------- * Original author Jane Smart, example.com * Author email jane.smart@example.com * Package @package@ * Web site @website@ * Created %date% * Filename $RCSfile: schemagen.rdf,v $ * Revision $Revision: 1.3 $ * Release status @releaseStatus@ $State: Exp $ * * Last modified on $Date: 2009/10/06 13:04:42 $ * by $Author: ian_dickinson $ * * @copyright@ *****************************************************************************/ // Package /////////////////////////////////////// %package% // Imports /////////////////////////////////////// %imports% /** * Vocabulary definitions from %sourceURI% * @author Auto-generated by schemagen on %date% */</sgen:header> <!-- the template for the file footer (note @footer@ is an ant-ism, will not be processed by VocabGen) --> <sgen:footer rdf:datatype="&xsd;string"> /* @footer@ */ </sgen:footer> <!-- template for extra declarations at the top of the class file --> <sgen:declarations rdf:datatype="&xsd;string"> /** Factory for generating symbols */ private static KsValueFactory s_vf = new DefaultValueFactory(); </sgen:declarations> <!-- template for introducing the properties in the vocabulary --> <sgen:propSection rdf:datatype="&xsd;string"> // Vocabulary properties /////////////////////////// </sgen:propSection> <!-- template for introducing the classes in the vocabulary --> <sgen:classSection rdf:datatype="&xsd;string"> // Vocabulary classes /////////////////////////// </sgen:classSection> <!-- template for introducing the individuals in the vocabulary --> <sgen:individualsSection rdf:datatype="&xsd;string"> // Vocabulary individuals /////////////////////////// </sgen:individualsSection> <!-- template for doing fancy declarations of individuals --> <sgen:individualTemplate rdf:datatype="&xsd;string">public static final KsSymbol %valname% = s_vf.newSymbol( "%valuri%" ); /** Ontology individual corresponding to {@link #%valname%} */ public static final %valclass% _%valname% = m_model.%valcreator%( %valtype%, "%valuri%" ); </sgen:individualTemplate> </sgen:Config> </rdf:RDF>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de