Skip to content

Latest commit

 

History

History

graph-explorer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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