Crate sophia_sparql

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§

Bindings
ResultTerm
SparqlQuery
SparqlWrapper
Wrap any Sophia Dataset into a SparqlDataset, which can therefore be queried with SPARQL.

Enums§

SparqlWrapperError

Type Aliases§

BindingMap