|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.elmo.codegen.OntologyConverter
public class OntologyConverter
A Facade to CodeGenerator and OwlGenerator classes. This class provides a simpler interface to create concept packages and build ontologies. Unlike the composed classes, this class reads and creates jar packages.
| Constructor Summary | |
|---|---|
OntologyConverter()
|
|
| Method Summary | |
|---|---|
void |
addJar(URL url)
Add a jar of classes to include in the class-path. |
void |
addOntology(URI ontology,
String pkgName)
Binds this ontology with the package name. |
void |
addRdfSource(URL url)
Adds an RDF file to the local repository. |
void |
createClasses(File jarOutputFile)
Generate Elmo concept Java classes from the ontology in the local repository. |
void |
createOntology(File rdfOutputFile)
Generate an OWL ontology from the JavaBeans in the included jars. |
protected Repository |
createRepository()
|
String[] |
getBaseClasses()
Array of Java Class names that all concepts will extend. |
String |
getPropertyNamesPrefix()
The property names prefix or null for default prefix. |
void |
init()
Create the local repository and load the RDF files. |
boolean |
isImportJarOntologies()
If the ontologies bundled with the included jars should be imported. |
static void |
main(String[] args)
|
void |
setBaseClasses(String[] strings)
Array of Java Class names that all concepts will extend. |
void |
setImportJarOntologies(boolean importJarOntologies)
If the ontologies bundled with the included jars should be imported. |
void |
setNamespace(String prefix,
String namespace)
Set the prefix that should be used for this ontology namespace. |
void |
setPropertyNamesPrefix(String propertyNamesPrefix)
The property names prefix or null for default prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OntologyConverter()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exceptionpublic boolean isImportJarOntologies()
true if the ontology will be imported.public void setImportJarOntologies(boolean importJarOntologies)
importJarOntologies - true if the ontology will be imported.public String getPropertyNamesPrefix()
public void setPropertyNamesPrefix(String propertyNamesPrefix)
public String[] getBaseClasses()
public void setBaseClasses(String[] strings)
strings - public void addJar(URL url)
url - public void addRdfSource(URL url)
url -
public void setNamespace(String prefix,
String namespace)
prefix - namespace -
public void addOntology(URI ontology,
String pkgName)
ontology - pkgName -
public void init()
throws Exception
Exception
public void createOntology(File rdfOutputFile)
throws Exception
rdfOutputFile -
Exception#addOntology(URI, String)},
#addJar(URL)}
public void createClasses(File jarOutputFile)
throws Exception
jarOutputFile -
Exception#addOntology(URI, String)},
#addRdfSource(URL)}
protected Repository createRepository()
throws RepositoryException
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||