@traqula/rules-sparql-1-1-adjust
v1.1.1
Published
Traqula Lexer and Grammar Rules for sparql 1.1-ADJUST
Readme
Traqula Rules SPARQL 1.1 + ADJUST package
Traqula rules SPARQL 1.1 + ADJUST contains additional grammar rules and lexer tokens for the ADJUST built-in function, extending the SPARQL 1.1 rules.
Installation
npm install @traqula/rules-sparql-1-1-adjustor
yarn add @traqula/rules-sparql-1-1-adjustExports
| Export | Description |
|--------|-------------|
| gram.* | Grammar rules for the ADJUST built-in function |
| lex.* | Lexer token for the ADJUST keyword |
Usage
This package is used by @traqula/parser-sparql-1-1-adjust.
The ADJUST function allows adjusting date/time values in SPARQL queries:
SELECT (ADJUST(?date, "-PT10H"^^xsd:dayTimeDuration) AS ?adjusted) WHERE { ... }For guidance on extending the grammar, see the guidelines for dependent projects.
