Skip to main content

QueryGraph

Struct QueryGraph 

Source
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§

Source§

impl<'a, G: GraphRead + ?Sized> QueryGraph<'a, G>

Source

pub fn new(source: &'a G) -> Self

Borrow a consistent graph source for the lifetime of query evaluation.

Trait Implementations§

Source§

impl<'a, G: GraphRead + ?Sized + 'a> QueryableDataset<'a> for QueryGraph<'a, G>

Source§

type InternalTerm = Term

Internal representation of an RDF term Read more
Source§

type Error = Error

Error returned by the dataset.
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>

Fetches quads according to a pattern Read more
Source§

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>

Returns if the dataset contains a given named graph
Source§

fn internalize_term(&self, term: Term) -> Result<Term>

Builds an internal term from the [Term] struct
Source§

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>

Builds an [ExpressionTerm] from an internal term
§

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>

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>
where G: Sync + ?Sized,

§

impl<'a, G> Sync for QueryGraph<'a, G>
where G: Sync + ?Sized,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V