You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Rob Vesse (JIRA)" <ji...@apache.org> on 2013/01/03 17:38:13 UTC

[jira] [Resolved] (JENA-375) varaible names may not contain a dot '.'

     [ https://issues.apache.org/jira/browse/JENA-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Vesse resolved JENA-375.
----------------------------

    Resolution: Invalid

You've linked a 18 month old version of the specification, please always refer to the latest versions of the specifications where relevant.  Though in fact there is no difference in this rule from the current specification - http://www.w3.org/TR/sparql11-query/#rVARNAME - to the old version you linked.

As Paul has already highlighted there is nothing in the grammar that permits dots in variable names, it does allow the Interpunct character (http://en.wikipedia.org/wiki/Interpunct) which is 0x00B7 which may be visually confused with a period in some fonts.

Closing as Invalid


                
> varaible names may not contain a dot '.'
> ----------------------------------------
>
>                 Key: JENA-375
>                 URL: https://issues.apache.org/jira/browse/JENA-375
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.7.4
>            Reporter: Claude Warren
>
> Variable names like ?foo.bar fail with a
> com.hp.hpl.jena.query.QueryParseException: Encountered " "." ". "" at line 1, column 32.
> Was expecting one of:
>     <IRIref> ...
>     <PNAME_NS> ...
>     <PNAME_LN> ...
>     <VAR1> ...
>     <VAR2> ...
>     "a" ...
>     "(" ...
>     "!" ...
>     "^" ...
>     
> 	at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.perform(ParserSPARQL11.java:102)
> 	at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:53)
> 	at com.hp.hpl.jena.sparql.lang.Parser.parse(Parser.java:37)
> 	at com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:156)
> 	at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:79)
> 	at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:52)
> 	at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:40)
> 	...
> Based on the SPARQL 1.1 Query Language (http://www.w3.org/TR/2011/WD-sparql11-query-20110512/#rVARNAME) I believe that a dot is acceptable in the variable name

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira