public OWLAnnotationProperty getOWLIncompatibleWith() { return getOWLAnnotationProperty(OWLRDFVocabulary.OWL_INCOMPATIBLE_WITH.getIRI()); }
public OWLAnnotationProperty getOWLBackwardCompatibleWith() { return getOWLAnnotationProperty(OWLRDFVocabulary.OWL_BACKWARD_COMPATIBLE_WITH.getIRI()); }
public OWLAnnotationProperty getRDFSSeeAlso() { return getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_SEE_ALSO.getIRI()); }
public OWLAnnotationProperty getOWLVersionInfo() { return getOWLAnnotationProperty(OWLRDFVocabulary.OWL_VERSION_INFO.getIRI()); }
public OWLAnnotationProperty getOWLDeprecated() { return getOWLAnnotationProperty(OWLRDFVocabulary.OWL_DEPRECATED.getIRI()); }
public OWLAnnotationProperty getRDFSComment() { return getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_COMMENT.getIRI()); }
public OWLAnnotationProperty getOWLAnnotationProperty(String abbreviatedIRI, PrefixManager prefixManager) { return getOWLAnnotationProperty(prefixManager.getIRI(abbreviatedIRI)); }
public OWLAnnotationProperty getRDFSLabel() { return getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI()); }
public OWLAnnotationProperty getRDFSIsDefinedBy() { return getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_IS_DEFINED_BY.getIRI()); }
public RDFSLabelEntityTextRetriever(OWLAPIOntology ontology) { super(ontology, new OWLDataFactoryImpl().getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI())); determineHeadNoun = true; }
public RDFSCommentEntityTextRetriever(OWLAPIOntology ontology) { super(ontology, new OWLDataFactoryImpl().getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_COMMENT.getIRI())); } }
public RDFSLabelEntityTextRetriever(OWLOntology ontology) { super(ontology, new OWLDataFactoryImpl().getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI())); determineHeadNoun = true; }
public RDFSCommentEntityTextRetriever(OWLOntology ontology) { super(ontology, new OWLDataFactoryImpl().getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_COMMENT.getIRI())); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty( String abbreviatedIRI, @Nonnull PrefixManager prefixManager) { checkNotNull(abbreviatedIRI, "abbreviatedIRI cannot be null"); checkNotNull(prefixManager, "prefixManager cannot be null"); return getOWLAnnotationProperty(prefixManager.getIRI(abbreviatedIRI)); }
/** * Gets a SWRL rule which is not named with a URI - i.e. that is anonymous. * * @param nodeID * @param body * @param head */ public SWRLRule getSWRLRule(NodeID nodeID, Set<? extends SWRLAtom> body, Set<? extends SWRLAtom> head) { Set<OWLAnnotation> annos = new HashSet<OWLAnnotation>(2); annos.add(getOWLAnnotation(getOWLAnnotationProperty(IRI.create("http://www.semanticweb.org/owlapi#nodeID")), getOWLStringLiteral(nodeID.toString()))); return new SWRLRuleImpl(this, body, head, annos); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(String abbreviatedIRI, PrefixManager prefixManager) { checkNull(abbreviatedIRI, ABBREVIATED_IRI); checkNull(prefixManager, PREFIX_MANAGER); return getOWLAnnotationProperty(prefixManager.getIRI(abbreviatedIRI)); }
/** * Gets a SWRL rule which is named with a URI * * @param iri * @param body * @param head */ public SWRLRule getSWRLRule(IRI iri, Set<? extends SWRLAtom> body, Set<? extends SWRLAtom> head) { Set<OWLAnnotation> annos = new HashSet<OWLAnnotation>(2); annos.add(getOWLAnnotation(getOWLAnnotationProperty(IRI.create("http://www.semanticweb.org/owlapi#iri")), getOWLStringLiteral(iri.toQuotedString()))); return new SWRLRuleImpl(this, body, head, annos); }
/** * @deprecated Use either * {@link #getSWRLRule(java.util.Set, java.util.Set, java.util.Set)} * or {@link #getSWRLRule(java.util.Set, java.util.Set)} * instead. */ @Override @Deprecated public SWRLRule getSWRLRule(NodeID nodeID, Set<? extends SWRLAtom> body, Set<? extends SWRLAtom> head) { checkNull(head, "head"); checkNull(body, "body"); checkNull(nodeID, "nodeID"); Set<OWLAnnotation> annos = new HashSet<OWLAnnotation>(2); annos.add(getOWLAnnotation(getOWLAnnotationProperty(IRI.create("http://www.semanticweb.org/owlapi#", "nodeID")), getOWLLiteral(nodeID.toString()))); return new SWRLRuleImpl(body, head, annos); }
@Override @SuppressWarnings("unchecked") public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType, IRI iri) { checkNull(entityType, "entityType"); checkNull(iri, IRI2); E ret = null; if (entityType.equals(EntityType.CLASS)) { ret = (E) getOWLClass(iri); } else if (entityType.equals(EntityType.OBJECT_PROPERTY)) { ret = (E) getOWLObjectProperty(iri); } else if (entityType.equals(EntityType.DATA_PROPERTY)) { ret = (E) getOWLDataProperty(iri); } else if (entityType.equals(EntityType.ANNOTATION_PROPERTY)) { ret = (E) getOWLAnnotationProperty(iri); } else if (entityType.equals(EntityType.NAMED_INDIVIDUAL)) { ret = (E) getOWLNamedIndividual(iri); } else if (entityType.equals(EntityType.DATATYPE)) { ret = (E) getOWLDatatype(iri); } return ret; }
/** * @deprecated Use either * {@link #getSWRLRule(java.util.Set, java.util.Set, java.util.Set)} * or {@link #getSWRLRule(java.util.Set, java.util.Set)} * instead. Gets a SWRL rule which is named with a URI */ @Override @Deprecated public SWRLRule getSWRLRule(IRI iri, Set<? extends SWRLAtom> body, Set<? extends SWRLAtom> head) { checkNull(iri, "iri"); checkNull(body, "body"); checkNull(head, "head"); Set<OWLAnnotation> annos = new HashSet<OWLAnnotation>(2); annos.add(getOWLAnnotation(getOWLAnnotationProperty(IRI.create("http://www.semanticweb.org/owlapi#", "iri")), getOWLLiteral(iri.toQuotedString()))); return new SWRLRuleImpl(body, head, annos); }