public IRI getIRIFromValue(String s) { return consumer.getIRI(s); }
IRI subject = getIRI(currentId); OWLLiteral con = getDataFactory().getOWLLiteral(unescapeTagValue(value)); IRI annotationPropertyIRI = getIRIFromTagName(tag);
/** * Gets an IRI from an OBO ID. The OBO ID may be a canonical OBO ID of the form idspace:sequence or it may be * a non-canonical ID. * @param oboId The OBO ID * @return An IRI obtained from the translation of the OBO ID. */ public IRI getIRIFromOBOId(String oboId) { if (oboId == null) { throw new NullPointerException("oboId must not be null."); } return getIRI(oboId); }
IRI subject = getIRI(currentId); OWLLiteral con = getDataFactory().getOWLLiteral(unescapeTagValue(value)); IRI annotationPropertyIRI = getIRIFromTagName(tag);
/** * Gets an IRI from an OBO ID. The OBO ID may be a canonical OBO ID of the form idspace:sequence or it may be * a non-canonical ID. * @param oboId The OBO ID * @return An IRI obtained from the translation of the OBO ID. */ public IRI getIRIFromOBOId(String oboId) { if (oboId == null) { throw new NullPointerException("oboId must not be null."); } return getIRI(oboId); // // if (oboId.contains(":")) { // return getIRI(oboId); // } // else { // StringBuilder sb = new StringBuilder(); // sb.append(defaultNamespaceTagValue); // sb.append(":"); // sb.append(oboId); // return getIRI(sb.toString()); // } }
public OWLClass getCurrentClass() { return getDataFactory().getOWLClass(getIRI(currentId)); }
public OWLClass getCurrentClass() { return getDataFactory().getOWLClass(getIRI(currentId)); }
public OWLClass getCurrentClass() { return getDataFactory().getOWLClass(getIRI(currentId)); }
public OWLEntity getCurrentEntity() { if (isTerm()) { return getCurrentClass(); } else if (isTypedef()) { // Sometimes, we can have symbolic names e.g. has_part. It's not really clear how to tell the difference IRI propertyIRI = getRelationIRIFromSymbolicIdOrOBOId(currentId); return getDataFactory().getOWLObjectProperty(propertyIRI); } else { return getDataFactory().getOWLNamedIndividual(getIRI(currentId)); } }
public OWLEntity getCurrentEntity() { if (isTerm()) { return getCurrentClass(); } else if (isTypedef()) { // Sometimes, we can have symbolic names e.g. has_part. It's not really clear how to tell the difference IRI propertyIRI = getRelationIRIFromSymbolicIdOrOBOId(currentId); return getDataFactory().getOWLObjectProperty(propertyIRI); } else { return getDataFactory().getOWLNamedIndividual(getIRI(currentId)); } }
OWLAnnotationProperty property = getDataFactory().getOWLAnnotationProperty(getIRI(tag)); OWLAnnotation anno = getDataFactory().getOWLAnnotation(property, con); owlOntologyManager.applyChange(new AddOntologyAnnotation(ontology, anno)); IRI subject = getIRI(currentId); OWLLiteral con = getDataFactory().getOWLStringLiteral(value); OWLAnnotationProperty property = getDataFactory().getOWLAnnotationProperty(getIRI(tag)); OWLAnnotation anno = getDataFactory().getOWLAnnotation(property, con); OWLAnnotationAssertionAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(subject, anno);