A simple Mithril widget to evaluate SPARQL queries using a SaGe server.
npm install sage-widget --save
All following library must be loaded into the DOM beforehand.
- Bootstrap v4.4.1 or higher
- JQuery v3.4.1 or higher
- FontAwesome v5.12.0 or higher
- popper.js v1.16.0 or higher
- sage-client v2.0.1 or higher
The package.json
file in the example
folder contains the appropriate dependencies declaration.
The example
folder contains a full example of the sage-widget
used in a website.
To use the widget, you simply need to declare the widget with the <sage-widget>
HTML tag.
It *requires the urls attribute, which is a comma-separated list of all SaGe server that the widget will be able to query. At startup, the widget will automatically fetch the VoIDs descriptors of the servers and configure itself based on these descriptors.
<div id="sage-widget" urls="http://sage.univ-nantes.fr/"></div>