@Override public OWLClass getOWLClass(IRI iri) { return new OWLClassImpl(iri); }
@Override public boolean isBuiltIn() { return isOWLThing() || isOWLNothing(); }
@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 void visit(OWLNamedIndividual individual) { if(!visitedIndividuals.contains(individual)){ visitedIndividuals.add(individual); currentDepth++; Set<OWLIndividualAxiom> axioms = ontology.getAxioms(individual, Imports.INCLUDED); for (OWLIndividualAxiom ax : axioms) { ax.accept(this); } currentDepth--; // handle punning if enabled if(allowPunning && punningClasses.contains(individual.getIRI())){ boolean inTBoxBefore = inTBox; inTBox = true; new OWLClassImpl(individual.getIRI()).accept(this); inTBox = inTBoxBefore; } } }
@Override public boolean isTopEntity() { return isOWLThing(); }
@Override public boolean isBottomEntity() { return isOWLNothing(); }
/** * 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 boolean isTopEntity() { return isOWLThing(); }
@Override public boolean isBottomEntity() { return isOWLNothing(); }
@Override public boolean isType(EntityType<?> entityType) { return getEntityType().equals(entityType); }
@Override public OWLClass getOWLClass(IRI iri) { return new OWLClassImpl(iri); }
@Override public boolean isBuiltIn() { return isOWLThing() || isOWLNothing(); }
public boolean isTopEntity() { return isOWLThing(); }
public boolean isBottomEntity() { return isOWLNothing(); }
@Override public boolean isType(EntityType<?> entityType) { return getEntityType().equals(entityType); }
@Override public OWLClass getOWLClass(IRI iri) { return new OWLClassImpl(iri); }
@Override public boolean isBuiltIn() { return isOWLThing() || isOWLNothing(); }