@traqula/rules-sparql-1-1 0.0.1-alpha.10

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 (115) hide show
  1. package/LICENSE.txt +22 -0
  2. package/README.md +17 -0
  3. package/lib/RoundTripTypes.d.ts +379 -0
  4. package/lib/RoundTripTypes.js +2 -0
  5. package/lib/RoundTripTypes.js.map +1 -0
  6. package/lib/Sparql11types.d.ts +68 -0
  7. package/lib/Sparql11types.js +2 -0
  8. package/lib/Sparql11types.js.map +1 -0
  9. package/lib/SparqlParser.d.ts +23 -0
  10. package/lib/SparqlParser.js +32 -0
  11. package/lib/SparqlParser.js.map +1 -0
  12. package/lib/expressionHelpers.d.ts +45 -0
  13. package/lib/expressionHelpers.js +161 -0
  14. package/lib/expressionHelpers.js.map +1 -0
  15. package/lib/factory.d.ts +447 -0
  16. package/lib/factory.js +105 -0
  17. package/lib/factory.js.map +1 -0
  18. package/lib/factoryMixins/ContextFactory.d.ts +38 -0
  19. package/lib/factoryMixins/ContextFactory.js +30 -0
  20. package/lib/factoryMixins/ContextFactory.js.map +1 -0
  21. package/lib/factoryMixins/ExpressionFactory.d.ts +60 -0
  22. package/lib/factoryMixins/ExpressionFactory.js +83 -0
  23. package/lib/factoryMixins/ExpressionFactory.js.map +1 -0
  24. package/lib/factoryMixins/GraphRefFactory.d.ts +43 -0
  25. package/lib/factoryMixins/GraphRefFactory.js +51 -0
  26. package/lib/factoryMixins/GraphRefFactory.js.map +1 -0
  27. package/lib/factoryMixins/PathFactory.d.ts +51 -0
  28. package/lib/factoryMixins/PathFactory.js +68 -0
  29. package/lib/factoryMixins/PathFactory.js.map +1 -0
  30. package/lib/factoryMixins/Patternfactory.d.ts +55 -0
  31. package/lib/factoryMixins/Patternfactory.js +98 -0
  32. package/lib/factoryMixins/Patternfactory.js.map +1 -0
  33. package/lib/factoryMixins/QueryFactory.d.ts +41 -0
  34. package/lib/factoryMixins/QueryFactory.js +43 -0
  35. package/lib/factoryMixins/QueryFactory.js.map +1 -0
  36. package/lib/factoryMixins/SolutionModifiersFactory.d.ts +43 -0
  37. package/lib/factoryMixins/SolutionModifiersFactory.js +55 -0
  38. package/lib/factoryMixins/SolutionModifiersFactory.js.map +1 -0
  39. package/lib/factoryMixins/TermFactory.d.ts +76 -0
  40. package/lib/factoryMixins/TermFactory.js +84 -0
  41. package/lib/factoryMixins/TermFactory.js.map +1 -0
  42. package/lib/factoryMixins/UpdateOperationFactory.d.ts +68 -0
  43. package/lib/factoryMixins/UpdateOperationFactory.js +126 -0
  44. package/lib/factoryMixins/UpdateOperationFactory.js.map +1 -0
  45. package/lib/factoryMixins/mixins.d.ts +14 -0
  46. package/lib/factoryMixins/mixins.js +20 -0
  47. package/lib/factoryMixins/mixins.js.map +1 -0
  48. package/lib/grammar/builtIn.d.ts +89 -0
  49. package/lib/grammar/builtIn.js +247 -0
  50. package/lib/grammar/builtIn.js.map +1 -0
  51. package/lib/grammar/dataSetClause.d.ts +34 -0
  52. package/lib/grammar/dataSetClause.js +81 -0
  53. package/lib/grammar/dataSetClause.js.map +1 -0
  54. package/lib/grammar/expression.d.ts +63 -0
  55. package/lib/grammar/expression.js +383 -0
  56. package/lib/grammar/expression.js.map +1 -0
  57. package/lib/grammar/general.d.ts +36 -0
  58. package/lib/grammar/general.js +145 -0
  59. package/lib/grammar/general.js.map +1 -0
  60. package/lib/grammar/index.d.ts +12 -0
  61. package/lib/grammar/index.js +13 -0
  62. package/lib/grammar/index.js.map +1 -0
  63. package/lib/grammar/literals.d.ts +55 -0
  64. package/lib/grammar/literals.js +258 -0
  65. package/lib/grammar/literals.js.map +1 -0
  66. package/lib/grammar/propertyPaths.d.ts +43 -0
  67. package/lib/grammar/propertyPaths.js +182 -0
  68. package/lib/grammar/propertyPaths.js.map +1 -0
  69. package/lib/grammar/queryUnit/queryUnit.d.ts +48 -0
  70. package/lib/grammar/queryUnit/queryUnit.js +366 -0
  71. package/lib/grammar/queryUnit/queryUnit.js.map +1 -0
  72. package/lib/grammar/solutionModifier.d.ts +44 -0
  73. package/lib/grammar/solutionModifier.js +253 -0
  74. package/lib/grammar/solutionModifier.js.map +1 -0
  75. package/lib/grammar/tripleBlock.d.ts +36 -0
  76. package/lib/grammar/tripleBlock.js +357 -0
  77. package/lib/grammar/tripleBlock.js.map +1 -0
  78. package/lib/grammar/updateUnit/updateUnit.d.ts +95 -0
  79. package/lib/grammar/updateUnit/updateUnit.js +493 -0
  80. package/lib/grammar/updateUnit/updateUnit.js.map +1 -0
  81. package/lib/grammar/whereClause.d.ts +76 -0
  82. package/lib/grammar/whereClause.js +441 -0
  83. package/lib/grammar/whereClause.js.map +1 -0
  84. package/lib/grammar-helpers/utils.d.ts +12 -0
  85. package/lib/grammar-helpers/utils.js +16 -0
  86. package/lib/grammar-helpers/utils.js.map +1 -0
  87. package/lib/index.cjs +14565 -0
  88. package/lib/index.d.ts +10 -0
  89. package/lib/index.js +11 -0
  90. package/lib/index.js.map +1 -0
  91. package/lib/lexer/BuildinCalls.d.ts +126 -0
  92. package/lib/lexer/BuildinCalls.js +188 -0
  93. package/lib/lexer/BuildinCalls.js.map +1 -0
  94. package/lib/lexer/graph.d.ts +6 -0
  95. package/lib/lexer/graph.js +8 -0
  96. package/lib/lexer/graph.js.map +1 -0
  97. package/lib/lexer/index.d.ts +5 -0
  98. package/lib/lexer/index.js +6 -0
  99. package/lib/lexer/index.js.map +1 -0
  100. package/lib/lexer/lexer.d.ts +54 -0
  101. package/lib/lexer/lexer.js +70 -0
  102. package/lib/lexer/lexer.js.map +1 -0
  103. package/lib/lexer/symbols.d.ts +28 -0
  104. package/lib/lexer/symbols.js +29 -0
  105. package/lib/lexer/symbols.js.map +1 -0
  106. package/lib/lexer/terminals.d.ts +26 -0
  107. package/lib/lexer/terminals.js +63 -0
  108. package/lib/lexer/terminals.js.map +1 -0
  109. package/lib/utils.d.ts +5 -0
  110. package/lib/utils.js +24 -0
  111. package/lib/utils.js.map +1 -0
  112. package/lib/validation/validators.d.ts +14 -0
  113. package/lib/validation/validators.js +235 -0
  114. package/lib/validation/validators.js.map +1 -0
  115. package/package.json +48 -0
@@ -0,0 +1,447 @@
1
+ import type { SourceLocation, SubTyped, Typed } from '@traqula/core';
2
+ import { CoreFactory } from '@traqula/core';
3
+ import type { DatasetClauses, GraphNode, GraphQuads, PatternBgp, Sparql11Nodes, Term, TermBlank, TermIri, TermVariable, TripleCollectionBlankNodeProperties, TripleCollectionList, TripleNesting, Update, Wildcard } from './RoundTripTypes';
4
+ declare const Factory_base: {
5
+ new (...args: any[]): {
6
+ isUpdateOperation(obj: object): obj is Typed<"updateOperation">;
7
+ updateOperationLoad(loc: SourceLocation, source: TermIri, silent: boolean, destination?: import("./RoundTripTypes").GraphRefSpecific | undefined): import("./RoundTripTypes").UpdateOperationLoad;
8
+ isUpdateOperationLoad(obj: object): obj is SubTyped<"updateOperation", "load">;
9
+ updateOperationClearDrop(subType: "clear", silent: boolean, destination: import("./RoundTripTypes").GraphRef, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationClear;
10
+ updateOperationClearDrop(subType: "drop", silent: boolean, destination: import("./RoundTripTypes").GraphRef, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationDrop;
11
+ updateOperationClearDrop(subType: "clear" | "drop", silent: boolean, destination: import("./RoundTripTypes").GraphRef, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationClear | import("./RoundTripTypes").UpdateOperationDrop;
12
+ updateOperationClear(destination: import("./RoundTripTypes").GraphRef, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationClear;
13
+ isUpdateOperationClear(obj: object): obj is SubTyped<"updateOperation", "clear">;
14
+ updateOperationDrop(destination: import("./RoundTripTypes").GraphRef, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationDrop;
15
+ isUpdateOperationDrop(obj: object): obj is SubTyped<"updateOperation", "drop">;
16
+ updateOperationCreate(destination: import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationCreate;
17
+ isUpdateOperationCreate(obj: object): obj is SubTyped<"updateOperation", "create">;
18
+ updateOperationAddMoveCopy(subType: "add", source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationAdd;
19
+ updateOperationAddMoveCopy(subType: "move", source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationMove;
20
+ updateOperationAddMoveCopy(subType: "copy", source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationCopy;
21
+ updateOperationAddMoveCopy(subType: "add" | "move" | "copy", source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationAdd | import("./RoundTripTypes").UpdateOperationMove | import("./RoundTripTypes").UpdateOperationCopy;
22
+ updateOperationAdd(source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationAdd;
23
+ isUpdateOperationAdd(obj: object): obj is SubTyped<"updateOperation", "add">;
24
+ updateOperationMove(source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationMove;
25
+ isUpdateOperationMove(obj: object): obj is SubTyped<"updateOperation", "move">;
26
+ updateOperationCopy(source: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, destination: import("./RoundTripTypes").GraphRefDefault | import("./RoundTripTypes").GraphRefSpecific, silent: boolean, loc: SourceLocation): import("./RoundTripTypes").UpdateOperationCopy;
27
+ isUpdateOperationCopy(obj: object): obj is SubTyped<"updateOperation", "copy">;
28
+ updateOperationInsDelDataWhere(subType: "insertdata", data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationInsertData;
29
+ updateOperationInsDelDataWhere(subType: "deletedata", data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationDeleteData;
30
+ updateOperationInsDelDataWhere(subType: "deletewhere", data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationDeleteWhere;
31
+ updateOperationInsDelDataWhere(subType: "insertdata" | "deletedata" | "deletewhere", data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationInsertData | import("./RoundTripTypes").UpdateOperationDeleteData | import("./RoundTripTypes").UpdateOperationDeleteWhere;
32
+ updateOperationInsertData(data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationInsertData;
33
+ isUpdateOperationInsertData(obj: object): obj is SubTyped<"updateOperation", "insertdata">;
34
+ updateOperationDeleteData(data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationDeleteData;
35
+ isUpdateOperationDeleteData(obj: object): obj is SubTyped<"updateOperation", "deletedata">;
36
+ updateOperationDeleteWhere(data: import("./RoundTripTypes").Quads[], loc: SourceLocation): import("./RoundTripTypes").UpdateOperationDeleteWhere;
37
+ isUpdateOperationDeleteWhere(obj: object): obj is SubTyped<"updateOperation", "deletewhere">;
38
+ updateOperationModify(loc: SourceLocation, insert: import("./RoundTripTypes").Quads[] | undefined, del: import("./RoundTripTypes").Quads[] | undefined, where: import("./RoundTripTypes").PatternGroup, from: DatasetClauses, graph?: TermIri | undefined): import("./RoundTripTypes").UpdateOperationModify;
39
+ isUpdateOperationModify(obj: object): obj is SubTyped<"updateOperation", "modify">;
40
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
41
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
42
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
43
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
44
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
45
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
46
+ };
47
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
48
+ forcedAutoGenTree<T extends object>(obj: T): T;
49
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
50
+ isSourceLocation(loc: object): loc is SourceLocation;
51
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
52
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
53
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
54
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
55
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
56
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
57
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
58
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
59
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
60
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
61
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
62
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
63
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
64
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
65
+ };
66
+ } & {
67
+ new (...args: any[]): {
68
+ __blankNodeCounter: number;
69
+ resetBlankNodeCounter(): void;
70
+ isTerm(x: object): x is Typed<"term">;
71
+ blankNode(label: undefined | string, loc: SourceLocation): TermBlank;
72
+ isTermBlank(obj: object): obj is SubTyped<"term", "blankNode">;
73
+ literalTerm(loc: SourceLocation, value: string, lang?: undefined): import("./RoundTripTypes").TermLiteralStr;
74
+ literalTerm(loc: SourceLocation, value: string, lang: string): import("./RoundTripTypes").TermLiteralLangStr;
75
+ literalTerm(loc: SourceLocation, value: string, iri: TermIri): import("./RoundTripTypes").TermLiteralTyped;
76
+ literalTerm(loc: SourceLocation, value: string, langOrIri?: string | TermIri): import("./RoundTripTypes").TermLiteral;
77
+ isTermLiteral(obj: object): obj is SubTyped<"term", "literal">;
78
+ isTermLiteralLangStr(obj: object): obj is SubTyped<"term", "literal"> & {
79
+ langOrIri: string;
80
+ };
81
+ isTermLiteralStr(obj: object): obj is SubTyped<"term", "literal"> & {
82
+ langOrIri: undefined;
83
+ };
84
+ isTermLiteralTyped(obj: object): obj is SubTyped<"term", "literal"> & {
85
+ langOrIri: SubTyped<"term", "namedNode">;
86
+ };
87
+ variable(value: string, loc: SourceLocation): TermVariable;
88
+ isTermVariable(obj: object): obj is SubTyped<"term", "variable">;
89
+ namedNode(loc: SourceLocation, value: string, prefix?: undefined): import("./RoundTripTypes").TermIriFull;
90
+ namedNode(loc: SourceLocation, value: string, prefix: string): import("./RoundTripTypes").TermIriPrefixed;
91
+ isTermNamed(obj: object): obj is SubTyped<"term", "namedNode">;
92
+ isTermNamedPrefixed(obj: object): obj is SubTyped<"term", "namedNode"> & {
93
+ prefix: string;
94
+ };
95
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
96
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
97
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
98
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
99
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
100
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
101
+ };
102
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
103
+ forcedAutoGenTree<T extends object>(obj: T): T;
104
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
105
+ isSourceLocation(loc: object): loc is SourceLocation;
106
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
107
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
108
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
109
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
110
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
111
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
112
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
113
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
114
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
115
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
116
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
117
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
118
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
119
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
120
+ };
121
+ } & {
122
+ new (...args: any[]): {
123
+ isSolutionModifier(obj: object): obj is Typed<"solutionModifier">;
124
+ solutionModifierHaving(having: import("./RoundTripTypes").Expression[], loc: SourceLocation): import("./RoundTripTypes").SolutionModifierHaving;
125
+ isSolutionModifierHaving(obj: object): obj is SubTyped<"solutionModifier", "having">;
126
+ solutionModifierOrder(orderDefs: import("./RoundTripTypes").Ordering[], loc: SourceLocation): import("./RoundTripTypes").SolutionModifierOrder;
127
+ isSolutionModifierOrder(obj: object): obj is SubTyped<"solutionModifier", "order">;
128
+ solutionModifierLimitOffset(limit: number | undefined, offset: number | undefined, loc: SourceLocation): import("./RoundTripTypes").SolutionModifierLimitOffset;
129
+ isSolutionModifierLimitOffset(obj: object): obj is SubTyped<"solutionModifier", "limitOffset">;
130
+ solutionModifierGroup(groupings: (import("./RoundTripTypes").Expression | import("./RoundTripTypes").SolutionModifierGroupBind)[], loc: SourceLocation): import("./RoundTripTypes").SolutionModifierGroup;
131
+ isSolutionModifierGroup(obj: object): obj is SubTyped<"solutionModifier", "group">;
132
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
133
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
134
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
135
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
136
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
137
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
138
+ };
139
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
140
+ forcedAutoGenTree<T extends object>(obj: T): T;
141
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
142
+ isSourceLocation(loc: object): loc is SourceLocation;
143
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
144
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
145
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
146
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
147
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
148
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
149
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
150
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
151
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
152
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
153
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
154
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
155
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
156
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
157
+ };
158
+ } & {
159
+ new (...args: any[]): {
160
+ isQuery(obj: object): obj is Typed<"query">;
161
+ isQuerySelect(obj: object): obj is SubTyped<"query", "select">;
162
+ queryConstruct(loc: SourceLocation, context: import("./RoundTripTypes").ContextDefinition[], template: PatternBgp, where: import("./RoundTripTypes").PatternGroup, solutionModifiers: import("./RoundTripTypes").SolutionModifiers, datasets: DatasetClauses, values?: import("./RoundTripTypes").PatternValues): import("./RoundTripTypes").QueryConstruct;
163
+ isQueryConstruct(obj: object): obj is SubTyped<"query", "construct">;
164
+ isQueryDescribe(obj: object): obj is SubTyped<"query", "describe">;
165
+ isQueryAsk(obj: object): obj is SubTyped<"query", "ask">;
166
+ querySelect(arg: Omit<import("./RoundTripTypes").QuerySelect, "type" | "subType" | "loc">, loc: SourceLocation): import("./RoundTripTypes").QuerySelect;
167
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
168
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
169
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
170
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
171
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
172
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
173
+ };
174
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
175
+ forcedAutoGenTree<T extends object>(obj: T): T;
176
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
177
+ isSourceLocation(loc: object): loc is SourceLocation;
178
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
179
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
180
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
181
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
182
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
183
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
184
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
185
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
186
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
187
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
188
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
189
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
190
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
191
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
192
+ };
193
+ } & {
194
+ new (...args: any[]): {
195
+ isPattern(obj: object): obj is Typed<"pattern">;
196
+ patternBgp(triples: import("./RoundTripTypes").BasicGraphPattern, loc: SourceLocation): PatternBgp;
197
+ isPatternBgp(obj: object): obj is SubTyped<"pattern", "bgp">;
198
+ patternGroup(patterns: import("./RoundTripTypes").Pattern[], loc: SourceLocation): import("./RoundTripTypes").PatternGroup;
199
+ isPatternGroup(obj: object): obj is SubTyped<"pattern", "group">;
200
+ patternGraph(name: TermIri | TermVariable, patterns: import("./RoundTripTypes").Pattern[], loc: SourceLocation): import("./RoundTripTypes").PatternGraph;
201
+ isPatternGraph(obj: object): obj is SubTyped<"pattern", "graph">;
202
+ patternOptional(patterns: import("./RoundTripTypes").Pattern[], loc: SourceLocation): import("./RoundTripTypes").PatternOptional;
203
+ isPatternOptional(obj: object): obj is SubTyped<"pattern", "optional">;
204
+ patternValues(values: import("./RoundTripTypes").ValuePatternRow[], loc: SourceLocation): import("./RoundTripTypes").PatternValues;
205
+ isPatternValues(obj: object): obj is SubTyped<"pattern", "values">;
206
+ patternFilter(expression: import("./RoundTripTypes").Expression, loc: SourceLocation): import("./RoundTripTypes").PatternFilter;
207
+ isPatternFilter(obj: object): obj is SubTyped<"pattern", "filter">;
208
+ patternBind(expression: import("./RoundTripTypes").Expression, variable: TermVariable, loc: SourceLocation): import("./RoundTripTypes").PatternBind;
209
+ isPatternBind(obj: object): obj is SubTyped<"pattern", "bind">;
210
+ patternUnion(patterns: import("./RoundTripTypes").PatternGroup[], loc: SourceLocation): import("./RoundTripTypes").PatternUnion;
211
+ isPatternUnion(obj: object): obj is SubTyped<"pattern", "union">;
212
+ patternMinus(patterns: import("./RoundTripTypes").Pattern[], loc: SourceLocation): import("./RoundTripTypes").PatternMinus;
213
+ isPatternMinus(obj: object): obj is SubTyped<"pattern", "minus">;
214
+ patternService(name: TermIri | TermVariable, patterns: import("./RoundTripTypes").Pattern[], silent: boolean, loc: SourceLocation): import("./RoundTripTypes").PatternService;
215
+ isPatternService(obj: object): obj is SubTyped<"pattern", "service">;
216
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
217
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
218
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
219
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
220
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
221
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
222
+ };
223
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
224
+ forcedAutoGenTree<T extends object>(obj: T): T;
225
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
226
+ isSourceLocation(loc: object): loc is SourceLocation;
227
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
228
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
229
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
230
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
231
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
232
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
233
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
234
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
235
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
236
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
237
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
238
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
239
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
240
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
241
+ };
242
+ } & {
243
+ new (...args: any[]): {
244
+ isPathPure(obj: object): obj is Typed<"path">;
245
+ path(subType: "|", items: (TermIri | import("./RoundTripTypes").PathNegatedElt)[], loc: SourceLocation): import("./RoundTripTypes").PathAlternativeLimited;
246
+ path(subType: "!", items: [TermIri | import("./RoundTripTypes").PathNegatedElt | import("./RoundTripTypes").PathAlternativeLimited], loc: SourceLocation): import("./RoundTripTypes").PathNegated;
247
+ path(subType: "^", items: [TermIri], loc: SourceLocation): import("./RoundTripTypes").PathNegatedElt;
248
+ path(subType: import("./RoundTripTypes").PathModified["subType"], item: [import("./RoundTripTypes").Path], loc: SourceLocation): import("./RoundTripTypes").PathModified;
249
+ path(subType: "|" | "/", items: import("./RoundTripTypes").Path[], loc: SourceLocation): import("./RoundTripTypes").PropertyPathChain;
250
+ isPathOfType<T extends U[], U extends string>(obj: object, subTypes: T): obj is SubTyped<"path", U>;
251
+ isPathChain(obj: object): obj is SubTyped<"path", "|" | "/">;
252
+ isPathModified(obj: object): obj is SubTyped<"path", "?" | "*" | "+" | "^">;
253
+ isPathNegatedElt(obj: object): obj is SubTyped<"path", "^"> & {
254
+ items: [SubTyped<"term", "namedNode">];
255
+ };
256
+ isPathNegated(obj: object): obj is SubTyped<"path", "!">;
257
+ isPathAlternativeLimited(obj: object): obj is SubTyped<"path", "|"> & {
258
+ items: (SubTyped<"term", "namedNode"> | (SubTyped<"path", "^"> & {
259
+ items: [SubTyped<"term", "namedNode">];
260
+ }))[];
261
+ };
262
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
263
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
264
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
265
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
266
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
267
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
268
+ };
269
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
270
+ forcedAutoGenTree<T extends object>(obj: T): T;
271
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
272
+ isSourceLocation(loc: object): loc is SourceLocation;
273
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
274
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
275
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
276
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
277
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
278
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
279
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
280
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
281
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
282
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
283
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
284
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
285
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
286
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
287
+ };
288
+ } & {
289
+ new (...args: any[]): {
290
+ isGraphRef(obj: object): obj is Typed<"graphRef">;
291
+ graphRefDefault(loc: SourceLocation): import("./RoundTripTypes").GraphRefDefault;
292
+ isGraphRefDefault(graphRef: object): graphRef is SubTyped<"graphRef", "default">;
293
+ graphRefNamed(loc: SourceLocation): import("./RoundTripTypes").GraphRefNamed;
294
+ isGraphRefNamed(graphRef: object): graphRef is SubTyped<"graphRef", "named">;
295
+ graphRefAll(loc: SourceLocation): import("./RoundTripTypes").GraphRefAll;
296
+ isGraphRefAll(graphRef: object): graphRef is SubTyped<"graphRef", "all">;
297
+ graphRefSpecific(graph: TermIri, loc: SourceLocation): import("./RoundTripTypes").GraphRefSpecific;
298
+ isGraphRefSpecific(graphRef: object): graphRef is SubTyped<"graphRef", "specific">;
299
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
300
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
301
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
302
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
303
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
304
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
305
+ };
306
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
307
+ forcedAutoGenTree<T extends object>(obj: T): T;
308
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
309
+ isSourceLocation(loc: object): loc is SourceLocation;
310
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
311
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
312
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
313
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
314
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
315
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
316
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
317
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
318
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
319
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
320
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
321
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
322
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
323
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
324
+ };
325
+ } & {
326
+ new (...args: any[]): {
327
+ isExpressionPure(obj: object): obj is Typed<"expression">;
328
+ formatOperator(operator: string): string;
329
+ expressionOperation<Args extends import("./RoundTripTypes").Expression[]>(operator: string, args: Args, loc: SourceLocation): import("@traqula/core").Node & {
330
+ type: "expression";
331
+ subType: string;
332
+ } & {
333
+ subType: "operation";
334
+ operator: string;
335
+ args: import("./RoundTripTypes").Expression[];
336
+ } & {
337
+ args: Args;
338
+ };
339
+ isExpressionOperator(obj: object): obj is SubTyped<"expression", "operation">;
340
+ expressionFunctionCall<Args extends import("./RoundTripTypes").Expression[]>(functionOp: TermIri, args: Args, distinct: boolean, loc: SourceLocation): import("@traqula/core").Node & {
341
+ type: "expression";
342
+ subType: string;
343
+ } & {
344
+ subType: "functionCall";
345
+ function: TermIri;
346
+ distinct: boolean;
347
+ args: import("./RoundTripTypes").Expression[];
348
+ } & {
349
+ args: Args;
350
+ };
351
+ isExpressionFunctionCall(obj: object): obj is SubTyped<"expression", "functionCall">;
352
+ expressionPatternOperation(operator: string, args: import("./RoundTripTypes").PatternGroup, loc: SourceLocation): import("./RoundTripTypes").ExpressionPatternOperation;
353
+ isExpressionPatternOperation(obj: object): obj is SubTyped<"expression", "patternOperation">;
354
+ aggregate(aggregation: string, distinct: boolean, arg: import("./RoundTripTypes").Expression, separator: undefined, loc: SourceLocation): import("./RoundTripTypes").ExpressionAggregateDefault;
355
+ aggregate(aggregation: string, distinct: boolean, arg: Wildcard, separator: undefined, loc: SourceLocation): import("./RoundTripTypes").ExpressionAggregateOnWildcard;
356
+ aggregate(aggregation: string, distinct: boolean, arg: import("./RoundTripTypes").Expression, separator: string, loc: SourceLocation): import("./RoundTripTypes").ExpressionAggregateSeparator;
357
+ aggregate(aggregation: string, distinct: boolean, arg: import("./RoundTripTypes").Expression | Wildcard, separator: string | undefined, loc: SourceLocation): import("./RoundTripTypes").ExpressionAggregate;
358
+ isExpressionAggregate(obj: object): obj is SubTyped<"expression", "aggregate">;
359
+ isExpressionAggregateSeparator(obj: object): obj is SubTyped<"expression", "aggregate"> & {
360
+ separator: string;
361
+ };
362
+ isExpressionAggregateOnWildcard(obj: object): obj is SubTyped<"expression", "aggregate"> & {
363
+ expression: [Typed<"wildcard">];
364
+ };
365
+ isExpressionAggregateDefault(obj: object): obj is SubTyped<"expression", "aggregate"> & {
366
+ expression: [import("./RoundTripTypes").Expression];
367
+ };
368
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
369
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
370
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
371
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
372
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
373
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
374
+ };
375
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
376
+ forcedAutoGenTree<T extends object>(obj: T): T;
377
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
378
+ isSourceLocation(loc: object): loc is SourceLocation;
379
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
380
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
381
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
382
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
383
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
384
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
385
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
386
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
387
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
388
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
389
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
390
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
391
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
392
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
393
+ };
394
+ } & {
395
+ new (...args: any[]): {
396
+ contextDefinitionPrefix(loc: SourceLocation, key: string, value: import("./RoundTripTypes").TermIriFull): import("./RoundTripTypes").ContextDefinitionPrefix;
397
+ isContextDefinitionPrefix(contextDef: object): contextDef is SubTyped<"contextDef", "prefix">;
398
+ contextDefinitionBase(loc: SourceLocation, value: import("./RoundTripTypes").TermIriFull): import("./RoundTripTypes").ContextDefinitionBase;
399
+ isContextDefinitionBase(contextDef: object): contextDef is SubTyped<"contextDef", "base">;
400
+ wrap<T>(val: T, loc: SourceLocation): import("@traqula/core").Wrap<T>;
401
+ isLocalized(obj: unknown): obj is import("@traqula/core").Localized;
402
+ sourceLocation(...elements: (undefined | import("chevrotain").IToken | import("@traqula/core").Localized)[]): SourceLocation;
403
+ sourceLocationNoMaterialize(): import("@traqula/core").SourceLocationNoMaterialize;
404
+ dematerialized<T extends import("@traqula/core").Node>(arg: T): T & {
405
+ loc: import("@traqula/core").SourceLocationNoMaterialize;
406
+ };
407
+ safeObjectTransform(value: unknown, mapper: (some: object) => any): any;
408
+ forcedAutoGenTree<T extends object>(obj: T): T;
409
+ forceMaterialized<T extends import("@traqula/core").Node>(arg: T): T;
410
+ isSourceLocation(loc: object): loc is SourceLocation;
411
+ sourceLocationSource(start: number, end: number): import("@traqula/core").SourceLocationSource;
412
+ gen(): import("@traqula/core").SourceLocationNodeAutoGenerate;
413
+ isSourceLocationSource(loc: object): loc is import("@traqula/core").SourceLocationSource;
414
+ isSourceLocationStringReplace(loc: object): loc is import("@traqula/core").SourceLocationStringReplace;
415
+ sourceLocationNodeReplaceUnsafe(loc: SourceLocation): import("@traqula/core").SourceLocationNodeReplace;
416
+ sourceLocationNodeReplace(location: import("@traqula/core").SourceLocationSource): import("@traqula/core").SourceLocationNodeReplace;
417
+ sourceLocationNodeReplace(start: number, end: number): import("@traqula/core").SourceLocationNodeReplace;
418
+ isSourceLocationNodeReplace(loc: object): loc is import("@traqula/core").SourceLocationNodeReplace;
419
+ isSourceLocationNodeAutoGenerate(loc: object): loc is import("@traqula/core").SourceLocationNodeAutoGenerate;
420
+ nodeShouldPrint(node: import("@traqula/core").Localized): boolean;
421
+ printFilter(node: import("@traqula/core").Localized, callback: () => void): void;
422
+ isSourceLocationNoMaterialize(loc: object): loc is import("@traqula/core").SourceLocationNoMaterialize;
423
+ isOfType<Type extends string>(obj: object, type: Type): obj is Typed<Type>;
424
+ isOfSubType<Type extends string, SubType extends string>(obj: object, type: Type, subType: SubType): obj is SubTyped<Type, SubType>;
425
+ };
426
+ } & typeof CoreFactory;
427
+ export declare class Factory extends Factory_base {
428
+ alwaysSparql11(obj: object): obj is Sparql11Nodes;
429
+ isPath(obj: object): obj is SubTyped<'term', 'namedNode'> | Typed<'path'>;
430
+ isExpression(obj: object): obj is SubTyped<'term', 'namedNode' | 'variable' | 'literal'> | Typed<'expression'>;
431
+ graphNodeIdentifier(graphNode: GraphNode): Term;
432
+ triple(subject: TripleNesting['subject'], predicate: TripleNesting['predicate'], object: TripleNesting['object'], loc?: SourceLocation): TripleNesting;
433
+ isTriple(obj: object): obj is Typed<'triple'>;
434
+ datasetClauses(clauses: DatasetClauses['clauses'], loc: SourceLocation): DatasetClauses;
435
+ isDatasetClauses(obj: object): obj is Typed<'datasetClauses'>;
436
+ wildcard(loc: SourceLocation): Wildcard;
437
+ isWildcard(obj: object): obj is Typed<'wildcard'>;
438
+ isTripleCollection(obj: object): obj is Typed<'tripleCollection'>;
439
+ tripleCollectionBlankNodeProperties(identifier: TermBlank, triples: TripleNesting[], loc: SourceLocation): TripleCollectionBlankNodeProperties;
440
+ isTripleCollectionBlankNodeProperties(obj: object): obj is SubTyped<'tripleCollection', 'blankNodeProperties'>;
441
+ tripleCollectionList(identifier: TermBlank, triples: TripleNesting[], loc: SourceLocation): TripleCollectionList;
442
+ isTripleCollectionList(obj: object): obj is SubTyped<'tripleCollection', 'list'>;
443
+ graphQuads(graph: TermIri | TermVariable, triples: PatternBgp, loc: SourceLocation): GraphQuads;
444
+ isGraphQuads(obj: object): obj is GraphQuads;
445
+ isUpdate(obj: object): obj is Update;
446
+ }
447
+ export {};
package/lib/factory.js ADDED
@@ -0,0 +1,105 @@
1
+ import { CoreFactory } from '@traqula/core';
2
+ import { ContextFactoryMixin } from './factoryMixins/ContextFactory';
3
+ import { ExpressionFactoryMixin } from './factoryMixins/ExpressionFactory';
4
+ import { GraphRefFactoryMixin } from './factoryMixins/GraphRefFactory';
5
+ import { asArg } from './factoryMixins/mixins';
6
+ import { PathFactoryMixin } from './factoryMixins/PathFactory';
7
+ import { PatternFactoryMixin } from './factoryMixins/Patternfactory';
8
+ import { QueryFactoryMixin } from './factoryMixins/QueryFactory';
9
+ import { SolutionModifiersFactoryMixin } from './factoryMixins/SolutionModifiersFactory';
10
+ import { TermFactoryMixin } from './factoryMixins/TermFactory';
11
+ import { UpdateOperationFactoryMixin } from './factoryMixins/UpdateOperationFactory';
12
+ export class Factory extends asArg(CoreFactory)
13
+ .call(ContextFactoryMixin)
14
+ .call(ExpressionFactoryMixin)
15
+ .call(GraphRefFactoryMixin)
16
+ .call(PathFactoryMixin)
17
+ .call(PatternFactoryMixin)
18
+ .call(QueryFactoryMixin)
19
+ .call(SolutionModifiersFactoryMixin)
20
+ .call(TermFactoryMixin)
21
+ .call(UpdateOperationFactoryMixin)
22
+ .returns() {
23
+ alwaysSparql11(obj) {
24
+ return true;
25
+ }
26
+ isPath(obj) {
27
+ return this.isPathPure(obj) || this.isTermNamed(obj);
28
+ }
29
+ isExpression(obj) {
30
+ return this.isExpressionPure(obj) || this.isTermNamed(obj) || this.isTermVariable(obj) || this.isTermLiteral(obj);
31
+ }
32
+ graphNodeIdentifier(graphNode) {
33
+ return graphNode.type === 'tripleCollection' ? graphNode.identifier : graphNode;
34
+ }
35
+ triple(subject, predicate, object, loc) {
36
+ return {
37
+ type: 'triple',
38
+ subject,
39
+ predicate,
40
+ object,
41
+ loc: loc ?? this.sourceLocation(subject, predicate, object),
42
+ };
43
+ }
44
+ isTriple(obj) {
45
+ return this.isOfType(obj, 'triple');
46
+ }
47
+ datasetClauses(clauses, loc) {
48
+ return {
49
+ type: 'datasetClauses',
50
+ clauses,
51
+ loc,
52
+ };
53
+ }
54
+ isDatasetClauses(obj) {
55
+ return this.isOfType(obj, 'datasetClauses');
56
+ }
57
+ wildcard(loc) {
58
+ return { type: 'wildcard', loc };
59
+ }
60
+ isWildcard(obj) {
61
+ return this.isOfType(obj, 'wildcard');
62
+ }
63
+ isTripleCollection(obj) {
64
+ return this.isOfType(obj, 'tripleCollection');
65
+ }
66
+ tripleCollectionBlankNodeProperties(identifier, triples, loc) {
67
+ return {
68
+ type: 'tripleCollection',
69
+ subType: 'blankNodeProperties',
70
+ identifier,
71
+ triples,
72
+ loc,
73
+ };
74
+ }
75
+ isTripleCollectionBlankNodeProperties(obj) {
76
+ return this.isOfSubType(obj, 'tripleCollection', 'blankNodeProperties');
77
+ }
78
+ tripleCollectionList(identifier, triples, loc) {
79
+ return {
80
+ type: 'tripleCollection',
81
+ subType: 'list',
82
+ identifier,
83
+ triples,
84
+ loc,
85
+ };
86
+ }
87
+ isTripleCollectionList(obj) {
88
+ return this.isOfSubType(obj, 'tripleCollection', 'list');
89
+ }
90
+ graphQuads(graph, triples, loc) {
91
+ return {
92
+ type: 'graph',
93
+ graph,
94
+ triples,
95
+ loc,
96
+ };
97
+ }
98
+ isGraphQuads(obj) {
99
+ return super.isOfType(obj, 'graph');
100
+ }
101
+ isUpdate(obj) {
102
+ return super.isOfType(obj, 'update');
103
+ }
104
+ }
105
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["factory.ts"],"names":[],"mappings":"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","sourcesContent":["import type { SourceLocation, SubTyped, Typed } from '@traqula/core';\nimport { CoreFactory } from '@traqula/core';\nimport { ContextFactoryMixin } from './factoryMixins/ContextFactory';\nimport { ExpressionFactoryMixin } from './factoryMixins/ExpressionFactory';\nimport { GraphRefFactoryMixin } from './factoryMixins/GraphRefFactory';\nimport { asArg } from './factoryMixins/mixins';\nimport { PathFactoryMixin } from './factoryMixins/PathFactory';\nimport { PatternFactoryMixin } from './factoryMixins/Patternfactory';\nimport { QueryFactoryMixin } from './factoryMixins/QueryFactory';\nimport { SolutionModifiersFactoryMixin } from './factoryMixins/SolutionModifiersFactory';\nimport { TermFactoryMixin } from './factoryMixins/TermFactory';\nimport { UpdateOperationFactoryMixin } from './factoryMixins/UpdateOperationFactory';\nimport type {\n DatasetClauses,\n GraphNode,\n GraphQuads,\n PatternBgp,\n Sparql11Nodes,\n Term,\n TermBlank,\n TermIri,\n TermVariable,\n TripleCollectionBlankNodeProperties,\n TripleCollectionList,\n TripleNesting,\n Update,\n Wildcard,\n} from './RoundTripTypes';\n\nexport class Factory extends asArg(CoreFactory)\n .call(ContextFactoryMixin)\n .call(ExpressionFactoryMixin)\n .call(GraphRefFactoryMixin)\n .call(PathFactoryMixin)\n .call(PatternFactoryMixin)\n .call(QueryFactoryMixin)\n .call(SolutionModifiersFactoryMixin)\n .call(TermFactoryMixin)\n .call(UpdateOperationFactoryMixin)\n .returns() {\n public alwaysSparql11(obj: object): obj is Sparql11Nodes {\n return true;\n }\n\n public isPath(obj: object): obj is SubTyped<'term', 'namedNode'> | Typed<'path'> {\n return this.isPathPure(obj) || this.isTermNamed(obj);\n }\n\n public isExpression(obj: object):\n obj is SubTyped<'term', 'namedNode' | 'variable' | 'literal'> | Typed<'expression'> {\n return this.isExpressionPure(obj) || this.isTermNamed(obj) || this.isTermVariable(obj) || this.isTermLiteral(obj);\n }\n\n public graphNodeIdentifier(graphNode: GraphNode): Term {\n return graphNode.type === 'tripleCollection' ? graphNode.identifier : graphNode;\n }\n\n public triple(\n subject: TripleNesting['subject'],\n predicate: TripleNesting['predicate'],\n object: TripleNesting['object'],\n loc?: SourceLocation,\n ): TripleNesting {\n return {\n type: 'triple',\n subject,\n predicate,\n object,\n loc: loc ?? this.sourceLocation(subject, predicate, object),\n };\n }\n\n public isTriple(obj: object): obj is Typed<'triple'> {\n return this.isOfType(obj, 'triple');\n }\n\n public datasetClauses(clauses: DatasetClauses['clauses'], loc: SourceLocation): DatasetClauses {\n return {\n type: 'datasetClauses',\n clauses,\n loc,\n };\n }\n\n public isDatasetClauses(obj: object): obj is Typed<'datasetClauses'> {\n return this.isOfType(obj, 'datasetClauses');\n }\n\n public wildcard(loc: SourceLocation): Wildcard {\n return { type: 'wildcard', loc };\n }\n\n public isWildcard(obj: object): obj is Typed<'wildcard'> {\n return this.isOfType(obj, 'wildcard');\n }\n\n public isTripleCollection(obj: object): obj is Typed<'tripleCollection'> {\n return this.isOfType(obj, 'tripleCollection');\n }\n\n public tripleCollectionBlankNodeProperties(\n identifier: TermBlank,\n triples: TripleNesting[],\n loc: SourceLocation,\n ): TripleCollectionBlankNodeProperties {\n return {\n type: 'tripleCollection',\n subType: 'blankNodeProperties',\n identifier,\n triples,\n loc,\n };\n }\n\n public isTripleCollectionBlankNodeProperties(obj: object):\n obj is SubTyped<'tripleCollection', 'blankNodeProperties'> {\n return this.isOfSubType(obj, 'tripleCollection', 'blankNodeProperties');\n }\n\n public tripleCollectionList(\n identifier: TermBlank,\n triples: TripleNesting[],\n loc: SourceLocation,\n ): TripleCollectionList {\n return {\n type: 'tripleCollection',\n subType: 'list',\n identifier,\n triples,\n loc,\n };\n }\n\n public isTripleCollectionList(obj: object):\n obj is SubTyped<'tripleCollection', 'list'> {\n return this.isOfSubType(obj, 'tripleCollection', 'list');\n }\n\n public graphQuads(graph: TermIri | TermVariable, triples: PatternBgp, loc: SourceLocation): GraphQuads {\n return {\n type: 'graph',\n graph,\n triples,\n loc,\n };\n }\n\n public isGraphQuads(obj: object): obj is GraphQuads {\n return super.isOfType(obj, 'graph');\n }\n\n public isUpdate(obj: object): obj is Update {\n return super.isOfType(obj, 'update');\n }\n}\n"]}