Ontology Export
Generate ontology artifacts from the literal mappings.
- DEFAULT_PREFIXES: dict[str, str] = {'BFO': 'http://purl.obolibrary.org/obo/BFO_', 'NCBITaxon': 'http://purl.obolibrary.org/obo/NCBITaxon_', 'OMO': 'http://purl.obolibrary.org/obo/OMO_', 'dcterms': 'http://purl.org/dc/terms/', 'oboInOwl': 'http://www.geneontology.org/formats/oboInOwl#', 'orcid': 'https://orcid.org/', 'owl': 'http://www.w3.org/2002/07/owl#', 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'skos': 'http://www.w3.org/2004/02/skos/core#'}
A default prefix map for SSSLM
- write_owl_ttl(literal_mappings: Iterable[LiteralMapping[R]], path: str | Path, *, prefix_definitions: Annotated[bool, Doc('Should the @prefix definitions be added at the top?')] = True, class_definitions: Annotated[bool, Doc('Should the `a owl:Class` and label be added?')] = True, metadata: Metadata | None = None, prefix_map: dict[str, str] | None = None) None[source]
Write literal mappings as OWL, encoded in turtle.