quadstore-comunica
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

Comunica for quadstore

A SPARQL query engine for quadstore built on the Comunica framework and implementing the RDF/JS Query specification.

Practical examples of how to use the engine can be found in /examples. These examples complement the RDF/JS Query specification and Comunica's documentation. See also the quadstore and comunica repositories.

For further information, please refer to quadstore's repository.

Basic usage

import { MemoryLevel } from 'memory-level';
import { DataFactory } from 'rdf-data-factory';
import { Quadstore } from 'quadstore';
import { Engine } from 'quadstore-comunica';

const backend = new MemoryLevel();
const df = new DataFactory();
const store = new Quadstore({ backend, dataFactory: df });
const engine = new Engine(store);

await store.open();

const bindingsStream = await engine.queryBindings('SELECT * {?s ?p ?o}');
bindingsStream.on('data', binding => console.log(binding));

SPARQL coverage

We're using the rdf-test-suite package to validate our support for SPARQL queries against official test suites published by the W3C.

We're currently testing against the following manifests:

Readme

Keywords

none

Package Sidebar

Install

npm i quadstore-comunica

Weekly Downloads

638

Version

4.2.0

License

MIT

Unpacked Size

2.5 MB

Total Files

9

Last publish

Collaborators

  • jacoscaz