|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.tools.ore.OntologyModifier
public class OntologyModifier
This class provides several methods to modify the ontology by using OWL-API.
| Constructor Summary | |
|---|---|
OntologyModifier(ReasonerComponent reasoner,
ReasonerComponent rs)
|
|
| Method Summary | |
|---|---|
org.semanticweb.owl.model.OWLOntologyChange |
addAxiomToOWL(Description newDesc,
Description oldDesc)
Adds an EquivalentClassesAxiom axiom to the ontology. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
addClassAssertion(Individual ind,
Description desc)
Adds a classAssertion. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
addObjectProperty(Individual subInd,
ObjectQuantorRestriction objSome,
Individual objInd)
Adds an object property assertion to the ontology. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
deleteIndividual(Individual ind)
Deletes the complete individual from the ontology. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
deleteObjectProperty(Individual ind,
ObjectQuantorRestriction objSome)
Removes all object property assertions with role, and it's inverse. |
Set<ObjectPropertyAssertion> |
getObjectProperties(Individual ind)
Returns object properties for an individual. |
org.semanticweb.owl.model.OWLOntology |
getOntology()
Returns the actual ontology. |
boolean |
isComplement(Description desc1,
Description desc2)
checks whether desc1 and desc2 are disjoint. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
moveIndividual(Individual ind,
Description oldClass,
Description newClass)
Removes classAssertion between individual to a old class, and creates a new classAssertion. |
void |
reason()
Prints reasons for inconsistent classes. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
removeClassAssertion(Individual ind,
Description desc)
Removes a classAssertion. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
removeObjectPropertyAssertion(Individual subject,
ObjectQuantorRestriction objSome,
Individual object)
Removes an object property assertion from the ontology if the axiom is existing in the ontology. |
List<org.semanticweb.owl.model.OWLOntologyChange> |
rewriteClassDescription(Description newDesc,
Description oldClass)
Rewrite ontology by replacing old class with new learned class description. |
void |
saveOntology()
Saves the ontology as RDF-file. |
void |
undoChanges(Collection<org.semanticweb.owl.model.OWLOntologyChange> changes)
undo changes of type OWLOntologyChange. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OntologyModifier(ReasonerComponent reasoner,
ReasonerComponent rs)
| Method Detail |
|---|
public org.semanticweb.owl.model.OWLOntologyChange addAxiomToOWL(Description newDesc,
Description oldDesc)
newDesc - new axiom to addoldDesc - old description
public List<org.semanticweb.owl.model.OWLOntologyChange> rewriteClassDescription(Description newDesc,
Description oldClass)
newDesc - oldClass - public void saveOntology()
public List<org.semanticweb.owl.model.OWLOntologyChange> deleteIndividual(Individual ind)
ind - the individual to delete
public List<org.semanticweb.owl.model.OWLOntologyChange> removeClassAssertion(Individual ind,
Description desc)
ind - the individual which has to removed from classdesc - the class to which the individual is asserted
public List<org.semanticweb.owl.model.OWLOntologyChange> addClassAssertion(Individual ind,
Description desc)
ind - the individual which has to be asserted to classdesc - the class to which the individual has to be asserted
public List<org.semanticweb.owl.model.OWLOntologyChange> moveIndividual(Individual ind,
Description oldClass,
Description newClass)
ind - individual which has to be movedoldClass - class where individual is asserted beforenewClass - class where individual is moved to
public List<org.semanticweb.owl.model.OWLOntologyChange> deleteObjectProperty(Individual ind,
ObjectQuantorRestriction objSome)
ind - the individual which property has to be removedobjSome - the property which has to be removed
public List<org.semanticweb.owl.model.OWLOntologyChange> removeObjectPropertyAssertion(Individual subject,
ObjectQuantorRestriction objSome,
Individual object)
subject - objSome - object -
public List<org.semanticweb.owl.model.OWLOntologyChange> addObjectProperty(Individual subInd,
ObjectQuantorRestriction objSome,
Individual objInd)
subInd - the individual which is subject in the objectPropertyobjSome - the property which has to be added to subjectobjInd - the individual which is object in the objectProperty
public void undoChanges(Collection<org.semanticweb.owl.model.OWLOntologyChange> changes)
OWLOntologyChange.
changes -
public boolean isComplement(Description desc1,
Description desc2)
desc1 - class 1desc2 - class 2public Set<ObjectPropertyAssertion> getObjectProperties(Individual ind)
ind - public org.semanticweb.owl.model.OWLOntology getOntology()
public void reason()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||