pub struct RdfOptions {
pub syntax: Syntax,
pub profiles: ProfileMask,
pub types: bool,
pub headers: bool,
pub base: Option<String>,
}Expand description
Options controlling RDF output.
Fields§
§syntax: Syntax§profiles: ProfileMaskWrite only values belonging to these profiles; zero means “everything”.
Filtering follows the CIM/XML writer (Schema::effective_profiles), so one
profile’s graph holds exactly what that profile’s export would.
types: boolEmit rdf:type for every object and compound.
On by default: SHACL shapes select targets by sh:targetClass.
headers: boolEmit the loaded files’ md:FullModel headers as resources.
Restricted by RdfOptions::profiles: only headers of files that serve them.
base: Option<String>Base IRI for identifiers that are not UUIDs.
A non-conforming identifier
(Rule::NonConformingMrid) has no urn:uuid:
form. With a base it becomes {base}{identifier}; without one, a stable blank
node, which keeps the joins but gives no global name.
Implementations§
Source§impl RdfOptions
impl RdfOptions
Trait Implementations§
Source§impl Clone for RdfOptions
impl Clone for RdfOptions
Source§impl Debug for RdfOptions
impl Debug for RdfOptions
Auto Trait Implementations§
impl Forget for RdfOptions
impl Freeze for RdfOptions
impl Move for RdfOptions
impl RefUnwindSafe for RdfOptions
impl Send for RdfOptionswhere
RawVecInner: Send,
impl Sync for RdfOptionswhere
RawVecInner: Sync,
impl Unpin for RdfOptions
impl UnsafeUnpin for RdfOptions
impl UnwindSafe for RdfOptionswhere
RawVecInner: UnwindSafe,
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