# @traqula/algebra-transformations-1-2

> Rules for converting SPARQL 1.2 Traqula AST to SPARQL 1.1 (=1.2) algebra

Latest version **1.3.1** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @traqula/algebra-transformations-1-2
pnpm add @traqula/algebra-transformations-1-2
yarn add @traqula/algebra-transformations-1-2
bun add @traqula/algebra-transformations-1-2
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2026-09-14 |
| First published | 2025-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 58.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Jitse De Smet |
| Maintainers | rubensworks, jitsedesmet |

## Links

- npm: https://www.npmjs.com/package/@traqula/algebra-transformations-1-2
- Repository: https://github.com/comunica/traqula
- Homepage: https://github.com/comunica/traqula#readme
- Issues: https://github.com/comunica/traqula/issues
- npm.io page: https://npm.io/package/@traqula/algebra-transformations-1-2

## Dependencies (3)

- [rdf-string](https://npm.io/package/rdf-string.md) ^2.0.0
- [@traqula/rules-sparql-1-2](https://npm.io/package/@traqula/rules-sparql-1-2.md) ^1.3.0
- [@traqula/algebra-transformations-1-1](https://npm.io/package/@traqula/algebra-transformations-1-1.md) ^1.3.1

## Recent versions

- 1.3.1 (latest) — 2026-09-14
- 1.1.7-alpha.0 (next) — 2026-07-07
- 1.3.0 — 2026-09-09
- 1.2.2 — 2026-09-02
- 1.2.1 — 2026-08-27
- 1.2.0 — 2026-08-05
- 1.1.8 — 2026-07-09
- 1.1.7 — 2026-07-07
- 1.1.6 — 2026-06-19
- 1.1.4 — 2026-06-10
- 1.1.3 — 2026-06-09
- 1.1.2 — 2026-06-05
- 1.1.1 — 2026-05-09
- 1.1.0 — 2026-04-29
- 1.0.7 — 2026-04-16
- … 30 more at https://npm.io/package/@traqula/algebra-transformations-1-2/versions

## README

# Traqula algebra transformations 1.2

[![npm version](https://badge.fury.io/js/@traqula%2Falgebra-transformations-1-2.svg)](https://www.npmjs.com/package/@traqula/algebra-transformations-1-2)

Traqula algebra transformations 1.2 contains transformation functions for translating the [Traqula AST for SPARQL 1.2](../rules-sparql-1-2) into SPARQL Algebra. These transformation definitions extend the [SPARQL 1.1 transformations](../algebra-transformations-1-1) with support for SPARQL 1.2 features such as reified triples and triple terms.

## Installation

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

or

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

## 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`](../../engines/algebra-sparql-1-2).
For end-user algebra transformation, use the engine package directly.

For guidance on extending transformations, see the documentation on [creating](../../docs/modifications/create-transformer.md) and [modifying](../../docs/modifications/modify-transformer.md) transformers.

---
_Source: https://npm.io/package/@traqula/algebra-transformations-1-2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
