@traqula/rules-sparql-1-1-adjust 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/@traqula%2Frules-sparql-1-1-adjust.svg)](https://www.npmjs.com/package/@traqula/rules-sparql-1-1-adjust)
4
4
 
5
- Traqula rules SPARQL 1.1 + ADJUST contains additional rules required for creating a parser for
6
- SPARQL 1.1 + ADJUST function from the SPARQL 1.1 rules.
5
+ Traqula rules SPARQL 1.1 + ADJUST contains additional grammar rules and lexer tokens for the [ADJUST built-in function](https://github.com/w3c/sparql-dev/blob/main/SEP/SEP-0002/sep-0002.md), extending the [SPARQL 1.1 rules](../rules-sparql-1-1).
7
6
 
8
7
  ## Installation
9
8
 
@@ -16,3 +15,21 @@ or
16
15
  ```bash
17
16
  yarn add @traqula/rules-sparql-1-1-adjust
18
17
  ```
18
+
19
+ ## Exports
20
+
21
+ | Export | Description |
22
+ |--------|-------------|
23
+ | `gram.*` | Grammar rules for the ADJUST built-in function |
24
+ | `lex.*` | Lexer token for the `ADJUST` keyword |
25
+
26
+ ## Usage
27
+
28
+ This package is used by [`@traqula/parser-sparql-1-1-adjust`](../../engines/parser-sparql-1-1-adjust).
29
+ The ADJUST function allows adjusting date/time values in SPARQL queries:
30
+
31
+ ```sparql
32
+ SELECT (ADJUST(?date, "-PT10H"^^xsd:dayTimeDuration) AS ?adjusted) WHERE { ... }
33
+ ```
34
+
35
+ For guidance on extending the grammar, see the [guidelines for dependent projects](../../docs/guidelines.md).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traqula/rules-sparql-1-1-adjust",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
5
5
  "description": "Traqula Lexer and Grammar Rules for sparql 1.1-ADJUST",
6
6
  "lsd:module": true,
7
7
  "license": "MIT",
@@ -41,8 +41,8 @@
41
41
  "build:cjs": "node \"../../node_modules/typescript/bin/tsc\" -b tsconfig.cjs.json"
42
42
  },
43
43
  "dependencies": {
44
- "@traqula/core": "^1.1.0",
45
- "@traqula/rules-sparql-1-1": "^1.1.0"
44
+ "@traqula/core": "^1.1.1",
45
+ "@traqula/rules-sparql-1-1": "^1.1.2"
46
46
  },
47
- "gitHead": "ecbed266b9247b7600d4d7185a98b2ead74e33b9"
47
+ "gitHead": "4a8a40e902755a39eab0d9f4f144e2e46d44b4d2"
48
48
  }