@Override public void handle(String currentId, String value, String qualifierBlock, String comment) { int index = value.indexOf(' '); String propLocalName = value.substring(0, index); String val = value.substring(index + 1, value.length()); OWLDataFactory df = getDataFactory(); OWLObjectProperty prop = df.getOWLObjectProperty(getIRIFromOBOId(propLocalName)); OWLClass filler = getClassFromId(val); OWLClassExpression desc = df.getOWLObjectSomeValuesFrom(prop, filler); OWLAxiom ax = df.getOWLSubClassOfAxiom(getCurrentClass(), desc); applyChange(new AddAxiom(getOntology(), ax)); } }
public void handle(String currentId, String value, String qualifierBlock, String comment) { int index = value.indexOf(' '); String propLocalName = value.substring(0, index); String val = value.substring(index + 1, value.length()); OWLDataFactory df = getDataFactory(); OWLObjectProperty prop = df.getOWLObjectProperty(getIRIFromOBOId(propLocalName)); OWLClass filler = getClassFromId(val); OWLClassExpression desc = df.getOWLObjectSomeValuesFrom(prop, filler); OWLAxiom ax = df.getOWLSubClassOfAxiom(getCurrentClass(), desc); applyChange(new AddAxiom(getOntology(), ax)); } }
public void handle(String id, String value) { int index = value.indexOf(' '); String propLocalName = value.substring(0, index); String val = value.substring(index + 1, value.length()); OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(getIRIFromValue(propLocalName)); OWLClassExpression desc = getDataFactory().getOWLObjectSomeValuesFrom(prop, getClassFromId(val)); OWLAxiom ax = getDataFactory().getOWLSubClassOfAxiom( getCurrentClass(), desc ); applyChange(new AddAxiom(getOntology(), ax)); } }