trifid-plugin-graph-explorer
v3.3.0
Published
Trifid Graph Explorer plugin
Readme
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-explorerAnd 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 fieldsConfiguration
The following options are supported:
endpointUrl: URL to the SPARQL endpoint which will be used in the YASGUI interfacetemplate: Path to an alternative template (default:views/graph-explorer.hbs)acceptBlankNodes: Show blank nodestitle: Title of the Graph Explorer pagesettingsPreset: SPARQL dialect preset to use (default:OWLStatsSettings)
Settings presets
Graph Explorer ships several presets that tune the SPARQL queries the data provider issues, so the right one depends on the endpoint software and on how the data is modelled. The supported values are:
OWLStatsSettings(default): OWL/RDFS with class countsOWLRDFSSettings: OWL/RDFS without class countsRDFSettings: plain RDF, without OWL/RDFS specific assumptionsDBPediaSettings: tuned for DBpediaWikidataSettings: tuned for WikidataQLeverSettings: tuned for QLever endpoints
Trifid rejects any other value at startup, so a typo surfaces immediately instead of silently falling back to the default.
config:
endpointUrl: https://example.com/query
settingsPreset: QLeverSettingsExample:
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