JSPM

  • Created
  • Published
  • Downloads 1565
  • Score
    100M100P100Q105281F
  • License MIT

Yet Another SPARQL GUI

Package Exports

  • @triply/yasgui

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@triply/yasgui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Nightly

The Yasgui nightly instance is a docker image, and accessible at https://nightly.yasgui.triply.cc The docker image is built on every push to the Yasgui repo. That build with install the latest Yasqe and Yasr version available.

Running locally

Command: npm run dev . Find the interface at localhost:4002

Stories

The YASGUI story feature allows for creating stories about your datasets.

Using the stories feature

When loading stories Use:

  <script type="text/javascript">
    window.onload = function () {
      Yasgui.stories()
    };
  </script>

Creating your story

Stories are created by adding a <query> tag to your html. You can configure the query with the following attributes:

Attribute Example value Usage
data-config http://yasgui.org/short/Byy9X6EVQ Used for reading the configuration of links created by the YASGUI share function
data-query-ref stories/q3.rq should point to a file containing a query. Used for keeping your html clean
endpoint http://www.dbpedia.org/sparql The endpoint on which query should take place
data-output geo Used to set which view is used to represent the query results
data-show-query true Used to show the query directly to the user

These attributes can also be used in a parent div which will cause the query tag to inherit the different attributes.

Examples

<query data-query-ref="stories/q1.rq" endpoint="http://dbpedia.org/sparql" data-output="geo"></query>
<query data-config="http://yasgui.org/short/Byy9X6EVQ" data-output="gallery"></query>

Configuring Yasgui Data stories