@traqula/rules-sparql-1-2 0.0.1-alpha.176 → 0.0.1-alpha.9
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/lib/Factory.d.ts +18 -0
- package/lib/Factory.js +73 -0
- package/lib/Factory.js.map +1 -0
- package/lib/grammar.d.ts +88 -96
- package/lib/grammar.js +269 -169
- package/lib/grammar.js.map +1 -1
- package/lib/index.cjs +3415 -2286
- package/lib/index.d.ts +4 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/lexer.d.ts +2 -1
- package/lib/lexer.js +2 -1
- package/lib/lexer.js.map +1 -1
- package/lib/parserUtils.d.ts +8 -0
- package/lib/parserUtils.js +13 -0
- package/lib/parserUtils.js.map +1 -0
- package/lib/sparql12HelperTypes.d.ts +50 -0
- package/lib/sparql12HelperTypes.js +2 -0
- package/lib/sparql12HelperTypes.js.map +1 -0
- package/lib/sparql12Types.d.ts +299 -140
- package/lib/sparql12Types.js.map +1 -1
- package/lib/validator.d.ts +2 -0
- package/lib/validator.js +17 -0
- package/lib/validator.js.map +1 -0
- package/package.json +4 -7
package/lib/Factory.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SourceLocation, SubTyped } from '@traqula/core';
|
|
2
|
+
import { Factory as Sparql11Factory } from '@traqula/rules-sparql-1-1';
|
|
3
|
+
import type * as T11 from '@traqula/rules-sparql-1-1';
|
|
4
|
+
import type { Annotation, ContextDefinitionVersion, TermBlank, TermIri, TermTriple, TermVariable, TripleCollectionReifiedTriple, TripleNesting } from './sparql12Types';
|
|
5
|
+
export declare class Factory extends Sparql11Factory {
|
|
6
|
+
termTriple(subject: TermTriple['subject'], predicate: TermTriple['predicate'], object: TermTriple['object'], loc: SourceLocation): TermTriple;
|
|
7
|
+
isTermTriple(obj: object): obj is SubTyped<'term', 'triple'>;
|
|
8
|
+
tripleCollectionReifiedTriple(loc: SourceLocation, subject: TripleNesting['subject'], predicate: TripleNesting['predicate'], object: TripleNesting['object'], reifier?: TripleCollectionReifiedTriple['identifier']): TripleCollectionReifiedTriple;
|
|
9
|
+
isTripleCollectionReifiedTriple(obj: object): obj is SubTyped<'tripleCollection', 'reifiedTriple'>;
|
|
10
|
+
tripleCollectionBlankNodeProperties(identifier: TermBlank | TermVariable | TermIri, triples: TripleNesting[], loc: SourceLocation): T11.TripleCollectionBlankNodeProperties;
|
|
11
|
+
/**
|
|
12
|
+
* Overwritten triple constructor to always contain an empty annotations list
|
|
13
|
+
*/
|
|
14
|
+
triple: Sparql11Factory['triple'];
|
|
15
|
+
annotatedTriple(subject: TripleNesting['subject'], predicate: TripleNesting['predicate'], object: TripleNesting['object'], annotations?: Annotation[], loc?: SourceLocation): TripleNesting;
|
|
16
|
+
contextDefinitionVersion(version: string, loc: SourceLocation): ContextDefinitionVersion;
|
|
17
|
+
isContextDefinitionVersion(obj: object): obj is SubTyped<'contextDef', 'version'>;
|
|
18
|
+
}
|
package/lib/Factory.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Factory as Sparql11Factory } from '@traqula/rules-sparql-1-1';
|
|
2
|
+
export class Factory extends Sparql11Factory {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments);
|
|
5
|
+
/**
|
|
6
|
+
* Overwritten triple constructor to always contain an empty annotations list
|
|
7
|
+
*/
|
|
8
|
+
this.triple = (subject, predicate, object, loc) => ({
|
|
9
|
+
type: 'triple',
|
|
10
|
+
subject,
|
|
11
|
+
predicate,
|
|
12
|
+
object,
|
|
13
|
+
annotations: [],
|
|
14
|
+
loc: loc ?? this.sourceLocation(subject, predicate, object),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
termTriple(subject, predicate, object, loc) {
|
|
18
|
+
return {
|
|
19
|
+
type: 'term',
|
|
20
|
+
subType: 'triple',
|
|
21
|
+
subject,
|
|
22
|
+
predicate,
|
|
23
|
+
object,
|
|
24
|
+
loc,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
isTermTriple(obj) {
|
|
28
|
+
return this.isOfSubType(obj, 'term', 'triple');
|
|
29
|
+
}
|
|
30
|
+
tripleCollectionReifiedTriple(loc, subject, predicate, object, reifier) {
|
|
31
|
+
return {
|
|
32
|
+
type: 'tripleCollection',
|
|
33
|
+
subType: 'reifiedTriple',
|
|
34
|
+
triples: [this.triple(subject, predicate, object)],
|
|
35
|
+
identifier: reifier ?? this.blankNode(undefined, this.sourceLocationNoMaterialize()),
|
|
36
|
+
loc,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
isTripleCollectionReifiedTriple(obj) {
|
|
40
|
+
return this.isOfSubType(obj, 'tripleCollection', 'reifiedTriple');
|
|
41
|
+
}
|
|
42
|
+
tripleCollectionBlankNodeProperties(identifier, triples, loc) {
|
|
43
|
+
return {
|
|
44
|
+
type: 'tripleCollection',
|
|
45
|
+
subType: 'blankNodeProperties',
|
|
46
|
+
triples,
|
|
47
|
+
identifier,
|
|
48
|
+
loc,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
annotatedTriple(subject, predicate, object, annotations, loc) {
|
|
52
|
+
return {
|
|
53
|
+
type: 'triple',
|
|
54
|
+
subject,
|
|
55
|
+
predicate,
|
|
56
|
+
object,
|
|
57
|
+
annotations: annotations ?? [],
|
|
58
|
+
loc: loc ?? this.sourceLocation(subject, predicate, object, ...annotations ?? []),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
contextDefinitionVersion(version, loc) {
|
|
62
|
+
return {
|
|
63
|
+
type: 'contextDef',
|
|
64
|
+
subType: 'version',
|
|
65
|
+
version,
|
|
66
|
+
loc,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
isContextDefinitionVersion(obj) {
|
|
70
|
+
return this.isOfSubType(obj, 'contextDef', 'version');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=Factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Factory.js","sourceRoot":"","sources":["Factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAcvE,MAAM,OAAO,OAAQ,SAAQ,eAAe;IAA5C;;QAuDE;;WAEG;QACa,WAAM,GACpB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,CAAoB;YACvD,IAAI,EAAE,QAAQ;YACd,OAAO;YACP,SAAS;YACT,MAAM;YACN,WAAW,EAAE,EAAE;YACf,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC;SACpC,CAAA,CAAC;IA+B9B,CAAC;IAhGQ,UAAU,CACf,OAA8B,EAC9B,SAAkC,EAClC,MAA4B,EAC5B,GAAmB;QAEnB,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,QAAQ;YACjB,OAAO;YACP,SAAS;YACT,MAAM;YACN,GAAG;SACJ,CAAC;IACJ,CAAC;IAEM,YAAY,CAAC,GAAW;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAEM,6BAA6B,CAClC,GAAmB,EACnB,OAAiC,EACjC,SAAqC,EACrC,MAA+B,EAC/B,OAAqD;QAErD,OAAO;YACL,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAE,IAAI,CAAC,MAAM,CAA+B,OAAO,EAAE,SAAS,EAA+B,MAAM,CAAC,CAAE;YAC/G,UAAU,EAAE,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,CAAC,2BAA2B,EAAE,CAAC;YACpF,GAAG;SACJ,CAAC;IACJ,CAAC;IAEM,+BAA+B,CAAC,GAAW;QAChD,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,kBAAkB,EAAE,eAAe,CAAC,CAAC;IACpE,CAAC;IAEe,mCAAmC,CACjD,UAA8C,EAC9C,OAAwB,EACxB,GAAmB;QAEnB,OAAiD;YAC/C,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,qBAAqB;YAC9B,OAAO;YACP,UAAU;YACV,GAAG;SAC0C,CAAC;IAClD,CAAC;IAeM,eAAe,CACpB,OAAiC,EACjC,SAAqC,EACrC,MAA+B,EAC/B,WAA0B,EAC1B,GAAoB;QAEpB,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO;YACP,SAAS;YACT,MAAM;YACN,WAAW,EAAE,WAAW,IAAI,EAAE;YAC9B,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,WAAW,IAAI,EAAE,CAAC;SAClF,CAAC;IACJ,CAAC;IAEM,wBAAwB,CAAC,OAAe,EAAE,GAAmB;QAClE,OAAO;YACL,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,SAAS;YAClB,OAAO;YACP,GAAG;SACJ,CAAC;IACJ,CAAC;IAEM,0BAA0B,CAAC,GAAW;QAC3C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;IACxD,CAAC;CACF","sourcesContent":["import type { SourceLocation, SubTyped } from '@traqula/core';\nimport { Factory as Sparql11Factory } from '@traqula/rules-sparql-1-1';\nimport type * as T11 from '@traqula/rules-sparql-1-1';\nimport type {\n Annotation,\n ContextDefinitionVersion,\n TermBlank,\n TermIri,\n TermTriple,\n TermVariable,\n TripleCollectionBlankNodeProperties,\n TripleCollectionReifiedTriple,\n TripleNesting,\n} from './sparql12Types';\n\nexport class Factory extends Sparql11Factory {\n public termTriple(\n subject: TermTriple['subject'],\n predicate: TermTriple['predicate'],\n object: TermTriple['object'],\n loc: SourceLocation,\n ): TermTriple {\n return {\n type: 'term',\n subType: 'triple',\n subject,\n predicate,\n object,\n loc,\n };\n }\n\n public isTermTriple(obj: object): obj is SubTyped<'term', 'triple'> {\n return this.isOfSubType(obj, 'term', 'triple');\n }\n\n public tripleCollectionReifiedTriple(\n loc: SourceLocation,\n subject: TripleNesting['subject'],\n predicate: TripleNesting['predicate'],\n object: TripleNesting['object'],\n reifier?: TripleCollectionReifiedTriple['identifier'],\n ): TripleCollectionReifiedTriple {\n return {\n type: 'tripleCollection',\n subType: 'reifiedTriple',\n triples: [ this.triple(<T11.TripleNesting['subject']>subject, predicate, <T11.TripleNesting['object']>object) ],\n identifier: reifier ?? this.blankNode(undefined, this.sourceLocationNoMaterialize()),\n loc,\n };\n }\n\n public isTripleCollectionReifiedTriple(obj: object): obj is SubTyped<'tripleCollection', 'reifiedTriple'> {\n return this.isOfSubType(obj, 'tripleCollection', 'reifiedTriple');\n }\n\n public override tripleCollectionBlankNodeProperties(\n identifier: TermBlank | TermVariable | TermIri,\n triples: TripleNesting[],\n loc: SourceLocation,\n ): T11.TripleCollectionBlankNodeProperties {\n return <T11.TripleCollectionBlankNodeProperties> {\n type: 'tripleCollection',\n subType: 'blankNodeProperties',\n triples,\n identifier,\n loc,\n } satisfies TripleCollectionBlankNodeProperties;\n }\n\n /**\n * Overwritten triple constructor to always contain an empty annotations list\n */\n public override triple: Sparql11Factory['triple'] =\n (subject, predicate, object, loc) => <T11.TripleNesting> {\n type: 'triple',\n subject,\n predicate,\n object,\n annotations: [],\n loc: loc ?? this.sourceLocation(subject, predicate, object),\n } satisfies TripleNesting;\n\n public annotatedTriple(\n subject: TripleNesting['subject'],\n predicate: TripleNesting['predicate'],\n object: TripleNesting['object'],\n annotations?: Annotation[],\n loc?: SourceLocation,\n ): TripleNesting {\n return {\n type: 'triple',\n subject,\n predicate,\n object,\n annotations: annotations ?? [],\n loc: loc ?? this.sourceLocation(subject, predicate, object, ...annotations ?? []),\n };\n }\n\n public contextDefinitionVersion(version: string, loc: SourceLocation): ContextDefinitionVersion {\n return {\n type: 'contextDef',\n subType: 'version',\n version,\n loc,\n };\n }\n\n public isContextDefinitionVersion(obj: object): obj is SubTyped<'contextDef', 'version'> {\n return this.isOfSubType(obj, 'contextDef', 'version');\n }\n}\n"]}
|
package/lib/grammar.d.ts
CHANGED
|
@@ -4,134 +4,116 @@
|
|
|
4
4
|
* Rules in this module redefine the return type of core grammar rules.
|
|
5
5
|
* It is therefore essential that the parser retypes the rules from the core grammar.
|
|
6
6
|
*/
|
|
7
|
-
import type { RuleDefReturn } from '@traqula/core';
|
|
7
|
+
import type { RuleDefReturn, Wrap } from '@traqula/core';
|
|
8
8
|
import { gram as S11 } from '@traqula/rules-sparql-1-1';
|
|
9
9
|
import type * as T11 from '@traqula/rules-sparql-1-1';
|
|
10
|
-
import type {
|
|
10
|
+
import type { SparqlGeneratorRule, SparqlGrammarRule, SparqlRule } from './sparql12HelperTypes';
|
|
11
|
+
import type { Annotation, ContextDefinition, ContextDefinitionVersion, Expression, GraphNode, GraphTerm, PatternBgp, Term, TermBlank, TermIri, TermLiteral, TermTriple, TermVariable, TripleCollectionReifiedTriple, TripleNesting } from './sparql12Types';
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
*[[7]](https://www.w3.org/TR/sparql12-query/#rVersionDecl)
|
|
13
14
|
*/
|
|
14
|
-
export declare const
|
|
15
|
-
subject: Term;
|
|
16
|
-
object: Term;
|
|
17
|
-
}>[], undefined>;
|
|
15
|
+
export declare const versionDecl: SparqlRule<'versionDecl', ContextDefinitionVersion>;
|
|
18
16
|
/**
|
|
19
|
-
* [[
|
|
17
|
+
* [[8]](https://www.w3.org/TR/sparql12-query/#rVersionSpecifier)
|
|
20
18
|
*/
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
export declare const versionSpecifier: SparqlGrammarRule<'versionSpecifier', Wrap<string>>;
|
|
20
|
+
/**
|
|
21
|
+
* OVERRIDING RULE {@link S11.prologue}
|
|
22
|
+
* [[8]](https://www.w3.org/TR/sparql12-query/#rVersionSpecifier)
|
|
23
|
+
*/
|
|
24
|
+
export declare const prologue: SparqlRule<'prologue', ContextDefinition[]>;
|
|
25
|
+
/**
|
|
26
|
+
* [[58]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleBlock) Used by triplesSameSubject
|
|
27
|
+
*/
|
|
28
|
+
export declare const reifiedTripleBlock: T11.SparqlGrammarRule<"reifiedTripleBlock", T11.BasicGraphPattern, undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* [[59]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleBlockPath) Used by TriplesSameSubjectPath
|
|
31
|
+
*/
|
|
32
|
+
export declare const reifiedTripleBlockPath: T11.SparqlGrammarRule<"reifiedTripleBlockPath", T11.BasicGraphPattern, undefined>;
|
|
25
33
|
/**
|
|
26
34
|
* OVERRIDING RULE: {@link S11.dataBlockValue}.
|
|
27
|
-
* [[
|
|
35
|
+
* [[69]](https://www.w3.org/TR/sparql12-query/#rDataBlockValue)
|
|
28
36
|
*/
|
|
29
|
-
export declare const dataBlockValue: T11.
|
|
37
|
+
export declare const dataBlockValue: T11.SparqlGrammarRule<'dataBlockValue', RuleDefReturn<typeof S11.dataBlockValue> | TermTriple>;
|
|
30
38
|
/**
|
|
31
|
-
* [[
|
|
39
|
+
* [[70]](https://www.w3.org/TR/sparql12-query/#rReifier)
|
|
32
40
|
*/
|
|
33
|
-
export declare const reifier: T11.SparqlGrammarRule<'reifier',
|
|
41
|
+
export declare const reifier: T11.SparqlGrammarRule<'reifier', RuleDefReturn<typeof varOrReifierId>>;
|
|
34
42
|
/**
|
|
35
|
-
* [[
|
|
43
|
+
* [[71]](https://www.w3.org/TR/sparql12-query/#rVarOrReifierId)
|
|
36
44
|
*/
|
|
37
|
-
export declare const varOrReifierId: T11.SparqlGrammarRule<'varOrReifierId',
|
|
45
|
+
export declare const varOrReifierId: T11.SparqlGrammarRule<'varOrReifierId', TermVariable | TermIri | TermBlank>;
|
|
38
46
|
/**
|
|
39
47
|
* OVERRIDING RULE {@link S11.triplesSameSubject}
|
|
40
|
-
* [[
|
|
48
|
+
* [[81]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubject)
|
|
41
49
|
*/
|
|
42
|
-
export declare const triplesSameSubject: T11.SparqlGrammarRule<"triplesSameSubject",
|
|
43
|
-
subject: Term;
|
|
44
|
-
object: Term;
|
|
45
|
-
}>[], undefined>;
|
|
50
|
+
export declare const triplesSameSubject: T11.SparqlGrammarRule<"triplesSameSubject", T11.BasicGraphPattern, undefined>;
|
|
46
51
|
/**
|
|
47
52
|
* OVERRIDING RULE {@link S11.triplesSameSubjectPath}
|
|
48
|
-
* [[
|
|
53
|
+
* [[87]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubjectPath)
|
|
49
54
|
*/
|
|
50
|
-
export declare const triplesSameSubjectPath: T11.SparqlGrammarRule<"triplesSameSubjectPath",
|
|
51
|
-
subject: Term;
|
|
52
|
-
object: Term;
|
|
53
|
-
}>[], undefined>;
|
|
55
|
+
export declare const triplesSameSubjectPath: T11.SparqlGrammarRule<"triplesSameSubjectPath", T11.BasicGraphPattern, undefined>;
|
|
54
56
|
/**
|
|
55
57
|
* OVERRIDING RULE: {@link S11.object}.
|
|
56
58
|
* [[84]](https://www.w3.org/TR/sparql12-query/#rObject) Used by ObjectList
|
|
57
59
|
*/
|
|
58
|
-
export declare const object:
|
|
59
|
-
subject: Term;
|
|
60
|
-
object: Term;
|
|
61
|
-
}>[], Pick<import("@traqula/core").Patch<T11.Triple, {
|
|
62
|
-
subject: Term;
|
|
63
|
-
object: Term;
|
|
64
|
-
}>, "subject" | "predicate">>;
|
|
60
|
+
export declare const object: SparqlGrammarRule<"object", TripleNesting, Pick<TripleNesting, "subject" | "predicate">>;
|
|
65
61
|
/**
|
|
66
62
|
* OVERRIDING RULE: {@link S11.objectPath}.
|
|
67
63
|
* [[91]](https://www.w3.org/TR/sparql12-query/#rTriplesSameSubjectPath) Used by ObjectListPath
|
|
68
64
|
*/
|
|
69
|
-
export declare const objectPath:
|
|
70
|
-
subject: Term;
|
|
71
|
-
object: Term;
|
|
72
|
-
}>[], Pick<import("@traqula/core").Patch<T11.Triple, {
|
|
73
|
-
subject: Term;
|
|
74
|
-
object: Term;
|
|
75
|
-
}>, "subject" | "predicate">>;
|
|
65
|
+
export declare const objectPath: SparqlGrammarRule<"objectPath", TripleNesting, Pick<TripleNesting, "subject" | "predicate">>;
|
|
76
66
|
/**
|
|
77
67
|
* [[107]](https://www.w3.org/TR/sparql12-query/#rAnnotationPath)
|
|
78
68
|
*/
|
|
79
|
-
export declare const annotationPath:
|
|
80
|
-
triples: Triple[];
|
|
81
|
-
node: import("./sparql12Types").ITriplesNode["node"] | Term;
|
|
82
|
-
}>[], undefined>;
|
|
69
|
+
export declare const annotationPath: SparqlRule<"annotationPath", Annotation[]>;
|
|
83
70
|
/**
|
|
84
|
-
* [[
|
|
71
|
+
* [[111]](https://www.w3.org/TR/sparql12-query/#rAnnotation)
|
|
85
72
|
*/
|
|
86
|
-
export declare const annotation:
|
|
87
|
-
triples: Triple[];
|
|
88
|
-
node: import("./sparql12Types").ITriplesNode["node"] | Term;
|
|
89
|
-
}>[], undefined>;
|
|
73
|
+
export declare const annotation: SparqlRule<"annotation", Annotation[]>;
|
|
90
74
|
/**
|
|
91
|
-
* [[
|
|
75
|
+
* [[110]](https://www.w3.org/TR/sparql12-query/#rAnnotationBlockPath)
|
|
92
76
|
*/
|
|
93
|
-
export declare const annotationBlockPath:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
77
|
+
export declare const annotationBlockPath: SparqlGrammarRule<"annotationBlockPath", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
|
|
78
|
+
triples: TripleNesting[];
|
|
79
|
+
identifier: TermBlank | TermVariable | TermIri;
|
|
80
|
+
}>, T11.TermIri | T11.TermVariable | T11.TermBlank> & SparqlGeneratorRule<"annotationBlockPath", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
|
|
81
|
+
triples: TripleNesting[];
|
|
82
|
+
identifier: TermBlank | TermVariable | TermIri;
|
|
83
|
+
}>>;
|
|
100
84
|
/**
|
|
101
|
-
* [[
|
|
85
|
+
* [[112]](https://www.w3.org/TR/sparql12-query/#rAnnotationBlock)
|
|
102
86
|
*/
|
|
103
|
-
export declare const annotationBlock:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
87
|
+
export declare const annotationBlock: SparqlGrammarRule<"annotationBlock", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
|
|
88
|
+
triples: TripleNesting[];
|
|
89
|
+
identifier: TermBlank | TermVariable | TermIri;
|
|
90
|
+
}>, T11.TermIri | T11.TermVariable | T11.TermBlank> & SparqlGeneratorRule<"annotationBlock", import("@traqula/core").Patch<T11.TripleCollectionBlankNodeProperties, {
|
|
91
|
+
triples: TripleNesting[];
|
|
92
|
+
identifier: TermBlank | TermVariable | TermIri;
|
|
93
|
+
}>>;
|
|
110
94
|
/**
|
|
111
95
|
* OVERRIDING RULE: {@link S11.graphNode}.
|
|
112
96
|
* [[111]](https://www.w3.org/TR/sparql12-query/#rGraphNode)
|
|
113
97
|
*/
|
|
114
|
-
export declare const graphNode:
|
|
98
|
+
export declare const graphNode: SparqlGrammarRule<'graphNode', GraphNode>;
|
|
115
99
|
/**
|
|
116
100
|
* OVERRIDING RULE: {@link S11.graphNodePath}.
|
|
117
|
-
* [[
|
|
101
|
+
* [[114]](https://www.w3.org/TR/sparql12-query/#rGraphNodePath)
|
|
118
102
|
*/
|
|
119
|
-
export declare const graphNodePath:
|
|
103
|
+
export declare const graphNodePath: SparqlRule<'graphNodePath', GraphNode>;
|
|
120
104
|
/**
|
|
121
105
|
* OVERRIDING RULE: {@link S11.varOrTerm}.
|
|
122
|
-
* [[
|
|
106
|
+
* [[115]](https://www.w3.org/TR/sparql12-query/#rVarOrTerm)
|
|
123
107
|
*/
|
|
124
|
-
export declare const varOrTerm:
|
|
108
|
+
export declare const varOrTerm: SparqlGrammarRule<'varOrTerm', Term>;
|
|
125
109
|
/**
|
|
126
110
|
* [[114]](https://www.w3.org/TR/sparql12-query/#rReifiedTriple)
|
|
127
111
|
*/
|
|
128
|
-
export declare const reifiedTriple:
|
|
129
|
-
node: T11.BlankTerm | T11.VariableTerm | T11.IriTerm;
|
|
130
|
-
}>;
|
|
112
|
+
export declare const reifiedTriple: SparqlRule<'reifiedTriple', TripleCollectionReifiedTriple>;
|
|
131
113
|
/**
|
|
132
114
|
* [[115]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleSubject)
|
|
133
115
|
*/
|
|
134
|
-
export declare const reifiedTripleSubject: T11.SparqlGrammarRule<'reifiedTripleSubject',
|
|
116
|
+
export declare const reifiedTripleSubject: T11.SparqlGrammarRule<'reifiedTripleSubject', Term | TripleCollectionReifiedTriple>;
|
|
135
117
|
/**
|
|
136
118
|
* [[116]](https://www.w3.org/TR/sparql12-query/#rReifiedTripleObject)
|
|
137
119
|
*/
|
|
@@ -139,44 +121,44 @@ export declare const reifiedTripleObject: T11.SparqlGrammarRule<'reifiedTripleOb
|
|
|
139
121
|
/**
|
|
140
122
|
* [[117]](https://www.w3.org/TR/sparql12-query/#rTripleTerm)
|
|
141
123
|
*/
|
|
142
|
-
export declare const tripleTerm:
|
|
124
|
+
export declare const tripleTerm: SparqlRule<'tripleTerm', TermTriple>;
|
|
143
125
|
/**
|
|
144
|
-
* [[
|
|
126
|
+
* [[120]](https://www.w3.org/TR/sparql12-query/#rTripleTermSubject)
|
|
145
127
|
*/
|
|
146
|
-
export declare const tripleTermSubject: T11.SparqlGrammarRule<'tripleTermSubject',
|
|
128
|
+
export declare const tripleTermSubject: T11.SparqlGrammarRule<'tripleTermSubject', TermVariable | TermIri | TermLiteral | TermBlank | TermTriple>;
|
|
147
129
|
/**
|
|
148
|
-
* [[
|
|
130
|
+
* [[121]](https://www.w3.org/TR/sparql12-query/#rTripleTermObject)
|
|
149
131
|
*/
|
|
150
|
-
export declare const tripleTermObject: T11.SparqlGrammarRule<'tripleTermObject', RuleDefReturn<typeof tripleTermSubject
|
|
132
|
+
export declare const tripleTermObject: T11.SparqlGrammarRule<'tripleTermObject', RuleDefReturn<typeof tripleTermSubject>>;
|
|
151
133
|
/**
|
|
152
|
-
* [[
|
|
134
|
+
* [[122]](https://www.w3.org/TR/sparql12-query/#rTripleTermData)
|
|
153
135
|
*/
|
|
154
|
-
export declare const tripleTermData:
|
|
136
|
+
export declare const tripleTermData: SparqlGrammarRule<'tripleTermData', TermTriple>;
|
|
155
137
|
/**
|
|
156
|
-
* [[
|
|
138
|
+
* [[123]](https://www.w3.org/TR/sparql12-query/#rTripleTermDataSubject)
|
|
157
139
|
*/
|
|
158
|
-
export declare const tripleTermDataSubject: T11.SparqlGrammarRule<'tripleTermDataSubject',
|
|
140
|
+
export declare const tripleTermDataSubject: T11.SparqlGrammarRule<'tripleTermDataSubject', TermIri | TermLiteral | TermTriple>;
|
|
159
141
|
/**
|
|
160
|
-
* [[
|
|
142
|
+
* [[124]](https://www.w3.org/TR/sparql12-query/#rTripleTermDataObject)
|
|
161
143
|
*/
|
|
162
|
-
export declare const tripleTermDataObject: T11.SparqlGrammarRule<'tripleTermDataObject', RuleDefReturn<typeof tripleTermDataSubject
|
|
144
|
+
export declare const tripleTermDataObject: T11.SparqlGrammarRule<'tripleTermDataObject', RuleDefReturn<typeof tripleTermDataSubject>>;
|
|
163
145
|
/**
|
|
164
146
|
* OVERRIDING RULE: {@link S11.primaryExpression}.
|
|
165
|
-
* [[
|
|
147
|
+
* [[136]](https://www.w3.org/TR/sparql12-query/#rPrimaryExpression)
|
|
166
148
|
*/
|
|
167
149
|
export declare const primaryExpression: T11.SparqlGrammarRule<'primaryExpression', Expression>;
|
|
168
150
|
/**
|
|
169
151
|
* [[135]](https://www.w3.org/TR/sparql12-query/#rExprTripleTerm)
|
|
170
152
|
*/
|
|
171
|
-
export declare const exprTripleTerm:
|
|
153
|
+
export declare const exprTripleTerm: SparqlGrammarRule<'exprTripleTerm', TermTriple>;
|
|
172
154
|
/**
|
|
173
|
-
* [[
|
|
155
|
+
* [[138]](https://www.w3.org/TR/sparql12-query/#rExprTripleTermSubject)
|
|
174
156
|
*/
|
|
175
|
-
export declare const exprTripleTermSubject: T11.SparqlGrammarRule<'exprTripleTermSubject',
|
|
157
|
+
export declare const exprTripleTermSubject: T11.SparqlGrammarRule<'exprTripleTermSubject', TermIri | TermVariable | TermLiteral | TermTriple>;
|
|
176
158
|
/**
|
|
177
|
-
* [[
|
|
159
|
+
* [[139]](https://www.w3.org/TR/sparql12-query/#rExprTripleTermObject)
|
|
178
160
|
*/
|
|
179
|
-
export declare const exprTripleTermObject: T11.SparqlGrammarRule<'exprTripleTermObject', RuleDefReturn<typeof exprTripleTermSubject> |
|
|
161
|
+
export declare const exprTripleTermObject: T11.SparqlGrammarRule<'exprTripleTermObject', RuleDefReturn<typeof exprTripleTermSubject> | TermTriple>;
|
|
180
162
|
export declare const builtinLangDir: S11.RuleDefExpressionFunctionX<"builtInLangdir", [T11.Expression]>;
|
|
181
163
|
export declare const builtinLangStrDir: S11.RuleDefExpressionFunctionX<"builtInStrLangdir", [T11.Expression, T11.Expression, T11.Expression]>;
|
|
182
164
|
export declare const builtinHasLang: S11.RuleDefExpressionFunctionX<"builtInHasLang", [T11.Expression]>;
|
|
@@ -188,12 +170,22 @@ export declare const builtinPredicate: S11.RuleDefExpressionFunctionX<"builtInPr
|
|
|
188
170
|
export declare const builtinObject: S11.RuleDefExpressionFunctionX<"builtInObject", [T11.Expression]>;
|
|
189
171
|
/**
|
|
190
172
|
* OVERRIDING RULE: {@link S11.builtInCall}.
|
|
191
|
-
* [[
|
|
173
|
+
* [[141]](https://www.w3.org/TR/sparql12-query/#rBuiltInCall)
|
|
192
174
|
*/
|
|
193
175
|
export declare const builtInCall: typeof S11.builtInCall;
|
|
194
176
|
/**
|
|
195
177
|
* OVERRIDING RULE: {@link S11.rdfLiteral}.
|
|
196
178
|
* No retyping is needed since the return type is the same
|
|
197
|
-
* [[
|
|
179
|
+
* [[149]](https://www.w3.org/TR/sparql12-query/#rRDFLiteral)
|
|
180
|
+
*/
|
|
181
|
+
export declare const rdfLiteral: SparqlGrammarRule<'rdfLiteral', RuleDefReturn<typeof S11.rdfLiteral>>;
|
|
182
|
+
/**
|
|
183
|
+
* OVERRIDING RULE: {@link S11.triplesBlock}.
|
|
184
|
+
*/
|
|
185
|
+
export declare const generateTriplesBlock: SparqlGeneratorRule<'triplesBlock', PatternBgp>;
|
|
186
|
+
/**
|
|
187
|
+
* OVERRIDING RULE: {@link S11.graphTerm}.
|
|
188
|
+
* No retyping is needed since the return type is the same
|
|
189
|
+
* [[149]](https://www.w3.org/TR/sparql12-query/#rRDFLiteral)
|
|
198
190
|
*/
|
|
199
|
-
export declare const
|
|
191
|
+
export declare const generateGraphTerm: SparqlGeneratorRule<'graphTerm', GraphTerm>;
|