|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| SourceCodeHandler | Used by CodeGenerator to save the generated source code. |
| Class Summary | |
|---|---|
| CodeGenerator | Converts OWL ontologies into JavaBeans. |
| FileSourceCodeHandler | Saves the generated source code from CodeGenerator to disk. |
| JavaCompiler | |
| OntologyConverter | A Facade to CodeGenerator and OwlGenerator classes. |
| OwlGenerator | Reads BeanInfo objects and writes the class and properties into an OWL ontology. |
| OwlNormalizer | Applies a series of rules against the ontology, making it easier to convert into Java classes. |
Creates Elmo concepts and OWL ontologies. The generated source code is produced from the Groovy script: /templates/concept.groovy.
As can be seen from the script it loops through the properties and check for potential annotations printing the Java source code into buffers. The script is run once for each concept.
Prior to running the script, however, it normalizes the ontology. This includes things like replacing all rdfs:Class with owl:Class, adding missing rdf:type or datatypes, and renaming anonymous or foreign classes.
The primary interface is intendent to be run from the command line.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||