sage-widget
A simple Mithril widget to evaluate SPARQL queries using a SaGe server.
Installation
npm install sage-widget --save
Requirements
All following library must be loaded into the DOM beforehand.
The package.json
file in the example
folder contains the appropriate dependencies declaration.
Getting started
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>