pub struct RdfParser { /* private fields */ }Expand description
Unified RDF parser supporting all formats
Implementations§
Source§impl RdfParser
impl RdfParser
Sourcepub fn with_base_iri(self, base_iri: impl Into<String>) -> Self
pub fn with_base_iri(self, base_iri: impl Into<String>) -> Self
Set the base IRI for resolving relative IRIs
Sourcepub fn with_prefix(
self,
prefix: impl Into<String>,
iri: impl Into<String>,
) -> Self
pub fn with_prefix( self, prefix: impl Into<String>, iri: impl Into<String>, ) -> Self
Add a namespace prefix
Sourcepub fn for_reader<R: Read + Send + 'static>(
self,
reader: R,
) -> ReaderQuadParser<'static, R> ⓘ
pub fn for_reader<R: Read + Send + 'static>( self, reader: R, ) -> ReaderQuadParser<'static, R> ⓘ
Parse from a reader
Sourcepub fn for_slice<'a>(self, slice: &'a [u8]) -> SliceQuadParser<'a> ⓘ
pub fn for_slice<'a>(self, slice: &'a [u8]) -> SliceQuadParser<'a> ⓘ
Parse from a byte slice
Sourcepub fn is_lenient(&self) -> bool
pub fn is_lenient(&self) -> bool
Check if lenient parsing is enabled
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RdfParser
impl RefUnwindSafe for RdfParser
impl Send for RdfParser
impl Sync for RdfParser
impl Unpin for RdfParser
impl UnsafeUnpin for RdfParser
impl UnwindSafe for RdfParser
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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