private static Set<OWLAnnotationProperty> getProperties(OWLDataFactory factory, OboFormatTag... tags) { Set<OWLAnnotationProperty> set = new HashSet<>(); for (OboFormatTag tag : tags) { set.add(factory.getOWLAnnotationProperty(OWLAPIObo2Owl.trTagToIRI(tag.getTag()))); } return set; }
private static Set<OWLAnnotationProperty> getProperties(OWLDataFactory factory, OboFormatTag... tags) { Set<OWLAnnotationProperty> set = new HashSet<>(); for (OboFormatTag tag : tags) { set.add(factory.getOWLAnnotationProperty(OWLAPIObo2Owl.trTagToIRI(tag.getTag()))); } return set; }
private static Set<OWLAnnotationProperty> getProperties(OWLDataFactory factory, OboFormatTag... tags) { Set<OWLAnnotationProperty> set = new HashSet<>(); for (OboFormatTag tag : tags) { set.add(factory.getOWLAnnotationProperty(OWLAPIObo2Owl.trTagToIRI(tag.getTag()))); } return set; }
private static Set<OWLAnnotationProperty> getProperties(OWLDataFactory factory, OboFormatTag... tags) { Set<OWLAnnotationProperty> set = new HashSet<>(); for (OboFormatTag tag : tags) { set.add(factory.getOWLAnnotationProperty(OWLAPIObo2Owl.trTagToIRI(tag.getTag()))); } return set; }
/** * Tr tag to annotation prop. * * @param tag the tag * @return the oWL annotation property */ protected 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(iri, fac.getRDFSLabel(vocab.getLabel()))); } } return ap; }
/** * Tr tag to annotation prop. * * @param tag the tag * @return the oWL annotation property */ protected 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(iri, fac.getRDFSLabel(vocab.getLabel()))); } } return ap; }
/** * Tr tag to annotation prop. * * @param tag the tag * @return the oWL annotation property */ protected 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(iri, fac.getRDFSLabel(vocab.getLabel()))); } } return ap; }
/** * Tr tag to annotation prop. * * @param tag the tag * @return the oWL annotation property */ protected 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(iri, fac.getRDFSLabel(vocab.getLabel()))); } } return ap; }
if (OboFormatTag.TAG_COMMENT.getTag().equals(tagString)) { property = df.getOWLAnnotationProperty( OWLAPIObo2Owl.trTagToIRI(OboFormatTag.TAG_REMARK.getTag()));
if (OboFormatTag.TAG_COMMENT.getTag().equals(tagString)) { property = df.getOWLAnnotationProperty( OWLAPIObo2Owl.trTagToIRI(OboFormatTag.TAG_REMARK.getTag()));
if (OboFormatTag.TAG_COMMENT.getTag().equals(tagString)) { property = df.getOWLAnnotationProperty( OWLAPIObo2Owl.trTagToIRI(OboFormatTag.TAG_REMARK.getTag()));
if (OboFormatTag.TAG_COMMENT.getTag().equals(tagString)) { property = df.getOWLAnnotationProperty( OWLAPIObo2Owl.trTagToIRI(OboFormatTag.TAG_REMARK.getTag()));