Menu

#53 SPARQL Parser: WHERE Not Optional With DESCRIBE

Current_SVN
open
nobody
SPARQL (15)
5
2008-03-30
2008-03-30
No

In SparqlParser.php parseDescribe function, line 415:

while(strtolower(current($this->tokens))!='from'& strtolower(current($this->tokens))!='where'){

This does not allow the WHERE keyword to be optional as per the W3C grammar. The line needs to be:

while(strtolower(current($this->tokens))!='from' & strtolower(current($this->tokens))!='where' & current($this->tokens)!='{'){

...or something more concise :D

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.