@Override public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { return new OWLAnnotationPropertyImpl(iri); }
@Override public boolean isBuiltIn() { return OWLRDFVocabulary.BUILT_IN_ANNOTATION_PROPERTY_IRIS .contains(getIRI()); }
/** * Tests to see if this entity is of the specified type * @param entityType The entity type * @return <code>true</code> if this entity is of the specified type, otherwise <code>false</code>. */ public boolean isType(EntityType entityType) { return getEntityType().equals(entityType); }
@Override public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType) { return getOWLEntity(entityType, getIRI()); }
/** * Gets an entity that has the same IRI as this entity but is of the specified type. * @param entityType The type of the entity to obtain. This entity is not affected in any way. * @return An entity that has the same IRI as this entity and is of the specified type */ public <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType) { return getOWLDataFactory().getOWLEntity(entityType, getIRI()); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { return new OWLAnnotationPropertyImpl(iri); }
@Override public boolean isBuiltIn() { return OWLRDFVocabulary.BUILT_IN_ANNOTATION_PROPERTY_IRIS.contains(getIRI()); }
@Override public boolean isType(EntityType<?> entityType) { return getEntityType().equals(entityType); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { return new OWLAnnotationPropertyImpl(iri); }
public boolean isBuiltIn() { return OWLRDFVocabulary.BUILT_IN_ANNOTATION_PROPERTY_IRIS.contains(getIRI()); }
@Override public boolean isType(EntityType<?> entityType) { return getEntityType().equals(entityType); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { return new OWLAnnotationPropertyImpl(iri); }
public static void serialize(SerializationStreamWriter streamWriter, OWLAnnotationPropertyImpl instance) throws SerializationException { streamWriter.writeString(instance.getIRI().toString()); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { return new OWLAnnotationPropertyImpl(iri); }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { return new OWLAnnotationPropertyImpl(iri); }
public OWLAnnotationProperty getOWLAnnotationProperty(IRI iri) { OWLAnnotationProperty prop = annotationPropertiesByURI.get(iri); if (prop == null) { prop = new OWLAnnotationPropertyImpl(this, iri); annotationPropertiesByURI.put(iri, prop); } return prop; }
public static OWLAnnotationPropertyImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { return new OWLAnnotationPropertyImpl(IRI.create(streamReader.readString())); }
@SuppressWarnings("unchecked") static <E extends OWLEntity> E getOWLEntity(EntityType<E> entityType, IRI iri) { if (entityType.equals(EntityType.CLASS)) { return (E) new OWLClassImpl(iri); } else if (entityType.equals(EntityType.OBJECT_PROPERTY)) { return (E) new OWLObjectPropertyImpl(iri); } else if (entityType.equals(EntityType.DATA_PROPERTY)) { return (E) new OWLDataPropertyImpl(iri); } else if (entityType.equals(EntityType.ANNOTATION_PROPERTY)) { return (E) new OWLAnnotationPropertyImpl(iri); } else if (entityType.equals(EntityType.NAMED_INDIVIDUAL)) { return (E) new OWLNamedIndividualImpl(iri); } else if (entityType.equals(EntityType.DATATYPE)) { return (E) new OWLDatatypeImpl(iri); } return null; }