A visitor class that constructs an RDF representation of SPARQL 1.2 queries
and updates from SPARQL syntax trees, using the SPARQL syntax vocabulary
(https://w3id.org/sparql-syntax#).
The reader emits RDF/JS quads describing the query structure: the query or
update root node is typed (e.g. sps:SelectQuery), variables become shared
blank nodes typed sps:Variable, graph patterns become typed element nodes
collected in rdf:Lists, and syntactic sugar (collections, blank node
property lists, reified triples, annotations) is desugared the way the
SPARQL 1.2 specification does.
A visitor class that constructs an RDF representation of SPARQL 1.2 queries and updates from SPARQL syntax trees, using the SPARQL syntax vocabulary (https://w3id.org/sparql-syntax#).
The reader emits RDF/JS quads describing the query structure: the query or update root node is typed (e.g. sps:SelectQuery), variables become shared blank nodes typed sps:Variable, graph patterns become typed element nodes collected in rdf:Lists, and syntactic sugar (collections, blank node property lists, reified triples, annotations) is desugared the way the SPARQL 1.2 specification does.