AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
489 stars 123 forks source link

Replace sparql-builder with Saxon-JS #54

Open namedgraph opened 3 years ago

namedgraph commented 3 years ago

Client-side query building started with using sparql-builder. While it can easily append new patterns to a query, it does not offer a mechanism for inserting and changing patterns. Converting the SPARQL query JSON to XML and transforming it with Saxon-JS is more flexible, as the faceted search implementation has shown. So we can just as well replace all the sparql-builder code with Saxon-JS and remove the dependency.

namedgraph commented 3 years ago

Or replace it with a direct SPARQL.js dependency, as we'll still need to convert SPARQL to/from JSON.