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.
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.