# @traqula/parser-sparql-1-2

> SPARQL 1.2 parser

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

## Install

```sh
npm install @traqula/parser-sparql-1-2
pnpm add @traqula/parser-sparql-1-2
yarn add @traqula/parser-sparql-1-2
bun add @traqula/parser-sparql-1-2
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2026-09-09 |
| First published | 2025-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Maintainers | rubensworks, jitsedesmet |

## Links

- npm: https://www.npmjs.com/package/@traqula/parser-sparql-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/parser-sparql-1-2

## Recent versions

- 1.3.0 (latest) — 2026-09-09
- 1.1.7-alpha.0 (next) — 2026-07-07
- 0.0.1-alpha.10 (canary) — 2025-08-18
- 1.2.1 — 2026-08-27
- 1.2.0 — 2026-08-05
- 1.1.8 — 2026-07-09
- 1.1.6 — 2026-06-19
- 1.1.5 — 2026-06-18
- 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
- 1.0.6 — 2026-04-09
- … 34 more at https://npm.io/package/@traqula/parser-sparql-1-2/versions

## README

<p align="center">
    <img alt="Traqula logo" width="70%" style="border-radius: 20px" src="../../assets/white-on-red/logo-white-on-red-lettered-social.png">
</p>

<p align="center">
  <strong>A query language transpiler framework for JavaScript</strong>
</p>

# Traqula parser engine for SPARQL 1.2

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

Traqula Sparql 1.2 is a [SPARQL 1.2](https://www.w3.org/TR/sparql12-query/#grammar) query parser for TypeScript.
It is a grammar extension of [Traqula parser-sparql-1-1](https://github.com/comunica/traqula/tree/main/engines/parser-sparql-1-1)

## Installation

```bash
npm install @traqula/parser-sparql-1-2
```

or

```bash
yarn add @traqula/parser-sparql-1-2
```

## Import

Either through ESM import:

```typescript
import { Parser } from '@traqula/parser-sparql-1-2';
```

_or_ CJS require:

```typescript
const Parser = require('@traqula/parser-sparql-1-2').Parser;
```

## Usage

This package contains a `Parser` that is able to parse SPARQL 1.2 queries:

```typescript
const parser = new Parser();
const abstractSyntaxTree = parser.parse('SELECT * { ?s ?p ?o }');
```

This parser is a simple grammar extension to the [parser-sparql-1-1](https://github.com/comunica/traqula/tree/main/engines/parser-sparql-1-1).
As such, most, if not all, documentation of that parser holds for this one too.

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