Options
All
  • Public
  • Public/Protected
  • All
Menu

Module actor-optimize-rule-pattern-restriction

Comunica Pattern Restriction Optimize Rule Actor

npm version

A comunica actor that restricts rules to only those needed to produce data matching a particular pattern

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-rule-pattern-restriction

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-optimize-rule-pattern-restriction/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": TODO,
      "@type": "ActorOptimizeRulePatternRestriction"
    }
  ]
}

Config Parameters

TODO

Index

Functions

matchPatternMappings

  • matchPatternMappings(pattern: RDF.Quad | Algebra.Pattern, quad: Algebra.Pattern | RDF.Quad): boolean
  • Check if the base quad matches against all terms in the pattern.

    Each term in the quad must satisfy the following:

    • The pattern term is a variable, and all other variables with the same value - map to the same terms in the quad
    • Both the quad term and pattern term are quads - and they satisfy the same conditions
    • The pattern and quad terms are equal and not variables or quads

    Parameters

    • pattern: RDF.Quad | Algebra.Pattern

      A pattern - possibly containing variables

    • quad: Algebra.Pattern | RDF.Quad

      A quad - possibly containing variables

    Returns boolean

Generated using TypeDoc