npm.io
1.5.0-alpha.3 • Published 1 week ago

@traqula/algebra-transformations-1-2

Licence
MIT
Version
1.5.0-alpha.3
Deps
3
Size
59 kB
Vulns
0
Weekly
0
Stars
28

Traqula algebra transformations 1.2

npm version

Traqula algebra transformations 1.2 contains transformation functions for translating the Traqula AST for SPARQL 1.2 into SPARQL Algebra. These transformation definitions extend the SPARQL 1.1 transformations with support for SPARQL 1.2 features such as reified triples and triple terms.

Installation

npm install @traqula/algebra-transformations-1-2

or

yarn add @traqula/algebra-transformations-1-2

Minor versions keep the name, signature and behavior of this package's rules, but can add rules or change how existing rules are implemented, such as which rules they call. This only affects projects that patch, delete or individually register rules. See versioning.

What's added over SPARQL 1.1 transformations

  • Handling of reified triple and triple term nodes in AST-to-algebra conversion
  • Updated inScopeVariables to account for SPARQL 1.2 constructs
  • Updated createAlgebraContext for SPARQL 1.2

Usage

This package is primarily used by @traqula/algebra-sparql-1-2. For end-user algebra transformation, use the engine package directly.

For guidance on extending transformations, see the documentation on creating and modifying transformers.