Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

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

@grenik

Description

@grenik

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions