pub struct OntologyCompiler { /* private fields */ }Expand description
Pipeline to parse, compile, and cache domain ontologies into .hmc containers.
Implementations§
Source§impl OntologyCompiler
impl OntologyCompiler
Sourcepub fn fetch_domain_ontology(&self, domain_id: &str) -> Result<String, String>
pub fn fetch_domain_ontology(&self, domain_id: &str) -> Result<String, String>
Loads a domain ontology. If not cached, it would normally fetch from a remote or local source, parse it using SHACL compiler/N3 parsers, and save it as an HmcContainer. Returns the SHACL shape JSON string that QAppEngine can render.
Auto Trait Implementations§
impl Freeze for OntologyCompiler
impl RefUnwindSafe for OntologyCompiler
impl Send for OntologyCompiler
impl Sync for OntologyCompiler
impl Unpin for OntologyCompiler
impl UnsafeUnpin for OntologyCompiler
impl UnwindSafe for OntologyCompiler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more