Claude Warren created JENA-375:
----------------------------------

             Summary: 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

Reply via email to