protected OWLClass getOWLClass(String id) { return getDataFactory().getOWLClass(getIRIFromOBOId(id)); }
public OWLClass getClassFromId(String s) { return getDataFactory().getOWLClass(getIRIFromOBOId(s)); }
protected OWLObjectProperty getOWLObjectProperty(String id) { return getDataFactory().getOWLObjectProperty(getIRIFromOBOId(id)); }
protected OWLClass getOWLClass(String id) { return getDataFactory().getOWLClass(getIRIFromOBOId(id)); }
public OWLClass getClassFromId(String s) { return getDataFactory().getOWLClass(getIRIFromOBOId(s)); }
protected OWLObjectProperty getOWLObjectProperty(String id) { return getDataFactory().getOWLObjectProperty(getIRIFromOBOId(id)); }
protected OWLClassExpression getOWLClassOrRestriction(String termList) { StringTokenizer tok = new StringTokenizer(termList, " ", false); String id0 = null; String id1 = null; id0 = tok.nextToken(); if (tok.hasMoreTokens()) { id1 = tok.nextToken(); } if (id1 == null) { return getDataFactory().getOWLClass(getIRIFromOBOId(id0)); } else { IRI propertyIRI = getConsumer().getRelationIRIFromSymbolicIdOrOBOId(id0); OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(propertyIRI); OWLClass filler = getDataFactory().getOWLClass(getIRIFromOBOId(id1)); return getDataFactory().getOWLObjectSomeValuesFrom(prop, filler); } }
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)); } }
public OWLClass getCurrentClass() { return getDataFactory().getOWLClass(getIRIFromOBOId(consumer.getCurrentId())); }
public OWLClass getCurrentClass() { return getDataFactory().getOWLClass(getIRIFromOBOId(consumer.getCurrentId())); }
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) { StringTokenizer tok = new StringTokenizer(termList, " ", false); String id0 = null; String id1 = null; id0 = tok.nextToken(); if (tok.hasMoreTokens()) { id1 = tok.nextToken(); } if (id1 == null) { return getDataFactory().getOWLClass(getIRIFromOBOId(id0)); } else { IRI propertyIRI = getConsumer().getRelationIRIFromSymbolicIdOrOBOId(id0); OWLObjectProperty prop = getDataFactory().getOWLObjectProperty(propertyIRI); OWLClass filler = getDataFactory().getOWLClass(getIRIFromOBOId(id1)); return getDataFactory().getOWLObjectSomeValuesFrom(prop, filler); } }