de.unima.alcomox.ontology
Class MergedOntology

java.lang.Object
  extended by de.unima.alcomox.ontology.AlcomoOntology
      extended by de.unima.alcomox.ontology.MergedOntology

public class MergedOntology
extends AlcomoOntology

This class represents an e(X)tendable ontology.


Field Summary
 
Fields inherited from class de.unima.alcomox.ontology.AlcomoOntology
entities, extractionProblem, factory, indexedConceptEntityUris, indexedPropertyEntityUris, log, manager, NOTHING, ontology, reasoner, THING
 
Constructor Summary
MergedOntology(org.semanticweb.owlapi.model.OWLOntology owlOntology, org.semanticweb.owlapi.model.OWLOntologyManager owlManager)
           
 
Method Summary
 void addAxioms(java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> mappingAxioms)
           
 void createUriClassReferences()
           
 void removeAxioms(java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> mappingAxioms)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> toAxioms(Mapping mapping)
           
 void write(java.lang.String filepath)
          Writes the ontology into a file.
 void writeMergedOntology(java.lang.String filepath, Mapping mapping)
          Dont you ever use this, very bad hack for generating merged ontology without helper classes.
 
Methods inherited from class de.unima.alcomox.ontology.AlcomoOntology
freeReasoner, getAxioms, getClasses, getExtractionProblem, getRealDirectSuperClassesOfClass, getSubClassesOfClass, getUnsatisfiableClasses, initReasoner, initReasonerWithoutClassification, isDisjointClassWithClass, isSubClassOfClass, isUnsatisfiable, setExtractionProblem, setFactory, toShortString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MergedOntology

public MergedOntology(org.semanticweb.owlapi.model.OWLOntology owlOntology,
                      org.semanticweb.owlapi.model.OWLOntologyManager owlManager)
               throws AlcomoException
Throws:
AlcomoException
Method Detail

createUriClassReferences

public void createUriClassReferences()

addAxioms

public void addAxioms(java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> mappingAxioms)
               throws OntologyException
Throws:
OntologyException

removeAxioms

public void removeAxioms(java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> mappingAxioms)
                  throws OntologyException
Throws:
OntologyException

toAxioms

public java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> toAxioms(Mapping mapping)
                                                              throws OntologyException
Throws:
OntologyException

write

public void write(java.lang.String filepath)
           throws AlcomoException
Description copied from class: AlcomoOntology
Writes the ontology into a file.

Overrides:
write in class AlcomoOntology
Parameters:
filepath - Destination path
Throws:
OntologyException - Thrwon if file could not be written.
AlcomoException

writeMergedOntology

public void writeMergedOntology(java.lang.String filepath,
                                Mapping mapping)
                         throws java.net.URISyntaxException
Dont you ever use this, very bad hack for generating merged ontology without helper classes.

Parameters:
mo -
filepath -
mapping -
Throws:
java.net.URISyntaxException