SPARQL.js
SPARQL.js copied to clipboard
Add type to all nodes
Suggestion by @AlexeyMz at https://github.com/RubenVerborgh/SPARQL.js/pull/80#issuecomment-516328846:
May I also suggest to add type constants to other node types as well?
Here are the current typings: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/d2d3a685fe949a4e938fe2913597e49d1e703ef5/types/sparqljs/index.d.ts
It would be great to make these changes:
- add
typeequal togroupingfor Grouping,orderingforOrdering,variableforVariableExpression; - change
updateTypeproperty totypeinInsertDeleteOperation(currently half operations useupdateTypeand the other one justtype).