@Override public void handle(String currentId, String value, String qualifierBlock, String comment) { // This is an annotation - but add as a label OWLEntity ent; if (getConsumer().isTerm()) { ent = getDataFactory().getOWLClass(getIRIFromOBOId(currentId)); } else if (getConsumer().isTypedef()) { ent = getDataFactory().getOWLObjectProperty(getIRIFromOBOId(currentId)); } else { ent = getDataFactory().getOWLNamedIndividual(getIRIFromOBOId(currentId)); } OWLAxiom ax = getDataFactory() .getOWLAnnotationAssertionAxiom(ent.getIRI(), getDataFactory().getRDFSLabel( value)); applyChange(new AddAxiom(getOntology(), ax)); } }
@Override public void handle(String currentId, String value, String qualifierBlock, String comment) { // This is an annotation - but add as a label OWLEntity ent; if (getConsumer().isTerm()) { ent = getDataFactory().getOWLClass(getIRIFromOBOId(currentId)); } else if (getConsumer().isTypedef()) { ent = getDataFactory().getOWLObjectProperty(getIRIFromOBOId(currentId)); } else { ent = getDataFactory().getOWLNamedIndividual(getIRIFromOBOId(currentId)); } OWLAxiom ax = getDataFactory() .getOWLAnnotationAssertionAxiom(ent.getIRI(), getDataFactory().getRDFSLabel( value)); applyChange(new AddAxiom(getOntology(), ax)); } }
@Override public void handle(String currentId, String value, String qualifierBlock, String comment) { // This is an annotation - but add as a label OWLEntity ent; if (getConsumer().isTerm()) { ent = getDataFactory().getOWLClass(getIRIFromOBOId(currentId)); } else if (getConsumer().isTypedef()) { ent = getDataFactory().getOWLObjectProperty(getIRIFromOBOId(currentId)); } else { ent = getDataFactory().getOWLNamedIndividual(getIRIFromOBOId(currentId)); } OWLAxiom ax = getDataFactory() .getOWLAnnotationAssertionAxiom(ent.getIRI(), getDataFactory().getRDFSLabel( value)); applyChange(new AddAxiom(getOntology(), ax)); } }