Skip to main content

Crate sbol_ontology

Crate sbol_ontology 

Source
Expand description

Offline ontology facts for SBOL validation.

sbol-ontology embeds a compact, SBOL-specific fact snapshot derived from canonical ontology sources. It does not fetch network resources at runtime. The bundled Ontology accepts common SBOL document IRIs, OBO PURLs, and compact IDs, then exposes branch membership, conflict, and compatibility queries used by the sbol validator.

Extension snapshots (e.g. NCIT) can be loaded from a TSV that follows the same column schema as the bundled file. Compose them with the bundled snapshot through OntologyRegistry.

Re-exports§

pub use cache::BranchRoot;
pub use cache::BuildError;
pub use cache::InstallError;
pub use cache::InstalledOntology;
pub use cache::KnownOntology;
pub use cache::OntologyCache;
pub use cache::OntologyDescriptor;
pub use cache::SourceFormat;
pub use cache::VerifyError;

Modules§

cache
On-disk cache of ontology extension snapshots.
download
HTTP download helper shared by the bundled-snapshot bootstrap binary and the runtime cache.
parser
Low-level OBO and RDF/XML parsers used by the bundled snapshot generator and the runtime extension cache.

Structs§

Ontology
Offline ontology query surface used by SBOL validation.
OntologyProvenance
Provenance for one upstream ontology source.
OntologyRegistry
A read-only view that layers zero-or-more extension snapshots on top of the bundled Ontology.

Enums§

ComponentTypeFamily
Broad family for SBOL Component type terms.
OntologyNamespace
Ontology namespace represented by a bundled or extension term.
SequenceEncodingFamily
Broad family for SBOL Sequence encoding terms.
TermRole
SBOL-facing role assigned to a bundled ontology term.

Constants§

TSV_FORMAT_VERSION
Current TSV format version. Snapshots that do not carry this version in a # format_version: N header line are rejected at load time.

Functions§

normalize_term_id
Returns the compact ontology ID for a supported IRI, PURL, or compact ID.