The test you refer to covers of behaviour of the grammar that was considered 
ambiguous and error prone by the 1.1 working group and so the grammar was 
changed for 1.1

 

Jena runs in 1.1 Mode by default hence this query is considered an error

 

PREFIX :     <http://example.org/ns#>

PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>

 

# DOT is part of the decimal.

SELECT * { :x ?p 456. . }

 

In 1.0 a decimal given as a plain literal was allowed to have a trailing 
decimal point without any digits afterwards whereas in 1.1 a decimal given as a 
plain literal must have digits after the decimal point. If you parse this query 
in 1.0 Mode and it will be accepted.

 

The entire 1.0 and 1.1 test suites are run as part of every Jena build

 

Rob

 

From: Jérémy Coulon <[email protected]>
Reply-To: <[email protected]>
Date: Tuesday, 19 July 2016 14:37
To: <[email protected]>
Subject: QueryParseException

 

Hi,

I am trying run the official SPARQL 1.0 test suite on Jena.

One of the test is failing with the following error message:
Encountered " "." ". "" at line 5, column 23.

The command I am using:
./sparql --data=sparql10-test-suite/data-r2/basic/data-4.ttl  
--query=sparql10-test-suite/data-r2/basic/term-7.rq

Note that you can find all SPARQL 1.0 tests suite here:
https://www.w3.org/2001/sw/DataAccess/tests/README

Side question: Are the SPARQL 1.0 and 1.1 tests suites regularly tested on Jena 
?

Thank you for your help.

Reply via email to