pyhornedowl.open_ontology_from_file

pyhornedowl.open_ontology_from_file(path: str, serialization: Literal['owl', 'rdf', 'ofn', 'owx'] | None = None, index_strategy=IndexCreationStrategy.OnQuery) PyIndexedOntology

Opens an ontology from a file

If the serialization is not specified it is guessed from the file extension. Defaults to OWL/XML.