owlapy.model.AddImport¶
-
class
owlapy.model.
AddImport
(ontology: owlapy.model.OWLOntology, import_declaration: owlapy.model.OWLImportsDeclaration)[source]¶ Bases:
owlapy.model.OWLOntologyChange
Represents an ontology change where an import statement is added to an ontology.
- Parameters:
ontology – the ontology to which the change is to be applied
import_declaration – the import declaration
Methods
Gets the import declaration that the change pertains to.
Gets the ontology that the change is/was applied to.
-
get_import_declaration
() → owlapy.model.OWLImportsDeclaration[source]¶ Gets the import declaration that the change pertains to.
- Returns:
The import declaration
-
get_ontology
() → owlapy.model.OWLOntology¶ Gets the ontology that the change is/was applied to.
- Returns:
The ontology that the change is applicable to