comunica / jQuery-Widget.js

🖼 A jQuery widget to query heterogeneous interfaces using Comunica SPARQL
http://query.linkeddatafragments.org/
MIT License
18 stars 35 forks source link

Add back Buffer global polyfill for jsonparser #124

Closed surilindur closed 2 years ago

surilindur commented 2 years ago

The removal of all Node polyfills from Webpack config seems to have broken queries against SPARQL endpoints, due to the jsonparser library using the Buffer global somewhat extensively. Here are the changes to:

Querying SPARQL endpoints seems to work now again, and the other queries also still appear to work. There is an error displayed that says "No valid SPARQL query results" even when the query does produce results, but that one appears to be tracked separately and does not appear to affect the functionality.