# rdf-store-sparql

> SPARQL RDF Store that follows the RDF/JS Store interface specification

Latest version **3.0.0** (published 2024-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install rdf-store-sparql
pnpm add rdf-store-sparql
yarn add rdf-store-sparql
bun add rdf-store-sparql
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-06-16 |
| First published | 2015-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Thomas Bergwinkl |
| Maintainers | nicola, bergos |
| Keywords | rdf, rdfjs, rdf-ext, sparql, store |

## Links

- npm: https://www.npmjs.com/package/rdf-store-sparql
- Repository: https://github.com/rdf-ext/rdf-store-sparql
- Issues: https://github.com/rdf-ext/rdf-store-sparql/issues
- npm.io page: https://npm.io/package/rdf-store-sparql

## Dependencies (7)

- [events](https://npm.io/package/events.md) ^3.3.0
- [rdf-ext](https://npm.io/package/rdf-ext.md) ^2.5.1
- [promise-queue](https://npm.io/package/promise-queue.md) ^2.2.5
- [rdf-utils-stream](https://npm.io/package/rdf-utils-stream.md) ^1.0.0
- [@rdfjs/to-ntriples](https://npm.io/package/@rdfjs/to-ntriples.md) ^3.0.1
- [sparql-http-client](https://npm.io/package/sparql-http-client.md) ^3.0.0
- [rdf-transform-triple-to-quad](https://npm.io/package/rdf-transform-triple-to-quad.md) ^2.0.1

## Recent versions

- 3.0.0 (latest) — 2024-06-16
- 0.3.0-rc1 (unstable) — 2015-11-10
- 2.0.0 — 2018-09-19
- 1.0.0 — 2017-07-29
- 0.3.1 — 2016-07-19
- 0.3.0 — 2016-01-14
- 0.1.2 — 2015-08-22
- 0.1.1 — 2015-08-21
- 0.1.0 — 2015-08-21

## README

# rdf-store-sparql

SPARQL RDF Store that follows the [RDF/JS Store interface](http://rdf.js.org/stream-spec/#store-interface) specification.
This store implementation allows accessing graphs using the [SPARQL 1.1 Protocol](http://www.w3.org/TR/sparql11-protocol/).
This requires an external triple store.

## Install

```bash
npm install --save rdf-store-sparql
```

## Usage

The constructor requires a `endpointUrl` parameter.
It must be a string pointing to the SPARQL endpoint.
Optional an `options` parameter can be given.

The `options` object can have the following properties:

- `updateUrl`: SPARQL endpoint URL for write operations.
  (Default `endpointUrl` parameter)
- `factory`: RDFJS data factory implementation.
  (Default the reference implementation `@rdfjs/data-model`)
- `maxQueryLength`: Max length of the `import` and `removeMatches` query.
  Multiple queries in sequence will be used if when `maxQueryLength` is reached.
  (Default `Infinity`)

---
_Source: https://npm.io/package/rdf-store-sparql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
