| java.lang.Object org.ontoware.rdfreactor.generator.CodeGenerator
CodeGenerator | public class CodeGenerator (Code) | | CodeGenerator is more of a 'model generator'
The main() and generate() methods should be used from external users to start
the generation of a Java class model representing a given RDFS/OWL schema
file.
author: voelkel |
Method Summary | |
public static void | generate(String schemafilename, String outdir, String packagename, Reasoning semantics, boolean skipbuiltins, boolean alwaysWriteToModel) | public static void | generate(String schemafilename, String outdir, String packagename, Reasoning semantics, boolean skipbuiltins) | public static void | generate(String schemafilename, String outdir, String packagename, Reasoning semantics, boolean skipbuiltins, boolean alwaysWriteToModel, String methodnamePrefix) Generate a Java class model from the given RDFS/OWL schema file
Parameters: schemafilename - a path to an rdf or owl file in N3, NT or XML syntax. | public static void | generate(String schemafilename, String outdir, String packagename, Reasoning semantics, boolean skipbuiltins, String methodnamePrefix) Generate a Java class model from the given RDFS/OWL schema file
Parameters: schemafilename - a path to an rdf or owl file in N3, NT or XML syntax. | public static void | generate(String schemafilename, String outdir, String packagename, String semantics, boolean skipbuiltins, boolean alwaysWriteToModel, String methodnamePrefix) | public static void | generate(Model modelWithSchemaData, File outDir, String packagename, Reasoning semantics, boolean skipbuiltins, boolean alwaysWriteToModel, String methodnamePrefix) | public static void | generate(Model modelWithSchemaData, File outDir, String packagename, Reasoning semantics, boolean skipbuiltins, String methodnamePrefix) | public static Model | loadSchemaDataModel(String schemafilename) | public static void | main(String[] args) |
GENERATOR_VERSION | final public static String GENERATOR_VERSION(Code) | | |
SEMANTICS_RDFS | final public static String SEMANTICS_RDFS(Code) | | |
SEMANTICS_RDFS_AND_OWL | final public static String SEMANTICS_RDFS_AND_OWL(Code) | | |
generate | public static void generate(String schemafilename, String outdir, String packagename, Reasoning semantics, boolean skipbuiltins, boolean alwaysWriteToModel, String methodnamePrefix) throws Exception(Code) | | Generate a Java class model from the given RDFS/OWL schema file
Parameters: schemafilename - a path to an rdf or owl file in N3, NT or XML syntax. Fileextension determines parsing. outdir-e.g './src' or './gen-src' Parameters: packagename - -e.g. 'org.ontoware.myname.reactor' Parameters: semantics - -'rdfs', 'owl' or 'rdfs+owl' (experimental) Parameters: skipbuiltins - if false, internal helper classes are re-generated. This isusually not needed. Parameters: alwaysWriteToModel - if false, public contructors allow for the choice throws: Exception - CodeGenerator.generate(String,String,String,Reasoning,boolean,String) |
generate | public static void generate(String schemafilename, String outdir, String packagename, Reasoning semantics, boolean skipbuiltins, String methodnamePrefix) throws Exception(Code) | | Generate a Java class model from the given RDFS/OWL schema file
Parameters: schemafilename - a path to an rdf or owl file in N3, NT or XML syntax. Fileextension determines parsing. Parameters: packagename - -e.g. 'org.ontoware.myname.reactor' Parameters: semantics - -'rdfs', 'owl' or 'rdfs+owl' (experimental) Parameters: skipbuiltins - if false, internal helper classes are re-generated. This isusually not needed. outdir-e.g './src' or './gen-src' throws: Exception - |
generate | public static void generate(Model modelWithSchemaData, File outDir, String packagename, Reasoning semantics, boolean skipbuiltins, boolean alwaysWriteToModel, String methodnamePrefix) throws Exception(Code) | | Parameters: modelWithSchemaData - a Model in which the ontology to generate Java classes form isloaded Parameters: outDir - Parameters: packagename - Parameters: semantics - Parameters: skipbuiltins - Parameters: alwaysWriteToModel - Parameters: methodnamePrefix - throws: Exception - CodeGenerator.generate(Model,File,String,Reasoning,boolean,String) |
generate | public static void generate(Model modelWithSchemaData, File outDir, String packagename, Reasoning semantics, boolean skipbuiltins, String methodnamePrefix) throws Exception(Code) | | Parameters: modelWithSchemaData - a Model in which the ontology to generate Java classes form isloaded Parameters: outDir - Parameters: packagename - Parameters: semantics - Parameters: skipbuiltins - Parameters: methodnamePrefix - throws: Exception - |
loadSchemaDataModel | public static Model loadSchemaDataModel(String schemafilename) throws Exception(Code) | | load & deanonymize a schema file into a Jena RDF model
Parameters: schemafilename - Jena RDF Model loaded from given filename throws: Exception - |
main | public static void main(String[] args) throws Exception(Code) | | Generate a Java class model from the given RDFS/OWL schema file
Parameters: args - schemafilename, outdir, packagename, (RDFS|OWL) throws: Exception - |
|
|