@traqula/rules-sparql-1-2 1.0.7 → 1.1.1
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.
- package/README.md +27 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@traqula/rules-sparql-1-2)
|
|
4
4
|
|
|
5
|
-
Traqula rules SPARQL 1.2 contains additional rules required for creating a parser for SPARQL 1.2
|
|
5
|
+
Traqula rules SPARQL 1.2 contains additional grammar rules, tokens, and AST types required for creating a parser for [SPARQL 1.2](https://www.w3.org/TR/sparql12-query/#grammar), extending the [SPARQL 1.1 rules](../rules-sparql-1-1).
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -15,3 +15,29 @@ or
|
|
|
15
15
|
```bash
|
|
16
16
|
yarn add @traqula/rules-sparql-1-2
|
|
17
17
|
```
|
|
18
|
+
|
|
19
|
+
## What's added over SPARQL 1.1
|
|
20
|
+
|
|
21
|
+
This package adds grammar, lexer, and AST type definitions for SPARQL 1.2 features including:
|
|
22
|
+
|
|
23
|
+
- **Reified triples** (`<<...>>` syntax) and triple terms
|
|
24
|
+
- **Annotations** on triples
|
|
25
|
+
- **VERSION declaration** (`VERSION 1.2`)
|
|
26
|
+
- Updated expression, pattern, and term types
|
|
27
|
+
|
|
28
|
+
## Exports
|
|
29
|
+
|
|
30
|
+
| Export | Description |
|
|
31
|
+
|--------|-------------|
|
|
32
|
+
| `gram.*` | SPARQL 1.2 grammar rule patches and additions |
|
|
33
|
+
| `lex.*` | SPARQL 1.2 lexer tokens and `sparql12LexerBuilder` |
|
|
34
|
+
| `AstFactory` | Extended factory supporting SPARQL 1.2 AST nodes |
|
|
35
|
+
| `Sparql12types` | TypeScript types for all SPARQL 1.2 AST nodes |
|
|
36
|
+
| `completeParseContext`, `copyParseContext` | Context helpers (SPARQL 1.2 version) |
|
|
37
|
+
| `validators` | SPARQL 1.2 specific validation functions |
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
This package is primarily used by engine packages. For end-user parsing and generation, use [`@traqula/parser-sparql-1-2`](../../engines/parser-sparql-1-2) and [`@traqula/generator-sparql-1-2`](../../engines/generator-sparql-1-2).
|
|
42
|
+
|
|
43
|
+
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-2",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "Traqula Lexer and Grammar Rules for sparql 1.2",
|
|
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.
|
|
45
|
-
"@traqula/rules-sparql-1-1": "^1.
|
|
44
|
+
"@traqula/core": "^1.1.1",
|
|
45
|
+
"@traqula/rules-sparql-1-1": "^1.1.1"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "51799d80873e4f0fb0ca6ab778861f526d3a66d1"
|
|
48
48
|
}
|