Crate sophia_sparql
source ·Expand description
Example of use:
let dataset = SparqlWrapper(&dataset);
let query = SparqlQuery::parse("SELECT ?o { ?s a ?o }")?;
let bindings = dataset.query(&query)?.into_bindings();
for b in bindings {
let b = b?;
if let Some(o) = &b[0] {
println!("found {o}");
}
}
Structs
- Wrap any Sophia [
Dataset
] into a [SparqlDataset
], which can therefore be queried with SPARQL.