pub struct Update { /* private fields */ }
Expand description
A parsed SPARQL update.
use spargebra::SparqlSyntaxError;
use rdf_fusion_execution::sparql::Update;
let update_str = "CLEAR ALL ;";
let update = Update::parse(update_str, None)?;
assert_eq!(update.to_string().trim(), update_str);
Implementations§
Source§impl Update
impl Update
Sourcepub fn parse(
update: &str,
base_iri: Option<&str>,
) -> Result<Self, SparqlSyntaxError>
pub fn parse( update: &str, base_iri: Option<&str>, ) -> Result<Self, SparqlSyntaxError>
Parses a SPARQL update with an optional base IRI to resolve relative IRIs in the query.
Sourcepub fn using_datasets(&self) -> impl Iterator<Item = &QueryDataset>
pub fn using_datasets(&self) -> impl Iterator<Item = &QueryDataset>
Sourcepub fn using_datasets_mut(&mut self) -> impl Iterator<Item = &mut QueryDataset>
pub fn using_datasets_mut(&mut self) -> impl Iterator<Item = &mut QueryDataset>
Trait Implementations§
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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