Property evaluates property paths with unknown graphs

pull/322/head
Tpt 2 years ago committed by Thomas Tanon
parent b6c9a5b429
commit d65e587756
  1. 2
      lib/src/sparql/dataset.rs
  2. 1162
      lib/src/sparql/eval.rs
  3. 2
      testsuite/tests/sparql.rs

@ -142,7 +142,7 @@ impl DatasetView {
self.store_encoded_quads_for_pattern(subject, predicate, object, None)
.filter(|quad| match quad {
Err(_) => true,
Ok(quad) => quad.graph_name != EncodedTerm::DefaultGraph,
Ok(quad) => !quad.graph_name.is_default_graph(),
}),
)
}

File diff suppressed because it is too large Load Diff

@ -73,8 +73,6 @@ fn sparql11_query_w3c_evaluation_testsuite() -> Result<()> {
vec![
//BNODE() scope is currently wrong
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/manifest#bnode01",
//Property path with unbound graph name are not supported yet
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#pp35",
//SERVICE name from a BGP
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service5",
],

Loading…
Cancel
Save