Package org.semanticweb.owlapi.model
Interface OWLSignature
- All Superinterfaces:
HasAnnotationPropertiesInSignature
,HasClassesInSignature
,HasContainsEntityInSignature
,HasDataPropertiesInSignature
,HasDatatypesInSignature
,HasGetEntitiesInSignature
,HasImportsClosure
,HasIndividualsInSignature
,HasObjectPropertiesInSignature
- All Known Subinterfaces:
OWLMutableOntology
,OWLOntology
,OWLSignatureBooleanArgs
- All Known Implementing Classes:
ConcurrentOWLOntologyImpl
,OWLImmutableOntologyImpl
,OWLOntologyImpl
public interface OWLSignature
extends HasGetEntitiesInSignature, HasClassesInSignature, HasAnnotationPropertiesInSignature, HasObjectPropertiesInSignature, HasDataPropertiesInSignature, HasDatatypesInSignature, HasIndividualsInSignature, HasContainsEntityInSignature, HasImportsClosure
Ontology methods related to its signature.
- Since:
- 4.0.0
- Author:
- ignazio
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stream<OWLAnnotationProperty>
annotationPropertiesInSignature
(Imports imports) Gets the annotation properties in the signature and optionally the imports closure.classesInSignature
(Imports imports) Gets the classes in the signature and optionally the imports closure.boolean
containsAnnotationPropertyInSignature
(IRI owlAnnotationPropertyIRI) Determines if the signature contains an OWLAnnotationProperty that has the specified IRI.boolean
containsAnnotationPropertyInSignature
(IRI owlAnnotationPropertyIRI, Imports includeImportsClosure) Determines if the signature contains an OWLAnnotationProperty that has the specified IRI.boolean
containsClassInSignature
(IRI owlClassIRI) Determines if the signature contains an OWLClass that has the specified IRI.boolean
containsClassInSignature
(IRI owlClassIRI, Imports includeImportsClosure) Determines if the signature contains an OWLClass that has the specified IRI.boolean
containsDataPropertyInSignature
(IRI owlDataPropertyIRI) Determines if the signature contains an OWLDataProperty that has the specified IRI.boolean
containsDataPropertyInSignature
(IRI owlDataPropertyIRI, Imports includeImportsClosure) Determines if the signature contains an OWLDataProperty that has the specified IRI.boolean
containsDatatypeInSignature
(IRI owlDatatypeIRI) Determines if the signature contains an OWLDatatype that has the specified IRI.boolean
containsDatatypeInSignature
(IRI owlDatatypeIRI, Imports includeImportsClosure) Determines if the signature contains an OWLDatatype that has the specified IRI.default boolean
Determine whether the instance has entities of the specified type in its signature - e.g., whether an ontology has classes, object properties, or named individuals in its signature.default boolean
containsEntitiesOfTypeInSignature
(EntityType<?> type, Imports includeImportsClosure) Determine whether the instance has entities of the specified type in its signature or in its import closure - e.g., whether an ontology has classes, object properties, or named individuals in its signature.default boolean
containsEntityInSignature
(IRI entityIRI) Determines if the signature contains an entity with the specified IRI.default boolean
containsEntityInSignature
(IRI entityIRI, Imports imports) Determines if the signature contains an entity with the specified IRI.default boolean
containsEntityInSignature
(OWLEntity owlEntity, Imports imports) Determines if the signature contains the specified entity.boolean
containsIndividualInSignature
(IRI owlIndividualIRI) Determines if the signature contains an OWLNamedIndividual that has the specified IRI.boolean
containsIndividualInSignature
(IRI owlIndividualIRI, Imports includeImportsClosure) Determines if the signature contains an OWLNamedIndividual that has the specified IRI.boolean
containsObjectPropertyInSignature
(IRI owlObjectPropertyIRI) Determines if the signature contains an OWLObjectProperty that has the specified IRI.boolean
containsObjectPropertyInSignature
(IRI owlObjectPropertyIRI, Imports includeImportsClosure) Determines if the signature contains an OWLObjectProperty that has the specified IRI.boolean
containsReference
(OWLEntity entity) Deprecated.default boolean
containsReference
(OWLEntity entity, Imports imports) Deprecated.default Stream<OWLDataProperty>
dataPropertiesInSignature
(Imports imports) Gets the data properties in the signature and optionally the imports closure.default Stream<OWLDatatype>
datatypesInSignature
(Imports imports) Gets the datatypes in the signature and optionally the imports closure.entitiesInSignature
(IRI iri, Imports imports) Gets the entities in the signature that have the specified IRI.default Set<OWLAnnotationProperty>
getAnnotationPropertiesInSignature
(Imports includeImportsClosure) Gets the annotation properties in the signature and optionally the imports closure.getClassesInSignature
(Imports imports) Gets the classes in the signature and optionally the imports closure.default Set<OWLDataProperty>
getDataPropertiesInSignature
(Imports includeImportsClosure) Gets the data properties in the signature and optionally the imports closure.default Set<OWLDatatype>
getDatatypesInSignature
(Imports includeImportsClosure) Gets the datatypes in the signature and optionally the imports closure.getEntitiesInSignature
(IRI iri, Imports includeImportsClosure) Gets the entities in the signature that have the specified IRI.default Set<OWLNamedIndividual>
getIndividualsInSignature
(Imports includeImportsClosure) Gets the named individuals in the signature and optionally the imports closure.default Set<OWLObjectProperty>
getObjectPropertiesInSignature
(Imports includeImportsClosure) Gets the object properties in the signature and optionally the imports closure.getPunnedIRIs
(Imports includeImportsClosure) Calculates the set of IRIs that are used for more than one entity type.default Set<OWLAnonymousIndividual>
Gets the referenced anonymous individuals.default Set<OWLAnonymousIndividual>
getReferencedAnonymousIndividuals
(Imports includeImportsClosure) Gets the referenced anonymous individuals in the signature and optionally the imports closure.default Stream<OWLNamedIndividual>
individualsInSignature
(Imports imports) Gets the named individuals in the signature and optionally the imports closure.default Stream<OWLObjectProperty>
objectPropertiesInSignature
(Imports imports) Gets the object properties in the signature and optionally the imports closure.Gets the referenced anonymous individuals.default Stream<OWLAnonymousIndividual>
referencedAnonymousIndividuals
(Imports imports) Gets the referenced anonymous individuals in the signature and optionally the imports closure.Methods inherited from interface org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasClassesInSignature
classesInSignature, getClassesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasContainsEntityInSignature
containsEntityInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDataPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasDatatypesInSignature
datatypesInSignature, getDatatypesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasGetEntitiesInSignature
entitiesInSignature, getEntitiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasImportsClosure
getImportsClosure, importsClosure
Methods inherited from interface org.semanticweb.owlapi.model.HasIndividualsInSignature
getIndividualsInSignature, individualsInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
-
Method Details
-
getClassesInSignature
Gets the classes in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the set of classes in the signature, optionally including the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
classesInSignature
Gets the classes in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the stream of classes in the signature, optionally including the import closure.
-
getObjectPropertiesInSignature
Gets the object properties in the signature and optionally the imports closure.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- the set of object properties in the signature, optionally including the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
objectPropertiesInSignature
Gets the object properties in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the stream of object properties in the signature, optionally including the import closure.
-
getDataPropertiesInSignature
Gets the data properties in the signature and optionally the imports closure.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- the set of data properties in the signature, optionally including the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
dataPropertiesInSignature
Gets the data properties in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the stream of data properties in the signature, optionally including the import closure.
-
getIndividualsInSignature
Gets the named individuals in the signature and optionally the imports closure.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- the set of individuals in the signature, optionally including the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
individualsInSignature
Gets the named individuals in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the stream of individuals in the signature, optionally including the import closure.
-
getReferencedAnonymousIndividuals
default Set<OWLAnonymousIndividual> getReferencedAnonymousIndividuals(Imports includeImportsClosure) Gets the referenced anonymous individuals in the signature and optionally the imports closure.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- The set of referenced anonymous individuals. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
referencedAnonymousIndividuals
Gets the referenced anonymous individuals in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- The stream of referenced anonymous individuals
-
getReferencedAnonymousIndividuals
Gets the referenced anonymous individuals.- Returns:
- The set of referenced anonymous individuals. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
referencedAnonymousIndividuals
Stream<OWLAnonymousIndividual> referencedAnonymousIndividuals()Gets the referenced anonymous individuals.- Returns:
- Sorted stream of referenced anonymous individuals
-
getDatatypesInSignature
Gets the datatypes in the signature and optionally the imports closure.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- the set of datatypes in the signature of this ontology, optionally including the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
datatypesInSignature
Gets the datatypes in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the stream of datatypes in the signature of this ontology, optionally including the import closure.
-
getAnnotationPropertiesInSignature
default Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(Imports includeImportsClosure) Gets the annotation properties in the signature and optionally the imports closure.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- the set of annotation properties in the signature, optionally including the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
annotationPropertiesInSignature
Gets the annotation properties in the signature and optionally the imports closure.- Parameters:
imports
- if INCLUDED, include imports closure.- Returns:
- the stream of annotation properties in the signature, optionally including the import closure.
-
containsEntityInSignature
Determines if the signature contains the specified entity.- Parameters:
owlEntity
- The entityimports
- if INCLUDED, include imports closure.- Returns:
true
if the signature or the import closure contains a reference to the specified entity.
-
containsEntityInSignature
Determines if the signature contains an entity with the specified IRI.- Parameters:
entityIRI
- The IRI to test for.imports
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains an entity with the specified IRI.
-
containsClassInSignature
Determines if the signature contains an OWLClass that has the specified IRI.- Parameters:
owlClassIRI
- The IRI of the class to check forincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains an entity with the specified IRI.
-
containsObjectPropertyInSignature
Determines if the signature contains an OWLObjectProperty that has the specified IRI.- Parameters:
owlObjectPropertyIRI
- The IRI of the OWLObjectProperty to check forincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains an object property with the specified IRI.
-
containsDataPropertyInSignature
Determines if the signature contains an OWLDataProperty that has the specified IRI.- Parameters:
owlDataPropertyIRI
- The IRI of the OWLDataProperty to check forincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains a data property with the specified IRI.
-
containsAnnotationPropertyInSignature
boolean containsAnnotationPropertyInSignature(IRI owlAnnotationPropertyIRI, Imports includeImportsClosure) Determines if the signature contains an OWLAnnotationProperty that has the specified IRI.- Parameters:
owlAnnotationPropertyIRI
- The IRI of the OWLAnnotationProperty to check forincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains an annotation property with the specified IRI.
-
containsDatatypeInSignature
Determines if the signature contains an OWLDatatype that has the specified IRI.- Parameters:
owlDatatypeIRI
- The IRI of the OWLDatatype to check forincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains a datatype with the specified IRI.
-
containsIndividualInSignature
Determines if the signature contains an OWLNamedIndividual that has the specified IRI.- Parameters:
owlIndividualIRI
- The IRI of the OWLNamedIndividual to check forincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if the signature or the import closure contains an individual with the specified IRI.
-
containsDatatypeInSignature
Determines if the signature contains an OWLDatatype that has the specified IRI.- Parameters:
owlDatatypeIRI
- The IRI of the OWLDatatype to check for- Returns:
- true if the signature or the import closure contains a datatype with the specified IRI.
-
containsEntityInSignature
Determines if the signature contains an entity with the specified IRI.- Parameters:
entityIRI
- The IRI to test for.- Returns:
- true if the signature or the import closure contains an entity with the specified IRI.
-
containsClassInSignature
Determines if the signature contains an OWLClass that has the specified IRI.- Parameters:
owlClassIRI
- The IRI of the class to check for- Returns:
- true if the signature or the import closure contains an entity with the specified IRI.
-
containsObjectPropertyInSignature
Determines if the signature contains an OWLObjectProperty that has the specified IRI.- Parameters:
owlObjectPropertyIRI
- The IRI of the OWLObjectProperty to check for- Returns:
- true if the signature or the import closure contains an object property with the specified IRI.
-
containsDataPropertyInSignature
Determines if the signature contains an OWLDataProperty that has the specified IRI.- Parameters:
owlDataPropertyIRI
- The IRI of the OWLDataProperty to check for- Returns:
- true if the signature or the import closure contains a data property with the specified IRI.
-
containsAnnotationPropertyInSignature
Determines if the signature contains an OWLAnnotationProperty that has the specified IRI.- Parameters:
owlAnnotationPropertyIRI
- The IRI of the OWLAnnotationProperty to check for- Returns:
- true if the signature or the import closure contains an annotation property with the specified IRI.
-
containsIndividualInSignature
Determines if the signature contains an OWLNamedIndividual that has the specified IRI.- Parameters:
owlIndividualIRI
- The IRI of the OWLNamedIndividual to check for- Returns:
- true if the signature or the import closure contains an individual with the specified IRI.
-
containsEntitiesOfTypeInSignature
Determine whether the instance has entities of the specified type in its signature - e.g., whether an ontology has classes, object properties, or named individuals in its signature. Anonymous individuals are not included.- Parameters:
type
- type of entity to check- Returns:
- true if entities of the specified type are in the signature
-
containsEntitiesOfTypeInSignature
default boolean containsEntitiesOfTypeInSignature(EntityType<?> type, Imports includeImportsClosure) Determine whether the instance has entities of the specified type in its signature or in its import closure - e.g., whether an ontology has classes, object properties, or named individuals in its signature. Anonymous individuals are not included.- Parameters:
type
- type of entity to checkincludeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- true if entities of the specified type are in the signature
-
getEntitiesInSignature
Gets the entities in the signature that have the specified IRI.- Parameters:
iri
- The IRI of the entities to be retrieved.includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- the set of entities with the specified IRI, optionally including the ones in the import closure. The set that is returned is a copy; modifications to the returned set will not be reflected in this object.
-
entitiesInSignature
Gets the entities in the signature that have the specified IRI.- Parameters:
iri
- The IRI of the entities to be retrieved.imports
- if INCLUDED, include imports closure.- Returns:
- the stream of entities with the specified IRI, optionally including the ones in the import closure.
-
getPunnedIRIs
Calculates the set of IRIs that are used for more than one entity type.- Parameters:
includeImportsClosure
- if INCLUDED, include imports closure.- Returns:
- punned IRIs.
-
containsReference
Deprecated.- Parameters:
entity
- entity to checkimports
- if INCLUDED, include imports closure.- Returns:
- true if entity is referenced
-
containsReference
- Parameters:
entity
- entity to check- Returns:
- true if entity is referenced
-
HasContainsEntityInSignature.containsEntityInSignature(OWLEntity)