Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/config-default.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^4.0.0/components/context.jsonld"
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^5.0.0/components/context.jsonld"
],
"import": [
"ccqs:config/config-default-v4-3-0.json"
"ccqs:config/config-default.json"
]
}
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,21 @@
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@comunica/config-query-sparql": "~4.4.0",
"@comunica/query-sparql": "~4.5.0",
"@comunica/runner": "^4.5.0",
"@comunica/config-query-sparql": "~5.0.0",
"@comunica/query-sparql": "~5.0.0",
"@comunica/runner": "~5.0.0",
"@rubensworks/solid-client-authn-browser": "^1.13.0",
"@turf/centroid": "^6.5.0",
"@turf/centroid": "^7.0.0",
"babel-loader": "^8.2.3",
"file-loader": "^6.0.0",
"json-loader": "^0.5.7",
"leaflet": "^1.7.1",
"minimist": "^1.2.5",
"n3": "^1.16.2",
"rdf-string": "^1.6.1",
"n3": "^2.0.0",
"rdf-string": "^2.0.1",
"relative-to-absolute-iri": "^1.0.6",
"sparqljs": "^3.7.3",
"@traqula/generator-sparql-1-2": "^1.0.0",
"@traqula/parser-sparql-1-2": "^1.0.0",
"string-replace-loader": "^3.1.0",
"webpack": "^5.69.0",
"webpack-cli": "^4.9.2",
Expand Down
8 changes: 4 additions & 4 deletions src/ldf-client-ui.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*! @license MIT ©2014–2016 Ruben Verborgh, Ghent University – imec */
// jQuery widget for Triple Pattern Fragments query execution

var SparqlParser = require('sparqljs').Parser;
var SparqlGenerator = require('sparqljs').Generator;
var SparqlGenerator = require('@traqula/generator-sparql-1-2').Generator;
var SparqlParser = require('@traqula/parser-sparql-1-2').Parser;
// This exports the webpacked jQuery.
window.jQuery = require('../deps/jquery-2.1.0.js');
var N3 = require('n3');
Expand Down Expand Up @@ -748,8 +748,8 @@ if (typeof global.process === 'undefined')
if (this.options.queryFormat === 'sparql') {
// Add pre-defined prefixes to query and remove duplicates
try {
const parsedQuery = new SparqlParser({ prefixes: this.options.prefixes, sparqlStar: true }).parse(query);
query = new SparqlGenerator({}).stringify(parsedQuery);
const parsedQuery = new SparqlParser({ prefixes: this.options.prefixes }).parse(query);
query = new SparqlGenerator({}).generate(parsedQuery);
}
catch {
// Ignore parsing errors, as they will be caught later by the query engine
Expand Down
Loading
Loading