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

Clarify AST connection

Open iddan opened this issue 6 years ago • 2 comments

I think it should be documented how this package relates to SPARQL.js and whether it emits an AST (as it is a very common term for what I think algebra stands for in this context).

iddan avatar Mar 20 '19 15:03 iddan

SPARQL.js just gets used to convert SPARQL queries to javascript objects so they can be handled in the code.

The output is a JSON representation of the algebra described here https://www.w3.org/TR/sparql11-query/#sparqlDefinition , not sure if that counts as an AST or not

joachimvh avatar Mar 21 '19 10:03 joachimvh

According to this resource: https://www.slideshare.net/mobile/olafhartig/the-semantics-of-sparql SPARQL algebra differs from AST which as you written is the output of SPARQL.js

iddan avatar Mar 23 '19 12:03 iddan