private OWLAnnotationProperty trTagToAnnotationProp(String tag) { IRI iri = trTagToIRI(tag); OWLAnnotationProperty ap = fac.getOWLAnnotationProperty(iri); if (!apToDeclare.contains(ap)) { apToDeclare.add(ap); add(fac.getOWLDeclarationAxiom(ap)); Obo2OWLVocabulary vocab = Obo2OWLConstants.getVocabularyObj(tag); if(vocab != null){ add (fac.getOWLAnnotationAssertionAxiom(fac.getRDFSLabel(), iri, trLiteral( vocab.getLabel()) ) ); } } return ap; }
add(fac.getOWLSubAnnotationPropertyOfAxiom(childAnnotProp, parentAnnotProp, annotations)); add(fac.getOWLAnnotationAssertionAxiom(ap, childAnnotProp.getIRI(), trLiteral(clause.getValue2()))); add(fac.getOWLSubAnnotationPropertyOfAxiom(childAnnotProp, parentAnnotProp, annotations)); add(fac.getOWLAnnotationAssertionAxiom(ap, childIRI, trLiteral( values[1] ))); add (fac.getOWLAnnotationAssertionAxiom(ap, childIRI, trTagToAnnotationProp( values[2].toString() ).getIRI() ));
public OWLClassExpression trTermFrame(Frame termFrame) { OWLClass cls = trClass(termFrame.getId()); add(fac.getOWLDeclarationAxiom(cls)); for (String t : termFrame.getTags()) { //System.out.println("tag:"+tag); Collection<Clause> clauses = termFrame.getClauses(t); OboFormatTag tag = OBOFormatConstants.getTag(t); if (tag == OboFormatTag.TAG_INTERSECTION_OF) { add(trIntersectionOf(cls,clauses)); } else if (tag == OboFormatTag.TAG_UNION_OF) { add(trUnionOf(cls,clauses)); } else { for (Clause clause : clauses) { add(trTermClause(cls,t,clause)); } } } return cls; }
final String id = typedefFrame.getId(); OWLObjectProperty p = trObjectProp(id); add(fac.getOWLDeclarationAxiom(p)); new HashSet<OWLAnnotation>()); add(ax); final OWLAxiom axiom = trRelationIntersectionOf(id, p,clauses); if (axiom != null) { add(axiom); final OWLAxiom axiom = trRelationUnionOf(id, p,clauses); if (axiom != null) { add(axiom); add(trTypedefClause(p,tag,clause));
add(fac.getOWLDeclarationAxiom((OWLClass)ce));