protected void addAnnotation(String id, String uriID, OWLLiteral value) { IRI subject = getIRIFromOBOId(id); OWLAnnotationProperty annotationProperty = getDataFactory() .getOWLAnnotationProperty(getIRIFromOBOId(uriID)); OWLAxiom ax = getDataFactory() .getOWLAnnotationAssertionAxiom(annotationProperty, subject, value); applyChange(new AddAxiom(getOntology(), ax)); } }
protected OWLClassExpression getOWLClassOrRestriction(String termList) { String[] strings = termList.split(" "); if (strings.length == 1) { return getDataFactory().getOWLClass(getIRIFromOBOId(strings[0])); } String id0 = strings[0]; String id1 = strings[1]; IRI propertyIRI = getConsumer().getRelationIRIFromSymbolicIdOrOBOId(id0); OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(propertyIRI); OWLClass filler = getDataFactory().getOWLClass(getIRIFromOBOId(id1)); return getDataFactory().getOWLObjectSomeValuesFrom(prop, filler); }
protected OWLClass getOWLClass(String id) { return getDataFactory().getOWLClass(getIRIFromOBOId(id)); }
/** * Gets an {@link OWLAnnotation} for a tag value pair. * * @param tagName The tag name. * @param value The tag value. Note that the tag value is un-escaped and stripped of double * quotes if they exist. * @return An {@link OWLAnnotation} that is formed by converting the tagName to an IRI and then * to an {@link OWLAnnotationProperty} and the value to an {@link OWLLiteral}. */ public OWLAnnotation getAnnotationForTagValuePair(String tagName, String value) { IRI tagIRI = getTagIRI(tagName); OWLDataFactory df = getDataFactory(); OWLAnnotationProperty annotationProperty = df.getOWLAnnotationProperty(tagIRI); String unescapedString = getUnquotedString(value); OWLLiteral annotationValue = df.getOWLLiteral(unescapedString); return df.getOWLAnnotation(annotationProperty, annotationValue); }
protected OWLLiteral getBooleanConstant(boolean b) { return getDataFactory().getOWLLiteral(b); }
protected OWLClass getOWLClass(String id) { return getDataFactory().getOWLClass(getIRIFromOBOId(id)); }
/** * Gets an {@link OWLAnnotation} for a tag value pair. * * @param tagName The tag name. * @param value The tag value. Note that the tag value is un-escaped and stripped of double * quotes if they exist. * @return An {@link OWLAnnotation} that is formed by converting the tagName to an IRI and then * to an {@link OWLAnnotationProperty} and the value to an {@link OWLLiteral}. */ public OWLAnnotation getAnnotationForTagValuePair(String tagName, String value) { IRI tagIRI = getTagIRI(tagName); OWLDataFactory df = getDataFactory(); OWLAnnotationProperty annotationProperty = df.getOWLAnnotationProperty(tagIRI); String unescapedString = getUnquotedString(value); OWLLiteral annotationValue = df.getOWLLiteral(unescapedString); return df.getOWLAnnotation(annotationProperty, annotationValue); }
protected OWLLiteral getBooleanConstant(boolean b) { return getDataFactory().getOWLLiteral(b); }
protected void addAnnotation(String id, String uriID, OWLLiteral value) { IRI subject = getIRIFromOBOId(id); OWLAnnotationProperty annotationProperty = getDataFactory() .getOWLAnnotationProperty(getIRIFromOBOId(uriID)); OWLAxiom ax = getDataFactory() .getOWLAnnotationAssertionAxiom(annotationProperty, subject, value); applyChange(new AddAxiom(getOntology(), ax)); } }
protected OWLObjectProperty getOWLObjectProperty(String id) { return getDataFactory().getOWLObjectProperty(getIRIFromOBOId(id)); }
protected OWLClassExpression getOWLClassOrRestriction(String termList) { String[] strings = termList.split(" "); if (strings.length == 1) { return getDataFactory().getOWLClass(getIRIFromOBOId(strings[0])); } String id0 = strings[0]; String id1 = strings[1]; IRI propertyIRI = getConsumer().getRelationIRIFromSymbolicIdOrOBOId(id0); OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(propertyIRI); OWLClass filler = getDataFactory().getOWLClass(getIRIFromOBOId(id1)); return getDataFactory().getOWLObjectSomeValuesFrom(prop, filler); }
/** * Gets an {@link OWLAnnotation} for a tag value pair. * * @param tagName The tag name. * @param value The tag value. Note that the tag value is un-escaped and stripped of double * quotes if they exist. * @return An {@link OWLAnnotation} that is formed by converting the tagName to an IRI and then * to an {@link OWLAnnotationProperty} and the value to an {@link OWLLiteral}. */ public OWLAnnotation getAnnotationForTagValuePair(String tagName, String value) { IRI tagIRI = getTagIRI(tagName); OWLDataFactory df = getDataFactory(); OWLAnnotationProperty annotationProperty = df.getOWLAnnotationProperty(tagIRI); String unescapedString = getUnquotedString(value); OWLLiteral annotationValue = df.getOWLLiteral(unescapedString); return df.getOWLAnnotation(annotationProperty, annotationValue); }
protected OWLLiteral getBooleanConstant(boolean b) { return getDataFactory().getOWLLiteral(b); }
protected void addAnnotation(String id, String uriID, OWLLiteral value) { IRI subject = getIRIFromOBOId(id); OWLAnnotationProperty annotationProperty = getDataFactory() .getOWLAnnotationProperty(getIRIFromOBOId(uriID)); OWLAxiom ax = getDataFactory() .getOWLAnnotationAssertionAxiom(annotationProperty, subject, value); applyChange(new AddAxiom(getOntology(), ax)); } }
protected OWLClass getOWLClass(String id) { return getDataFactory().getOWLClass(getIRIFromOBOId(id)); }
protected OWLClassExpression getOWLClassOrRestriction(String termList) { String[] strings = termList.split(" "); if (strings.length == 1) { return getDataFactory().getOWLClass(getIRIFromOBOId(strings[0])); } String id0 = strings[0]; String id1 = strings[1]; IRI propertyIRI = getConsumer().getRelationIRIFromSymbolicIdOrOBOId(id0); OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(propertyIRI); OWLClass filler = getDataFactory().getOWLClass(getIRIFromOBOId(id1)); return getDataFactory().getOWLObjectSomeValuesFrom(prop, filler); }
protected OWLObjectProperty getOWLObjectProperty(String id) { return getDataFactory().getOWLObjectProperty(getIRIFromOBOId(id)); }
public OWLClass getClassFromId(String s) { return getDataFactory().getOWLClass(getIRIFromOBOId(s)); }
public OWLClass getClassFromId(String s) { return getDataFactory().getOWLClass(getIRIFromOBOId(s)); }
public OWLClass getClassFromId(String s) { return getDataFactory().getOWLClass(getIRIFromOBOId(s)); }