pub struct QueryEngine { /* private fields */ }
Expand description
Simplified QueryEngine for SHACL compatibility
Implementations§
Source§impl QueryEngine
impl QueryEngine
Sourcepub fn with_config(config: QueryExecutorConfig) -> Self
pub fn with_config(config: QueryExecutorConfig) -> Self
Create a new query engine with custom configuration
Sourcepub fn with_federation(self) -> Self
pub fn with_federation(self) -> Self
Enable federation support
Sourcepub fn without_federation(self) -> Self
pub fn without_federation(self) -> Self
Disable federation support
Sourcepub fn query(
&self,
query_str: &str,
store: &dyn Store,
) -> Result<QueryResult, OxirsError>
pub fn query( &self, query_str: &str, store: &dyn Store, ) -> Result<QueryResult, OxirsError>
Execute a SPARQL query string against a store
Sourcepub fn execute_query(
&self,
query: &Query,
store: &dyn Store,
) -> Result<QueryResult, OxirsError>
pub fn execute_query( &self, query: &Query, store: &dyn Store, ) -> Result<QueryResult, OxirsError>
Execute a parsed Query object against a store
Sourcepub async fn query_async(
&self,
query_str: &str,
store: &dyn Store,
) -> Result<QueryResult, OxirsError>
pub async fn query_async( &self, query_str: &str, store: &dyn Store, ) -> Result<QueryResult, OxirsError>
Execute a SPARQL query string against a store (async version with federation support)
Sourcepub async fn execute_query_async(
&self,
query: &Query,
store: &dyn Store,
) -> Result<QueryResult, OxirsError>
pub async fn execute_query_async( &self, query: &Query, store: &dyn Store, ) -> Result<QueryResult, OxirsError>
Execute a parsed Query object against a store (async version)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryEngine
impl !RefUnwindSafe for QueryEngine
impl Send for QueryEngine
impl Sync for QueryEngine
impl Unpin for QueryEngine
impl !UnwindSafe for QueryEngine
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> 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