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.
npm install @traqula/rules-sparql-1-1-adjust
or
yarn add @traqula/rules-sparql-1-1-adjust
| Export | Description |
|---|---|
gram.* |
Grammar rules for the ADJUST built-in function |
lex.* |
Lexer token for the ADJUST keyword |
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.