/// This is similar to `prepare_query`, but useful if a SPARQL query has already been parsed, which is the case when building `ServiceHandler`s for federated queries with `SERVICE` clauses. For examples, look in the tests.
/// This is similar to `prepare_query`, but useful if a SPARQL query has already been parsed, which is the case when building `ServiceHandler`s for federated queries with `SERVICE` clauses. For examples, look in the tests.
/// Prepares a [SPARQL 1.1 query](https://www.w3.org/TR/sparql11-query/) and returns an object that could be used to execute it.
/// Prepares a [SPARQL 1.1 query](https://www.w3.org/TR/sparql11-query/) and returns an object that could be used to execute it.
///
///
/// See `MemoryStore` for a usage example.
/// See `MemoryStore` for a usage example.
pubfnprepare_query<'a>(
pubfnprepare_query(
&'aself,
&self,
query: &str,
query: implTryInto<Query,Error=implInto<Error>>,
options: QueryOptions<'_>,
options: QueryOptions,
)-> Result<SledPreparedQuery>{
)-> Result<SledPreparedQuery>{
Ok(SledPreparedQuery(SimplePreparedQuery::new(
Ok(SledPreparedQuery(SimplePreparedQuery::new(
(*self).clone(),
(*self).clone(),
@ -100,10 +100,10 @@ impl SledStore {
}
}
/// This is similar to `prepare_query`, but useful if a SPARQL query has already been parsed, which is the case when building `ServiceHandler`s for federated queries with `SERVICE` clauses. For examples, look in the tests.
/// This is similar to `prepare_query`, but useful if a SPARQL query has already been parsed, which is the case when building `ServiceHandler`s for federated queries with `SERVICE` clauses. For examples, look in the tests.