owlapy.model.OWLOntology¶
-
class
owlapy.model.
OWLOntology
[source]¶ Bases:
owlapy.model.OWLObject
Represents an OWL 2 Ontology in the OWL 2 specification.
An OWLOntology consists of a possibly empty set of OWLAxioms and a possibly empty set of OWLAnnotations. An ontology can have an ontology IRI which can be used to identify the ontology. If it has an ontology IRI then it may also have an ontology version IRI. Since OWL 2, an ontology need not have an ontology IRI. (See the OWL 2 Structural Specification)
An ontology cannot be modified directly. Changes must be applied via its OWLOntologyManager.
Methods
Gets the classes in the signature of this object.
Get the data properties that are in the signature of this object.
Gets the OWLDataPropertyDomainAxiom objects where the property is equal to the specified property.
Gets the OWLDataPropertyRangeAxiom objects where the property is equal to the specified property.
Gets the OWLOntologyID belonging to this object.
Gets the manager that manages this ontology
A convenience method that obtains the individuals that are in the signature of this object.
A convenience method that obtains the object properties that are in the signature of this object.
Gets the OWLObjectPropertyDomainAxiom objects where the property is equal to the specified property.
Gets the OWLObjectPropertyRangeAxiom objects where the property is equal to the specified property.
Attributes
-
abstract
classes_in_signature
() → Iterable[owlapy.model.OWLClass][source]¶ Gets the classes in the signature of this object.
- Returns:
Classes in the signature of this object
-
abstract
data_properties_in_signature
() → Iterable[owlapy.model.OWLDataProperty][source]¶ Get the data properties that are in the signature of this object.
- Returns:
Data properties that are in the signature of this object
-
abstract
data_property_domain_axioms
(property: owlapy.model.OWLDataProperty) → Iterable[owlapy.model.OWLDataPropertyDomainAxiom][source]¶ Gets the OWLDataPropertyDomainAxiom objects where the property is equal to the specified property.
- Parameters:
property – The property which is equal to the property of the retrieved axioms.
- Returns:
the axioms matching the search.
-
abstract
data_property_range_axioms
(property: owlapy.model.OWLDataProperty) → Iterable[owlapy.model.OWLDataPropertyRangeAxiom][source]¶ Gets the OWLDataPropertyRangeAxiom objects where the property is equal to the specified property.
- Parameters:
property – The property which is equal to the property of the retrieved axioms.
- Returns:
the axioms matching the search.
-
abstract
get_ontology_id
() → owlapy.model.OWLOntologyID[source]¶ Gets the OWLOntologyID belonging to this object.
- Returns:
The OWLOntologyID
-
abstract
individuals_in_signature
() → Iterable[owlapy.model.OWLNamedIndividual][source]¶ A convenience method that obtains the individuals that are in the signature of this object.
- Returns:
Individuals that are in the signature of this object.
-
abstract
object_properties_in_signature
() → Iterable[owlapy.model.OWLObjectProperty][source]¶ A convenience method that obtains the object properties that are in the signature of this object.
- Returns:
Object properties that are in the signature of this object
-
abstract
object_property_domain_axioms
(property: owlapy.model.OWLObjectProperty) → Iterable[owlapy.model.OWLObjectPropertyDomainAxiom][source]¶ Gets the OWLObjectPropertyDomainAxiom objects where the property is equal to the specified property.
- Parameters:
property – The property which is equal to the property of the retrieved axioms.
- Returns:
the axioms matching the search.
-
abstract
object_property_range_axioms
(property: owlapy.model.OWLObjectProperty) → Iterable[owlapy.model.OWLObjectPropertyRangeAxiom][source]¶ Gets the OWLObjectPropertyRangeAxiom objects where the property is equal to the specified property.
- Parameters:
property – The property which is equal to the property of the retrieved axioms.
- Returns:
the axioms matching the search.
-
type_index
: Final = 1¶
-
abstract