Hi Dave,

Thanks a lot for the explanation!
Yes, I’ve been running the “other” schemagen all the time without realising it, 
which is very confusing indeed..

I don’t know whether other people are having the same problem as me, 
but I think it will be nice if the introduction to Jena schemagen contain this 
piece of information (about other schemagen). 

Thanks again!,
--
Fajar J. Ekaputra



> On 02 Sep 2015, at 11:42, Dave Reynolds <[email protected]> wrote:
> 
> 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
> 
> 

Reply via email to