Re: test suite updates for inline data (VALUES)

Greg,

The syntax for VALUES matches () for the variable list with () in the 
data part:

so values04.rq:

SELECT ?s ?o1 ?o2
{
   ?s ?p1 ?o1 .
   ?s ?p2 ?o2 .
} VALUES ?o1 ?o2 {   ##
  ("Alan" UNDEF)
}

should be:

SELECT ?s ?o1 ?o2
{
   ?s ?p1 ?o1 .
   ?s ?p2 ?o2 .
} VALUES (?o1 ?o2) {  ##
  ("Alan" UNDEF)
}

values-06.rq:

  ?s ?p1 ?o1 .
} VALUES ?p1 {     ##
  (foaf:knows)
}

either

VALUES (?p1) {   ##
  (foaf:knows)
}

or

VALUES ?p1 {     ##
  foaf:knows
}

http://www.sparql.org/query-validator.html
is running the current grammar (inc the Turtle/SPARQL fixes)

	Andy


On 18/07/12 20:34, Gregory Williams wrote:
> I've gone through the test suite and added new tests to reflect the changes to the grammar replacing and generalizing BINDINGS with VALUES. The new tests are:
>
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#inline1
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#inline2
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values1
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values2
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values3
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values4
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values5
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values6
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values7
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values8
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service4a
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_35a
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_36a
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_38a
>
> All of those but the first two are replacements for existing tests, which should be failing according to the current grammar:
>
> # These are the old (approved) BINDINGS tests, replaced by :valuesN tests above
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b1
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b2
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b3
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b4
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b5
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b6
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b7
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#b8
>
> # This is an old (approved) federation test using BINDINGS, replaced by :service4a above
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service4
>
> # These are old (approved) BINDINGS syntax tests, replaced by :test_35a, :test_36a, and :test38_a above
> # :test_37 duplicates :test_35, so it is not fixed by a new test
> # :test_35, :test_36, and :test_38 have missing parens around the variable list, which is fixed in tests above
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_35
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_36
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_37
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_38
>
>
> In addition, I believe there are two other (non-BINDINGS) tests that should be failing. They are BIND scoping tests (not approved) that I think are wrong, but would appreciate someone confirming:
>
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_61
> http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_62
>
> thanks,
> .greg
>
>

Received on Wednesday, 18 July 2012 21:33:27 UTC