private Set<? extends OWLAnnotation> trAnnotations(Collection<Clause> clauses) { if (clauses != null) { Set<OWLAnnotation> anns = new HashSet<OWLAnnotation>(); for(Clause clause : clauses) { trAnnotations(clause, anns); } return anns; } return null; }
private Set<OWLAnnotation> trAnnotations(Clause clause) { Set<OWLAnnotation> anns = new HashSet<OWLAnnotation>(); trAnnotations(clause, anns); return anns; }
private OWLAxiom trUnionOf(OWLClass cls, Collection<Clause> clauses) { Set<? extends OWLAnnotation> annotations = trAnnotations(clauses);
private OWLAxiom trIntersectionOf(OWLClass cls, Collection<Clause> clauses) { Set<? extends OWLAnnotation> annotations = trAnnotations(clauses); Set<OWLClassExpression> eSet; eSet = new HashSet<OWLClassExpression>(); eSet.add(cls); Set<OWLClassExpression> iSet; iSet = new HashSet<OWLClassExpression>(); for (Clause clause: clauses) { Collection<QualifierValue> qvs = clause.getQualifierValues(); if (clause.getValues().size() == 1) { iSet.add(trClass(clause.getValue())); } else { iSet.add(trRel((String)clause.getValue(), (String)clause.getValue2(), qvs)); } } //out.println(cls+" CL:"+clauses+" I:"+iSet+" E:"+eSet); eSet.add(fac.getOWLObjectIntersectionOf(iSet)); // TODO - fix this if (annotations == null || annotations.size() == 0) { return fac.getOWLEquivalentClassesAxiom(eSet); } else { return fac.getOWLEquivalentClassesAxiom(eSet, annotations); } }
private void addPropertyValueHeaders(Collection<Clause> clauses) { for (Clause clause : clauses) { final Set<OWLAnnotation> annotations = trAnnotations(clause); Collection<Object> values = clause.getValues(); Object v = clause.getValue();
private OWLAxiom trTypedefClause(OWLObjectProperty p, String tag, Clause clause) { OWLAxiom ax = null; Object v = clause.getValue(); Set<OWLAnnotation> annotations = trAnnotations(clause); OboFormatTag _tag = OBOFormatConstants.getTag(tag); if (_tag == OboFormatTag.TAG_IS_A) {
OWLAxiom ax; Collection<QualifierValue> qvs = clause.getQualifierValues(); Set<? extends OWLAnnotation> annotations = trAnnotations(clause); OboFormatTag _tag = OBOFormatConstants.getTag(tag);
protected OWLAxiom trGenericClause(OWLAnnotationSubject sub, String tag, Clause clause) { Set<OWLAnnotation> annotations = trAnnotations(clause);
Set<OWLAnnotation> annotations = trAnnotations(clause); add(fac.getOWLSubAnnotationPropertyOfAxiom(childAnnotProp, parentAnnotProp, annotations)); IRI childIRI = childAnnotProp.getIRI(); Set<OWLAnnotation> annotations = trAnnotations(clause); add(fac.getOWLSubAnnotationPropertyOfAxiom(childAnnotProp, parentAnnotProp, annotations)); addOntologyAnnotation(trTagToAnnotationProp(t), trLiteral(dateString), trAnnotations(clause)); addOntologyAnnotation(fac.getRDFSComment(), trLiteral(clause.getValue()), trAnnotations(clause)); addOntologyAnnotation(trTagToAnnotationProp(t), trLiteral(clause.getValue()), trAnnotations(clause));