SPARQL.js icon indicating copy to clipboard operation
SPARQL.js copied to clipboard

W3C test: cannot parse CONSTRUCT { [ <s> ?s; <p> ?p; <o> ?o ] . }

Open grenik opened this issue 3 years ago • 0 comments

Test manifest (including test data and expected results) is here.

The query alone can be found here:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX  foaf:       <http://xmlns.com/foaf/0.1/>

CONSTRUCT { [ rdf:subject ?s ;
              rdf:predicate ?p ;
              rdf:object ?o ] . }
WHERE {
  ?s ?p ?o .
}

Error:

TypeError: Cannot read property 'map' of undefined
        at Object.anonymous (/node_modules/sparqljs/lib/SparqlParser.js:454:29)
        at Parser.parse (/node_modules/sparqljs/lib/SparqlParser.js:787:36)
        at Parser.parser.parse [as parse] (/node_modules/sparqljs/sparql.js:36:37)

grenik avatar Dec 14 '22 17:12 grenik