@traqula/rules-sparql-1-2 0.0.2 → 0.0.4

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 CHANGED
@@ -1,7 +1,5 @@
1
1
  # Traqula Rules SPARQL 1.2 package
2
2
 
3
- **WARNING:** V2 will come shortly and will have lots of breaking changes.
4
-
5
3
  Traqula rules SPARQL 1.2 contains additional rules required for creating a parser for SPARQL 1.2 from the SPARQL 1.1 rules.
6
4
 
7
5
  ## Installation
package/lib/grammar.d.ts CHANGED
@@ -19,52 +19,52 @@ export declare const versionDecl: SparqlRule<'versionDecl', ContextDefinitionVer
19
19
  export declare const versionSpecifier: SparqlGrammarRule<'versionSpecifier', Wrap<string>>;
20
20
  /**
21
21
  * OVERRIDING RULE {@link S11.prologue}
22
- * [[8]](https://www.w3.org/TR/sparql12-query/#rVersionSpecifier)
22
+ * [[4]](https://www.w3.org/TR/sparql12-query/#rPrologue)
23
23
  */
24
24
  export declare const prologue: SparqlRule<'prologue', ContextDefinition[]>;
25
25
  /**
26
26
  * [[58]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleBlock) Used by triplesSameSubject
27
27
  */
28
- export declare const reifiedTripleBlock: T11.SparqlGrammarRule<"reifiedTripleBlock", T11.BasicGraphPattern, undefined>;
28
+ export declare const reifiedTripleBlock: SparqlGrammarRule<"reifiedTripleBlock", T11.BasicGraphPattern>;
29
29
  /**
30
30
  * [[59]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleBlockPath) Used by TriplesSameSubjectPath
31
31
  */
32
- export declare const reifiedTripleBlockPath: T11.SparqlGrammarRule<"reifiedTripleBlockPath", T11.BasicGraphPattern, undefined>;
32
+ export declare const reifiedTripleBlockPath: SparqlGrammarRule<"reifiedTripleBlockPath", T11.BasicGraphPattern>;
33
33
  /**
34
34
  * OVERRIDING RULE: {@link S11.dataBlockValue}.
35
35
  * [[69]](https://www.w3.org/TR/sparql12-query/#rDataBlockValue)
36
36
  */
37
- export declare const dataBlockValue: T11.SparqlGrammarRule<'dataBlockValue', RuleDefReturn<typeof S11.dataBlockValue> | TermTriple>;
37
+ export declare const dataBlockValue: SparqlGrammarRule<'dataBlockValue', RuleDefReturn<typeof S11.dataBlockValue> | TermTriple>;
38
38
  /**
39
39
  * [[70]](https://www.w3.org/TR/sparql12-query/#rReifier)
40
40
  */
41
- export declare const reifier: T11.SparqlGrammarRule<'reifier', RuleDefReturn<typeof varOrReifierId>>;
41
+ export declare const reifier: SparqlGrammarRule<'reifier', Wrap<RuleDefReturn<typeof varOrReifierId>>>;
42
42
  /**
43
43
  * [[71]](https://www.w3.org/TR/sparql12-query/#rVarOrReifierId)
44
44
  */
45
- export declare const varOrReifierId: T11.SparqlGrammarRule<'varOrReifierId', TermVariable | TermIri | TermBlank>;
45
+ export declare const varOrReifierId: SparqlGrammarRule<'varOrReifierId', TermVariable | TermIri | TermBlank>;
46
46
  /**
47
47
  * OVERRIDING RULE {@link S11.triplesSameSubject}
48
48
  * [[81]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubject)
49
49
  */
50
- export declare const triplesSameSubject: T11.SparqlGrammarRule<"triplesSameSubject", T11.BasicGraphPattern, undefined>;
50
+ export declare const triplesSameSubject: SparqlGrammarRule<"triplesSameSubject", T11.BasicGraphPattern>;
51
51
  /**
52
52
  * OVERRIDING RULE {@link S11.triplesSameSubjectPath}
53
53
  * [[87]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubjectPath)
54
54
  */
55
- export declare const triplesSameSubjectPath: T11.SparqlGrammarRule<"triplesSameSubjectPath", T11.BasicGraphPattern, undefined>;
55
+ export declare const triplesSameSubjectPath: SparqlGrammarRule<"triplesSameSubjectPath", T11.BasicGraphPattern>;
56
56
  /**
57
57
  * OVERRIDING RULE: {@link S11.object}.
58
- * [[84]](https://www.w3.org/TR/sparql12-query/#rObject) Used by ObjectList
58
+ * [[86]](https://www.w3.org/TR/sparql12-query/#rObject) Used by ObjectList
59
59
  */
60
- export declare const object: SparqlGrammarRule<"object", TripleNesting, Pick<TripleNesting, "subject" | "predicate">>;
60
+ export declare const object: SparqlGrammarRule<"object", TripleNesting, [GraphNode, T11.TermIriFull | T11.TermIriPrefixed | T11.TermVariable | T11.PropertyPathChain | T11.PathModified | T11.PathNegated]>;
61
61
  /**
62
62
  * OVERRIDING RULE: {@link S11.objectPath}.
63
- * [[91]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubjectPath) Used by ObjectListPath
63
+ * [[87]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubjectPath) Used by ObjectListPath
64
64
  */
65
- export declare const objectPath: SparqlGrammarRule<"objectPath", TripleNesting, Pick<TripleNesting, "subject" | "predicate">>;
65
+ export declare const objectPath: SparqlGrammarRule<"objectPath", TripleNesting, [GraphNode, T11.TermIriFull | T11.TermIriPrefixed | T11.TermVariable | T11.PropertyPathChain | T11.PathModified | T11.PathNegated]>;
66
66
  /**
67
- * [[107]](https://www.w3.org/TR/sparql12-query/#rAnnotationPath)
67
+ * [[109]](https://www.w3.org/TR/sparql12-query/#rAnnotationPath)
68
68
  */
69
69
  export declare const annotationPath: SparqlRule<"annotationPath", Annotation[]>;
70
70
  /**
@@ -77,7 +77,7 @@ export declare const annotation: SparqlRule<"annotation", Annotation[]>;
77
77
  export declare const annotationBlockPath: SparqlGrammarRule<"annotationBlockPath", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
78
78
  triples: TripleNesting[];
79
79
  identifier: TermBlank | TermVariable | TermIri;
80
- }>, T11.TermIri | T11.TermVariable | T11.TermBlank> & SparqlGeneratorRule<"annotationBlockPath", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
80
+ }>, [T11.TermIri | T11.TermVariable | T11.TermBlank]> & SparqlGeneratorRule<"annotationBlockPath", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
81
81
  triples: TripleNesting[];
82
82
  identifier: TermBlank | TermVariable | TermIri;
83
83
  }>>;
@@ -87,13 +87,13 @@ export declare const annotationBlockPath: SparqlGrammarRule<"annotationBlockPath
87
87
  export declare const annotationBlock: SparqlGrammarRule<"annotationBlock", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
88
88
  triples: TripleNesting[];
89
89
  identifier: TermBlank | TermVariable | TermIri;
90
- }>, T11.TermIri | T11.TermVariable | T11.TermBlank> & SparqlGeneratorRule<"annotationBlock", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
90
+ }>, [T11.TermIri | T11.TermVariable | T11.TermBlank]> & SparqlGeneratorRule<"annotationBlock", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
91
91
  triples: TripleNesting[];
92
92
  identifier: TermBlank | TermVariable | TermIri;
93
93
  }>>;
94
94
  /**
95
95
  * OVERRIDING RULE: {@link S11.graphNode}.
96
- * [[111]](https://www.w3.org/TR/sparql12-query/#rGraphNode)
96
+ * [[113]](https://www.w3.org/TR/sparql12-query/#rGraphNode)
97
97
  */
98
98
  export declare const graphNode: SparqlGrammarRule<'graphNode', GraphNode>;
99
99
  /**
@@ -107,29 +107,29 @@ export declare const graphNodePath: SparqlRule<'graphNodePath', GraphNode>;
107
107
  */
108
108
  export declare const varOrTerm: SparqlGrammarRule<'varOrTerm', Term>;
109
109
  /**
110
- * [[114]](https://www.w3.org/TR/sparql12-query/#rReifiedTriple)
110
+ * [[116]](https://www.w3.org/TR/sparql12-query/#rReifiedTriple)
111
111
  */
112
112
  export declare const reifiedTriple: SparqlRule<'reifiedTriple', TripleCollectionReifiedTriple>;
113
113
  /**
114
- * [[115]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleSubject)
114
+ * [[117]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleSubject)
115
115
  */
116
- export declare const reifiedTripleSubject: T11.SparqlGrammarRule<'reifiedTripleSubject', Term | TripleCollectionReifiedTriple>;
116
+ export declare const reifiedTripleSubject: SparqlGrammarRule<'reifiedTripleSubject', Term | TripleCollectionReifiedTriple>;
117
117
  /**
118
- * [[116]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleObject)
118
+ * [[118]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleObject)
119
119
  */
120
- export declare const reifiedTripleObject: T11.SparqlGrammarRule<'reifiedTripleObject', RuleDefReturn<typeof reifiedTripleSubject>>;
120
+ export declare const reifiedTripleObject: SparqlGrammarRule<'reifiedTripleObject', RuleDefReturn<typeof reifiedTripleSubject>>;
121
121
  /**
122
- * [[117]](https://www.w3.org/TR/sparql12-query/#rTripleTerm)
122
+ * [[119]](https://www.w3.org/TR/sparql12-query/#rTripleTerm)
123
123
  */
124
124
  export declare const tripleTerm: SparqlRule<'tripleTerm', TermTriple>;
125
125
  /**
126
126
  * [[120]](https://www.w3.org/TR/sparql12-query/#rTripleTermSubject)
127
127
  */
128
- export declare const tripleTermSubject: T11.SparqlGrammarRule<'tripleTermSubject', TermVariable | TermIri | TermLiteral | TermBlank | TermTriple>;
128
+ export declare const tripleTermSubject: SparqlGrammarRule<'tripleTermSubject', TermVariable | TermIri | TermLiteral | TermBlank | TermTriple>;
129
129
  /**
130
130
  * [[121]](https://www.w3.org/TR/sparql12-query/#rTripleTermObject)
131
131
  */
132
- export declare const tripleTermObject: T11.SparqlGrammarRule<'tripleTermObject', RuleDefReturn<typeof tripleTermSubject>>;
132
+ export declare const tripleTermObject: SparqlGrammarRule<'tripleTermObject', RuleDefReturn<typeof tripleTermSubject>>;
133
133
  /**
134
134
  * [[122]](https://www.w3.org/TR/sparql12-query/#rTripleTermData)
135
135
  */
@@ -137,28 +137,28 @@ export declare const tripleTermData: SparqlGrammarRule<'tripleTermData', TermTri
137
137
  /**
138
138
  * [[123]](https://www.w3.org/TR/sparql12-query/#rTripleTermDataSubject)
139
139
  */
140
- export declare const tripleTermDataSubject: T11.SparqlGrammarRule<'tripleTermDataSubject', TermIri | TermLiteral | TermTriple>;
140
+ export declare const tripleTermDataSubject: SparqlGrammarRule<'tripleTermDataSubject', TermIri | TermLiteral | TermTriple>;
141
141
  /**
142
142
  * [[124]](https://www.w3.org/TR/sparql12-query/#rTripleTermDataObject)
143
143
  */
144
- export declare const tripleTermDataObject: T11.SparqlGrammarRule<'tripleTermDataObject', RuleDefReturn<typeof tripleTermDataSubject>>;
144
+ export declare const tripleTermDataObject: SparqlGrammarRule<'tripleTermDataObject', RuleDefReturn<typeof tripleTermDataSubject>>;
145
145
  /**
146
146
  * OVERRIDING RULE: {@link S11.primaryExpression}.
147
147
  * [[136]](https://www.w3.org/TR/sparql12-query/#rPrimaryExpression)
148
148
  */
149
- export declare const primaryExpression: T11.SparqlGrammarRule<'primaryExpression', Expression>;
149
+ export declare const primaryExpression: SparqlGrammarRule<'primaryExpression', Expression>;
150
150
  /**
151
- * [[135]](https://www.w3.org/TR/sparql12-query/#rExprTripleTerm)
151
+ * [[137]](https://www.w3.org/TR/sparql12-query/#rExprTripleTerm)
152
152
  */
153
153
  export declare const exprTripleTerm: SparqlGrammarRule<'exprTripleTerm', TermTriple>;
154
154
  /**
155
155
  * [[138]](https://www.w3.org/TR/sparql12-query/#rExprTripleTermSubject)
156
156
  */
157
- export declare const exprTripleTermSubject: T11.SparqlGrammarRule<'exprTripleTermSubject', TermIri | TermVariable | TermLiteral | TermTriple>;
157
+ export declare const exprTripleTermSubject: SparqlGrammarRule<'exprTripleTermSubject', TermIri | TermVariable | TermLiteral | TermTriple>;
158
158
  /**
159
159
  * [[139]](https://www.w3.org/TR/sparql12-query/#rExprTripleTermObject)
160
160
  */
161
- export declare const exprTripleTermObject: T11.SparqlGrammarRule<'exprTripleTermObject', RuleDefReturn<typeof exprTripleTermSubject> | TermTriple>;
161
+ export declare const exprTripleTermObject: SparqlGrammarRule<'exprTripleTermObject', RuleDefReturn<typeof exprTripleTermSubject> | TermTriple>;
162
162
  export declare const builtinLangDir: S11.RuleDefExpressionFunctionX<"builtInLangdir", [T11.Expression]>;
163
163
  export declare const builtinLangStrDir: S11.RuleDefExpressionFunctionX<"builtInStrLangdir", [T11.Expression, T11.Expression, T11.Expression]>;
164
164
  export declare const builtinHasLang: S11.RuleDefExpressionFunctionX<"builtInHasLang", [T11.Expression]>;