trifid-plugin-graph-explorer

2.0.2 • Public • Published

trifid-plugin-graph-explorer

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

Quick start

Install this Trifid plugin using:

npm install trifid-plugin-graph-explorer

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

plugins:
  # […] your other plugins
  yasgui:
    module: trifid-plugin-graph-explorer
    paths: # by default
      - /graph-explorer
      - /graph-explorer/
    config:
      endpointUrl: https://example.com/query
      # …other configuration fields

Configuration

The following options are supported:

  • endpointUrl: URL to the SPARQL endpoint which will be used in the YASGUI interface
  • template: Path to an alternative template (default: views/graph-explorer.hbs)
  • acceptBlankNodes: Show blank nodes

Example:

config:
  acceptBlankNodes: false
  dataLabelProperty: rdfs:label | <http://schema.org/name>
  schemaLabelProperty: rdfs:label | <http://schema.org/name>
  language: en
  languages:
    - code: en
      label: English
    - code: de
      label: German
    - code: fr
      label: French
    - code: it
      label: Italian

Readme

Keywords

none

Package Sidebar

Install

npm i trifid-plugin-graph-explorer

Weekly Downloads

39

Version

2.0.2

License

MIT

Unpacked Size

8.77 kB

Total Files

7

Last publish

Collaborators

  • ktk
  • ludovicm67
  • zazuko-bot