@comunica/actor-optimize-query-operation-prune-empty-source-operations
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

Comunica Prune Empty Source Operations Optimize Query Operation Actor

npm version

An Optimize Query Operation actor that removes operations from the query plan that are guaranteed to produce empty results. This actor relies on source-based cardinality metadata, or may optionally make use of ASK queries if the source supports it.

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-optimize-query-operation-prune-empty-source-operations

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-optimize-query-operation-prune-empty-source-operations/^1.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:optimize-query-operation/actors#prune-empty-source-operations",
      "@type": "ActorOptimizeQueryOperationPruneEmptySourceOperations",
      "useAskIfSupported": false
    }
  ]
}

Config Parameters

  • useAskIfSupported: If true, ASK queries will be sent to the source instead of COUNT queries to check emptiness for patterns. This will only be done for sources that accept ASK queries. (defaults to false)

Package Sidebar

Install

npm i @comunica/actor-optimize-query-operation-prune-empty-source-operations

Weekly Downloads

1,259

Version

4.0.2

License

MIT

Unpacked Size

48.1 kB

Total Files

12

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod