public void handle(String id, String value) { if (getConsumer().isTerm()) { // We simply add a subclass axiom applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLSubClassOfAxiom( getClassFromId(id), getClassFromId(value)) )); } else if (getConsumer().isTypedef()) { // We simply add a sub property axiom applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLSubObjectPropertyOfAxiom( getOWLObjectProperty(id), getOWLObjectProperty(value)) )); } } }
public void handle(String currentId, String value, String qualifierBlock, String comment) { if (getConsumer().isTerm()) { // We simply add a subclass axiom applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLSubClassOfAxiom( getClassFromId(currentId), getClassFromId(value)) )); } else if (getConsumer().isTypedef()) { // We simply add a sub property axiom applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLSubObjectPropertyOfAxiom( getOWLObjectProperty(currentId), getOWLObjectProperty(value)) )); } } }
@Override public void handle(String currentId, String value, String qualifierBlock, String comment) { if (getConsumer().isTerm()) { // We simply add a subclass axiom applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLSubClassOfAxiom( getClassFromId(currentId), getClassFromId(value)) )); } else if (getConsumer().isTypedef()) { // We simply add a sub property axiom applyChange(new AddAxiom(getOntology(), getDataFactory().getOWLSubObjectPropertyOfAxiom( getOWLObjectProperty(currentId), getOWLObjectProperty(value)) )); } } }