@comunica/actor-context-preprocess-set-defaults
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

Comunica Set Defaults Context Preprocess Actor

npm version

An Context Preprocess actor that will set default context values for query engines, such as the logger, timestamp, function arguments cache, ...

This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

Click here if you just want to query with Comunica.

Install

$ yarn add @comunica/actor-context-preprocess-set-defaults

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-context-preprocess-set-defaults/^1.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:context-preprocess/actors#set-defaults",
      "@type": "ActorContextPreprocessSetDefaults"
    }
  ]
}

Config Parameters

  • logger: The logger to set in the context, defaults to the void logger.

Package Sidebar

Install

npm i @comunica/actor-context-preprocess-set-defaults

Weekly Downloads

1,567

Version

4.0.2

License

MIT

Unpacked Size

25.9 kB

Total Files

12

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod