pub struct IriAudit {
pub strict: bool,
pub report: IriReport,
}Expand description
Policy and tally for the invalid-IRI check that runs during ingest.
rete’s reader is deliberately tolerant of IRIs a strict parser rejects (see
crate::iri), which is what lets it hold every published dataset — and
also what let three of the scholar/ exports produce N-Quads Oxigraph
refuses to load. Passing an audit makes the tolerance visible: the build
still succeeds and stores exactly what it was given, but it can now say how
much of what it stored is not valid RDF. strict turns the same finding into
a refusal, on the first offending statement.
Fields§
§strict: boolFail the parse on the first invalid IRI instead of counting it.
report: IriReportWhat the parse saw. Constant memory — see crate::iri::IriReport.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IriAudit
impl RefUnwindSafe for IriAudit
impl Send for IriAudit
impl Sync for IriAudit
impl Unpin for IriAudit
impl UnsafeUnpin for IriAudit
impl UnwindSafe for IriAudit
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