Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jena.cmdline.* (4)jena.test.* (2)

jena: Javadoc index of package jena.


Package Samples:

jena.test: A package for some Jena command-line programs, including copying RDF data with representation conversion, eg XML to N3 comparing two RDF files for isomorphism (extended equality) an interface to the ARP RDF parser access to the RDQL interpreter a schema-to-Java generator  
jena.cmdline

Classes:

rdfparse: A command line interface into ARP. Creates NTriple's or just error messages. java <class-path> jena.rdfparse ( [ -[xstfu]][ -b xmlBase -[eiw] NNN[,NNN...] ] [ file ] [ url ] )... java <class-path> jena.rdfparse --test java <class-path> jena.rdfparse --internal-test <class-path> should contain jena.jar , xerces.jar , junit.jar , and icu4j.jar or equivalents. The last two forms are for testing. --test runs ARP against the RDF Core Working Group tests found at w3.org. --internal-test uses a cached copy from within the jena.jar. All options, files and URLs can be intemingled ...
schemagen_orig: The original version of a program to read in an RDF schema and generate a corresponding Jena constant schema class. Jena now provides a new version of schemagen, with extended functionality and a different set of command line options. The previous version has been renamed schemagen_orig, so that users with scripts that depend on the behaviour of the original schemagen can still have access to it. This program will read an RDF schema and generate the source for a Jena Vocabulary class for that schema. java jena.schemagen_orig name schemaURIRef input output [lang] name is the vocabulary name e.g. ...
rdfquery: A program to execute queries from the command line. Queries can specify the source file so this can be used as a simple script engine for RDQL. Usage: [--xml|--ntriple] [--data URL] [queryString | --query file]") ; --query file Read one query from a file --rdfs Use an RDFS reasoner around the data --reasoner URI Set the reasoner URI explicitly. --vocab URL | File Specify a separate vocabulary (may also be in the data) --xml Data source is XML (default) --ntriple Data source is n-triple --n3 Data source is N3 --data URL | File Data source (can also be part of query) --time Print some time information ...
rdfcopy: A program which read an RDF model and copy it to the standard output stream. This program will read an RDF model, in a variety of languages, and copy it to the output stream in a possibly different langauge. Input can be read either from a URL or from a file. The program writes its results to the standard output stream and sets its exit code to 0 if the program terminate normally, and to -1 if it encounters an error. java jena.rdfcopy model [inlang [outlang]] model1 and model2 can be file names or URL's inlang and outlang specify the language of the input and output respectively and can be: RDF/XML ...
CommandLine: Command line argument processing based on a trigger model. An action is called whenever an argument is encountered. Example: public static void main (String[] args) { CommandLine cl = new CommandLine() ; cl.add(false, "verbose") .add(true, "--file") ; cl.process(args) ; for ( Iterator iter = cl.args() ; iter.hasNext() ; ) ... } A gloabl hook is provided to inspect arguments just before the action. Tracing is enabled by setting this to a suitable function such as that provided by trace(): cl.setHook(cl.trace()) ; Neutral as to whether options have - or -- Does not allow multiple single letter options ...
rdfcompare: A program which read two RDF models and determines if they are the same. This program will read two RDF models, in a variety of languages, and compare them. Input can be read either from a URL or from a file. The program writes its results to the standard output stream and sets its exit code to 0 if the models are equal, to 1 if they are not and to -1 if it encounters an error. java jena.rdfcompare model1 model2 [lang1 [lang2]] model1 and model2 can be file names or URL's lang1 and lang2 specify the language of the input and can be: RDF/XML N-TRIPLE N3
RuleMap: General command line utility to process one RDF file into another by application of a set of forward chaining rules. Usage: RuleMap [-il inlang] [-ol outlang] [-d] rulefile infile The resulting RDF data is written to stdout in format outlang -d is given then only the deductions generated by the rules are output. Otherwise all data including any input data (other than any removed triples) is output. Rules are permitted an additional action "deduce" which forces triples to be added to the deductions graph even if they are already known (for use in deductions only mode).
dbload: Load data files into a Jena model in a database. Usage: jena.dbload [db spec] file [file ...] where [db spec] is: --spec file Contains an RDF description of the model --db JDBC_url --dbUser userId --dbPassword password --dbType [--model modelName] The syntax of a file is determimed by its extension (.n3, .nt) and defaults to RDF/XML.
dbdump: Write out the data from a database. Currently broken :-( Usage: jena.dbdump [db spec] where [db spec] is: --spec file Contains an RDF description of the model --db JDBC_url --dbUser userId --dbPassword password --dbType [--model modelName]
dbremove: Destroy a Jena RDF model available in a database. Use with care. Usage: jena.dbremove [db spec] where [db spec] is: --spec file Contains an RDF description of the model --db JDBC_url --dbUser userId --dbPassword password --dbType [--model modelName]
dblist: List the models available in a database Usage: jena.dblist [db spec] where [db spec] is: --spec file Contains an RDF description of the model --db JDBC_url --dbUser userId --dbPassword password --dbType Ignores any --model modelName .
dbcreate: Create one Jena RDF model in a database. Usage: jena.dbcreate [db spec] where [db spec] is: --spec file Contains an RDF description of the model --db JDBC_url --dbUser userId --dbPassword password --dbType [--model modelName]
schemagen: A vocabulary generator, that will consume an ontology or other vocabulary file, and generate a Java file with the constants from the vocabulary compiled in. Designed to be highly flexible and customisable.
Arg: A command line argument that has been foundspecification.
n3: Read N3 files and print in a variery of formats.
ArgHandler: Interface for processing flag arguments.
ArgDecl: A command line argument specification.
DBcmd: Framework for the database commands.
rdfparse
rdfquery

Home | Contact Us | Privacy Policy | Terms of Service