Class JavaTransformer

java.lang.Object
cz.cvut.kbss.jopa.owl2java.JavaTransformer

public class JavaTransformer extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    cz.cvut.kbss.jopa.owl2java.ObjectModel
    generateModel(org.semanticweb.owlapi.model.OWLOntology ontology, cz.cvut.kbss.jopa.owl2java.ContextDefinition context)
    Generates an object model consisting of JOPA entity classes and a vocabulary file from the specified ontology and context definition.
    cz.cvut.kbss.jopa.owl2java.ObjectModel
    generateVocabulary(org.semanticweb.owlapi.model.OWLOntology ontology, cz.cvut.kbss.jopa.owl2java.ContextDefinition context)
    Generates only vocabulary of the loaded ontology.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • generateModel

      public cz.cvut.kbss.jopa.owl2java.ObjectModel generateModel(org.semanticweb.owlapi.model.OWLOntology ontology, cz.cvut.kbss.jopa.owl2java.ContextDefinition context)
      Generates an object model consisting of JOPA entity classes and a vocabulary file from the specified ontology and context definition.
      Parameters:
      ontology - Ontology from which the model is generated
      context - Context information
      Returns:
      The generated object model
    • generateVocabulary

      public cz.cvut.kbss.jopa.owl2java.ObjectModel generateVocabulary(org.semanticweb.owlapi.model.OWLOntology ontology, cz.cvut.kbss.jopa.owl2java.ContextDefinition context)
      Generates only vocabulary of the loaded ontology.
      Parameters:
      ontology - Ontology from which the vocabulary should be generated
      context - Integrity constraints context, if null is supplied, the whole ontology is interpreted as integrity constraints.
      Returns:
      The generated object model