Makes bindings SPARQL 1.1 test cases run and pass

pull/10/head
Tpt 5 years ago
parent 41c738dc7a
commit 52461f3242
  1. 2
      lib/src/sparql/sparql_grammar.rustpeg
  2. 2
      lib/tests/sparql_test_cases.rs

@ -320,7 +320,7 @@ DataBlock -> GraphPattern = l:(InlineDataOneVar / InlineDataFull) {
InlineDataOneVar -> StaticBindings = var:Var _ '{' _ d:InlineDataOneVar_value* '}' {
StaticBindings::new(vec![var], d)
}
InlineDataOneVar_value -> Vec<Option<Term>> = t:DataBlockValue { vec![t] }
InlineDataOneVar_value -> Vec<Option<Term>> = t:DataBlockValue _ { vec![t] }
//[64]
InlineDataFull -> StaticBindings = '(' _ vars:InlineDataFull_var* _ ')' _ '{' _ val:InlineDataFull_values* '}' {

@ -88,7 +88,7 @@ fn sparql_w3c_query_evaluation_testsuite() -> Result<()> {
let manifest_11_urls = vec![
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bind/manifest.ttl",
//TODO "http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest.ttl",
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest.ttl",
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/construct/manifest.ttl",
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/exists/manifest.ttl",
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/manifest.ttl",

Loading…
Cancel
Save