Version: 0.0.6 (stable)
agrag.schema.formats.owl.load_owl
load_owl(source:str | Path, *, name:str | None = None, version:str | None = None) -> ImportResult
Load the supported OWL/RDFS subset from a local UTF-8 Turtle file.
The name defaults to the file stem and version to 1. Import warnings
are returned, not logged. Remote paths and ontology imports are not fetched.
Raises:
SchemaFormatError– The file or Turtle document cannot be read.SchemaFormatMissingExtraError– Install theschema-formatsextra.SchemaLoadError– The mapped data fails schema validation.