trifid-plugin-yasgui

3.0.3 • Public • Published

trifid-plugin-yasgui

YASGUI for Trifid. This plugin does the static file hosting for all YASGUI files and renders an index page that points to the given endpoint URL.

Quick start

Install this Trifid plugin using:

npm install trifid-plugin-yasgui

And then add in the config.yaml file the following part:

plugins:
  # […] your other plugins
  yasgui:
    module: trifid-plugin-yasgui
    paths: # by default
      - /sparql
      - /sparql/
    config:
      endpointUrl: https://example.com/query
      urlShortener: https://example.com/api/v1/shorten
      # …other configuration fields

Configuration

The following options are supported:

  • endpointUrl: URL to the SPARQL endpoint which will be used in the YASGUI interface. If a path is given instead of a URL, it will be resolved using the absolute URL (default value: /query)
  • urlShortener: URL of an URL Shortener service. It will be called like this (assuming urlShortener is https://example.com/api/v1/shorten): https://example.com/api/v1/shorten?url=url-to-your-query and should return a short URL as plain text (https://example.com/s/x8Z1a). If urlShortener is not defined, the short URL feature will be disabled in YASGUI.
  • template: Path to an alternative template (default: views/yasgui.hbs)

Readme

Keywords

none

Package Sidebar

Install

npm i trifid-plugin-yasgui

Weekly Downloads

161

Version

3.0.3

License

MIT

Unpacked Size

10.5 kB

Total Files

6

Last publish

Collaborators

  • ludovicm67
  • zazuko-bot