Linked Data Fragments jQuery Widget
This jQuery widget is a browser-based user interface to the Linked Data Fragments client. It allows users to execute SPARQL queries over one or multiple datasets exposed through a Triple Pattern Fragments interface.
Using the code
npm installto fetch dependencies and build the browser version of the client code.
- Place the files from this repository on a local Web server (for instance, by starting a tool such as [https://github.com/ddfreyne/adsf] in the root folder).
index.htmlin the browser through your Web server (typically
- Edit datasources in
settings.jsonand queries in the
queriesfolder, and run
queries-to-jsonto compile both of them in a single JSON file.
./build-minifiedto generate a production version in the
How the browser client works
The original ldf-client library is written for the Node.js environment. The browserify library makes it compatible with browsers.
browser.js makes the Node.js library ldf-client available in global scope as
This script is compiled with its dependencies to
npm run postinstall.
You can use the resulting
ldf-client-browser.js in your browser applications; it is independent of the jQuery UI widget.
The Linked Data Fragments jQuery Widget is written by Ruben Verborgh.