This package has been deprecated

Author message:

This package has been deprecated in favor of trifid-plugin-graph-explorer

trifid-plugin-ontodia

0.1.1 • Public • Published

trifid-plugin-ontodia

Ontodia for Trifid. This middleware does the static file hosting for all Ontodia 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)

Configuring Trifid to use trifid-plugin-ontodia 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-ontodia by simply duplicating the YASGUI config parts:

  "yasgui": {
    "default": {
      "path": "/sparql"
    }
  },
+ "ontodia": {
+   "default": {
+     "path": "/ontodia"
+   }
+ },
  "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"
    ],
+   "ontodia": {},
+   "ontodia.default": {},
+   "ontodia.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"
    },
+   "ontodia": {
+     "priority": 115,
+     "module": "trifid-plugin-ontodia"
+   }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i trifid-plugin-ontodia

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

5.35 kB

Total Files

4

Last publish

Collaborators

  • vhf