| java.lang.Object jena.schemagen_orig
schemagen_orig | public class schemagen_orig extends java.lang.Object (Code) | |
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. RDF or RDFS
schemaURIRef is the URI ref for the schema being processed
input can be a file name or a URI
output must be a file name or '-' for standard out
lang is the language of the input and defaults to RDF/XML.
This program will make feeble attempt to convert names to legal java
names, i.e. convert '-' and '.' characters to '_' characters. The
user may have to correct the output if more exotic character sequences
are used, or this fixup leads to name clashes.
author: bwm version: $Name: $ $Revision: 1.9 $ $Date: 2008/01/02 12:08:16 $ |
Method Summary | |
protected static Set | listNames(String uriRef, Model schema, Resource type) | public static void | main(String args) | protected static String | makeJavaLegalId(String name) | protected static void | read(Model model, String in, String lang) | protected static void | renderDeclarations(Set names, String type, PrintStream out) | protected static void | renderInitializer(Set classNames, Set propertyNames, PrintStream out) | protected static void | renderPostamble(PrintStream out) | protected static void | renderPreamble(String name, String uriRef, PrintStream out) | protected static void | renderTypedInitializer(Set names, String type, PrintStream out) | protected static void | renderVocabularyClass(String name, String uriRef, Model schema, PrintStream out) | protected static void | usage() |
main | public static void main(String args)(Code) | | Parameters: args - the command line arguments |
usage | protected static void usage()(Code) | | |
|
|