pyhornedowl

Functions

get_ancestors

@deprecated("please use PyIndexedOntology.get_ancestors instead") get_ancestors(onto: PyIndexedOntology, child: str) -> Set[str]

get_descendants

@deprecated("please use PyIndexedOntology.get_descendants instead") get_descendants(onto: PyIndexedOntology, parent: str) -> Set[str]

open_ontology

open_ontology(ontology: str, serialization: Optional[typing.Literal['owl', 'rdf','ofn', 'owx']]=None, index_strategy = IndexCreationStrategy.OnQuery) -> PyIndexedOntology

open_ontology_from_file

open_ontology_from_file(path: str, serialization: Optional[typing.Literal['owl', 'rdf','ofn', 'owx']]=None, index_strategy = IndexCreationStrategy.OnQuery) -> PyIndexedOntology

open_ontology_from_string

open_ontology_from_string(ontology: str, serialization: Optional[typing.Literal['owl', 'rdf','ofn', 'owx']]=None, index_strategy = IndexCreationStrategy.OnQuery) -> PyIndexedOntology

Classes

IndexCreationStrategy

Values to indicate when to build the additional indexes.

PrefixMapping

PyIndexedOntology

Represents a loaded ontology.

Module aliases