pub struct QueryGraph<'a, G: GraphRead + ?Sized> { /* private fields */ }Expand description
Evaluate SPARQL over the exact graph contexts exposed by a borrowed source. Compose union/overlay views explicitly before constructing this adapter. The adapter adds no default union, snapshots, or graph-name collections. See the crate architecture and runnable example.
Implementations§
Trait Implementations§
Source§impl<'a, G: GraphRead + ?Sized + 'a> QueryableDataset<'a> for QueryGraph<'a, G>
impl<'a, G: GraphRead + ?Sized + 'a> QueryableDataset<'a> for QueryGraph<'a, G>
Source§type InternalTerm = Term
type InternalTerm = Term
Internal representation of an RDF term Read more
Source§fn internal_quads_for_pattern(
&self,
subject: Option<&Term>,
predicate: Option<&Term>,
object: Option<&Term>,
graph_name: Option<Option<&Term>>,
) -> impl Iterator<Item = Result<InternalQuad<Term>>> + use<'a, G>
fn internal_quads_for_pattern( &self, subject: Option<&Term>, predicate: Option<&Term>, object: Option<&Term>, graph_name: Option<Option<&Term>>, ) -> impl Iterator<Item = Result<InternalQuad<Term>>> + use<'a, G>
Fetches quads according to a pattern Read more
Source§fn internal_named_graphs(
&self,
) -> impl Iterator<Item = Result<Term>> + use<'a, G>
fn internal_named_graphs( &self, ) -> impl Iterator<Item = Result<Term>> + use<'a, G>
Fetches the list of dataset named graphs
Source§fn contains_internal_graph_name(&self, graph: &Term) -> Result<bool>
fn contains_internal_graph_name(&self, graph: &Term) -> Result<bool>
Returns if the dataset contains a given named graph
Source§fn internalize_term(&self, term: Term) -> Result<Term>
fn internalize_term(&self, term: Term) -> Result<Term>
Builds an internal term from the [
Term] structSource§fn externalize_term(&self, term: Term) -> Result<Term>
fn externalize_term(&self, term: Term) -> Result<Term>
Builds a [
Term] from an internal term§fn externalize_expression_term(
&self,
term: Self::InternalTerm,
) -> Result<ExpressionTerm, Self::Error>
fn externalize_expression_term( &self, term: Self::InternalTerm, ) -> Result<ExpressionTerm, Self::Error>
Builds an [
ExpressionTerm] from an internal term§fn internalize_expression_term(
&self,
term: ExpressionTerm,
) -> Result<Self::InternalTerm, Self::Error>
fn internalize_expression_term( &self, term: ExpressionTerm, ) -> Result<Self::InternalTerm, Self::Error>
Builds an internal term from an [
ExpressionTerm]§fn internal_term_effective_boolean_value(
&self,
term: Self::InternalTerm,
) -> Result<Option<bool>, Self::Error>
fn internal_term_effective_boolean_value( &self, term: Self::InternalTerm, ) -> Result<Option<bool>, Self::Error>
Computes the term Effective boolean value
Auto Trait Implementations§
impl<'a, G> Freeze for QueryGraph<'a, G>where
G: ?Sized,
impl<'a, G> RefUnwindSafe for QueryGraph<'a, G>where
G: RefUnwindSafe + ?Sized,
impl<'a, G> Send for QueryGraph<'a, G>
impl<'a, G> Sync for QueryGraph<'a, G>
impl<'a, G> Unpin for QueryGraph<'a, G>where
G: ?Sized,
impl<'a, G> UnsafeUnpin for QueryGraph<'a, G>where
G: ?Sized,
impl<'a, G> UnwindSafe for QueryGraph<'a, G>where
G: RefUnwindSafe + ?Sized,
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