On 02/09/15 10:28, Fajar Juang Ekaputra wrote:
Hi All,
I am trying to follow the schemagen documentation as listed in [1] to retrieve
java file from my ontology.
However, when I am running the “schemagen” tool from
<jena-folder>/bin/schemagen, it provide me with totally different options
compared with the documentation.
Am I running different/wrong schemagen here?
Thanks in advance!
Unless things have changed recently then if you run it with no options
you should see something like:
"""
Usage:
java jena.schemagen [options ...]
Commonly used options include:
-i <input> the source document as a file or URL.
-n <name> the name of the created Java class.
-a <uri> the namespace URI of the source document.
-o <file> the file to write the generated class into.
-o <dir> the directory in which the generated Java class is created.
By default, output goes to stdout.
-e <encoding> the encoding of the input document (N3, RDF/XML, etc).
-c <config> a filename or URL for an RDF document containing
configuration parameters.
Many other options are available. See the schemagen HOWTO in the
Jena documentation for full details.
"""
That short list of common options is, as the message says, just a subset
of those in the documentation.
Confusingly there is a JAXB tool also called schemagen which is part of
the JDK. If you have your search path set up wrong it's possible you are
running that:
http://linux.die.net/man/1/schemagen-java-1.7.0-openjdk
Dave