From 52461f3242ae2a0e17635b3fe52cbd2621f95de1 Mon Sep 17 00:00:00 2001 From: Tpt Date: Fri, 20 Sep 2019 21:45:59 +0200 Subject: [PATCH] Makes bindings SPARQL 1.1 test cases run and pass --- lib/src/sparql/sparql_grammar.rustpeg | 2 +- lib/tests/sparql_test_cases.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/sparql/sparql_grammar.rustpeg b/lib/src/sparql/sparql_grammar.rustpeg index c7ef6294..9a78cd55 100644 --- a/lib/src/sparql/sparql_grammar.rustpeg +++ b/lib/src/sparql/sparql_grammar.rustpeg @@ -320,7 +320,7 @@ DataBlock -> GraphPattern = l:(InlineDataOneVar / InlineDataFull) { InlineDataOneVar -> StaticBindings = var:Var _ '{' _ d:InlineDataOneVar_value* '}' { StaticBindings::new(vec![var], d) } -InlineDataOneVar_value -> Vec> = t:DataBlockValue { vec![t] } +InlineDataOneVar_value -> Vec> = t:DataBlockValue _ { vec![t] } //[64] InlineDataFull -> StaticBindings = '(' _ vars:InlineDataFull_var* _ ')' _ '{' _ val:InlineDataFull_values* '}' { diff --git a/lib/tests/sparql_test_cases.rs b/lib/tests/sparql_test_cases.rs index a68bef2c..621c9cf4 100644 --- a/lib/tests/sparql_test_cases.rs +++ b/lib/tests/sparql_test_cases.rs @@ -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",