New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trifid-plugin-graph-explorer

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trifid-plugin-graph-explorer

Trifid Graph Explorer plugin

  • 0.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
2
Weekly downloads
 
Created
Source

trifid-plugin-graph-explorer

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

Usage

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/index.html)
  • acceptBlankNodes: Show blank nodes

Configuring Trifid to use trifid-plugin-graph-explorer is done the same way as trifid-plugin-yasgui. Since Trifid provides an example config using trifid-plugin-yasgui: config-sparql.json, here is how to configure trifid-plugin-graph-explorer by simply duplicating the YASGUI config parts:

  "yasgui": {
    "default": {
      "path": "/sparql"
    }
  },
+ "graphexplorer": {
+   "default": {
+     "path": "/graph-explorer",
+     "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"
+       }
+     ]
+   }
+ },
  "breakDown": {
    "handler": {},
    "handler.root": {},
    "handler.root.options": {},
    "handler.root.options.endpointUrl": "sparqlEndpointUrl",
    "handler.root.options.authentication": "sparqlEndpointAuthentication",
    "sparqlProxy": {},
    "sparqlProxy.default": {},
    "sparqlProxy.default.endpointUrl": "sparqlEndpointUrl",
    "sparqlProxy.default.authentication": "sparqlEndpointAuthentication",
    "yasgui": {},
    "yasgui.default": {},
    "yasgui.default.endpointUrl": [
      "sparqlProxy.default.path",
      "sparqlEndpointUrl"
    ],
+   "graphexplorer": {},
+   "graphexplorer.default": {},
+   "graphexplorer.default.endpointUrl": [
+     "sparqlProxy.default.path",
+     "sparqlEndpointUrl"
+   ]
  },
  "plugins": {
    "sparqlProxy": {
      "priority": 115,
      "module": "trifid-core:./plugins/middleware",
      "middleware": "sparql-proxy"
    },
    "yasgui": {
      "priority": 115,
      "module": "trifid-plugin-yasgui"
    },
+   "graphexplorer": {
+     "priority": 115,
+     "module": "trifid-plugin-graph-explorer"
+   }
  }
}

FAQs

Package last updated on 12 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc