Traqula
    Preparing search index...

    Module @traqula/parser-sparql-1-2

    Traqula logo

    A query language transpiler framework for JavaScript

    WARNING: V2 will come shortly and will have lots of breaking changes.

    Traqula parser engine for SPARQL 1.2

    Traqula Sparql 1.2 is a SPARQL 1.2 query parser for TypeScript. It is a grammar extension of Traqula engine-sparql-1-1

    npm install @traqula/parser-sparql-1-1
    

    or

    yarn add @traqula/parser-sparql-1-1
    

    Either through ESM import:

    import {Parser} from '';
    

    or CJS require:

    const Parser = require('').Parser;
    

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

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

    This parser is a simple grammar extension to the engine-sparql-1-1. As such, most, if not all, documentation of that parser holds for this one too.

    Classes

    Parser

    Interfaces

    SparqlContext

    Variables

    sparql12ParserBuilder