@zazuko/trifid-renderer-entity

v0.3.8
Renders a RDF entity in Trifid

Trifid plugin to render entities

Quick start

Install this Trifid plugin using:

npm install @zazuko/trifid-renderer-entity

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

middlewares:
  # […]
  entity-renderer:
    module: "@zazuko/trifid-renderer-entity"
    config:
      # ignore some specific paths
      ignorePaths:
        - /query

Define your own css/template

Specify the path where the handlebars template is located

middlewares:
  # […]
  entity-renderer:
    module: "@zazuko/trifid-renderer-entity"
    config:
      path: file:./some-path/your-template.hbs

Rendering options

Under the hood, this plugin uses rdf-entity-webcomponent, that accepts the same configuration options.

Add any of these options under the config section

middlewares:
  # […]
  entity-renderer:
    module: "@zazuko/trifid-renderer-entity"
    config:
      compactMode: false
      technicalCues: true
      embedNamedNodes: false

Run an example instance

npm run example-instance
npm i @zazuko/[email protected]

Metadata

  • MIT
  • Whatever
  • Zazuko GmbH
  • released 12/8/2022

Downloads