Java2OWL
Class J2OCompiler

Object
  extended by J2OCompiler

public class J2OCompiler
extends Object

This class is for translating Java-classes into OWL-classes. The main-method allows for calling it with the necessary parameters. There are a number of other methods which can be called to translate Java-classes.


Method Summary
 void class2OWL(Class... classes)
          This method just calls the class2OWL-method for each class
 void class2OWL(Collection<Class> classes)
          This method just calls the class2OWL-method for each class
 boolean finishTranslation()
          performs the final steps of the translation
 boolean finishTranslation(IRI extensionOntologyIRI)
          performs the final steps of the translation
 String getName()
          returns the name of the ontology manager.
static void main(String[] args)
          This method reads all necessary arguments and performs all the translations.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
returns the name of the ontology manager.


class2OWL

public void class2OWL(Collection<Class> classes)
This method just calls the class2OWL-method for each class


class2OWL

public void class2OWL(Class... classes)
This method just calls the class2OWL-method for each class


finishTranslation

public boolean finishTranslation(IRI extensionOntologyIRI)
performs the final steps of the translation

Parameters:
extensionOntologyFile - the name of the file where the extension ontology is to be saved.
Returns:
true if the operation succeeded.

The following steps are preformed.

  1. The annotated methods are translated into OWL-properties
    The next steps are only performed if insertIntoOntology = true.
  2. The changes to the ontology are made effective
  3. Inconsistent classes are extracted
  4. If extensionOntologyFile != "" then the extension ontology is saved.

finishTranslation

public boolean finishTranslation()
performs the final steps of the translation

Parameters:
extensionOntologyFile - the name of the file where the extension ontology is to be saved.
Returns:
true if the operation succeeded.

The following steps are preformed.

  1. The annotated methods are translated into OWL-properties
    The next steps are only performed if insertIntoOntology = true.
  2. The changes to the ontology are made effective
  3. Inconsistent classes are extracted.

main

public static void main(String[] args)
This method reads all necessary arguments and performs all the translations.