@undefineds.co/xpod 0.3.17 → 0.3.22

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 (99) hide show
  1. package/config/bun.json +57 -11
  2. package/config/cloud.json +14 -12
  3. package/config/local.json +16 -14
  4. package/config/xpod.json +47 -9
  5. package/dist/api/matrix/PodMatrixStore.d.ts +4 -7
  6. package/dist/api/matrix/PodMatrixStore.js +116 -148
  7. package/dist/api/matrix/PodMatrixStore.js.map +1 -1
  8. package/dist/api/matrix/types.d.ts +2 -0
  9. package/dist/api/matrix/types.js.map +1 -1
  10. package/dist/components/components.jsonld +3 -0
  11. package/dist/components/context.jsonld +71 -32
  12. package/dist/http/SubgraphSparqlHttpHandler.d.ts +1 -0
  13. package/dist/http/SubgraphSparqlHttpHandler.js +27 -4
  14. package/dist/http/SubgraphSparqlHttpHandler.js.map +1 -1
  15. package/dist/http/SubgraphSparqlHttpHandler.jsonld +4 -0
  16. package/dist/http/vector/VectorHttpHandler.d.ts +5 -1
  17. package/dist/http/vector/VectorHttpHandler.js +5 -5
  18. package/dist/http/vector/VectorHttpHandler.js.map +1 -1
  19. package/dist/http/vector/VectorHttpHandler.jsonld +40 -28
  20. package/dist/index.d.ts +5 -3
  21. package/dist/index.js +9 -6
  22. package/dist/index.js.map +1 -1
  23. package/dist/runtime/Proxy.d.ts +3 -0
  24. package/dist/runtime/Proxy.js +31 -7
  25. package/dist/runtime/Proxy.js.map +1 -1
  26. package/dist/storage/SparqlUpdateResourceStore.js +94 -33
  27. package/dist/storage/SparqlUpdateResourceStore.js.map +1 -1
  28. package/dist/storage/accessors/MixDataAccessor.d.ts +22 -5
  29. package/dist/storage/accessors/MixDataAccessor.js +376 -61
  30. package/dist/storage/accessors/MixDataAccessor.js.map +1 -1
  31. package/dist/storage/accessors/MixDataAccessor.jsonld +73 -5
  32. package/dist/storage/accessors/QuadstoreSparqlDataAccessor.js +32 -10
  33. package/dist/storage/accessors/QuadstoreSparqlDataAccessor.js.map +1 -1
  34. package/dist/storage/accessors/QuintStoreSparqlDataAccessor.js +28 -6
  35. package/dist/storage/accessors/QuintStoreSparqlDataAccessor.js.map +1 -1
  36. package/dist/storage/accessors/SolidRdfDataAccessor.d.ts +45 -0
  37. package/dist/storage/accessors/SolidRdfDataAccessor.js +277 -0
  38. package/dist/storage/accessors/SolidRdfDataAccessor.js.map +1 -0
  39. package/dist/storage/accessors/SolidRdfDataAccessor.jsonld +161 -0
  40. package/dist/storage/rdf/Rdf3xIndex.d.ts +122 -0
  41. package/dist/storage/rdf/Rdf3xIndex.js +2695 -0
  42. package/dist/storage/rdf/Rdf3xIndex.js.map +1 -0
  43. package/dist/storage/rdf/Rdf3xIndex.jsonld +528 -0
  44. package/dist/storage/rdf/Rdf3xSchema.d.ts +20 -0
  45. package/dist/storage/rdf/Rdf3xSchema.js +65 -0
  46. package/dist/storage/rdf/Rdf3xSchema.js.map +1 -0
  47. package/dist/storage/rdf/RdfLocalQueryEngine.d.ts +10 -4
  48. package/dist/storage/rdf/RdfLocalQueryEngine.js +607 -127
  49. package/dist/storage/rdf/RdfLocalQueryEngine.js.map +1 -1
  50. package/dist/storage/rdf/RdfQuadIndex.d.ts +12 -1
  51. package/dist/storage/rdf/RdfQuadIndex.js +152 -22
  52. package/dist/storage/rdf/RdfQuadIndex.js.map +1 -1
  53. package/dist/storage/rdf/RdfQuadIndex.jsonld +36 -4
  54. package/dist/storage/rdf/RdfSparqlAdapter.d.ts +20 -2
  55. package/dist/storage/rdf/RdfSparqlAdapter.js +364 -40
  56. package/dist/storage/rdf/RdfSparqlAdapter.js.map +1 -1
  57. package/dist/storage/rdf/RdfSparqlAdapter.jsonld +60 -0
  58. package/dist/storage/rdf/RdfTermDictionary.d.ts +8 -0
  59. package/dist/storage/rdf/RdfTermDictionary.js +141 -70
  60. package/dist/storage/rdf/RdfTermDictionary.js.map +1 -1
  61. package/dist/storage/rdf/RdfTermDictionary.jsonld +24 -0
  62. package/dist/storage/rdf/RdfTextIndex.js +10 -3
  63. package/dist/storage/rdf/RdfTextIndex.js.map +1 -1
  64. package/dist/storage/rdf/SolidRdfEngine.d.ts +15 -6
  65. package/dist/storage/rdf/SolidRdfEngine.js +218 -25
  66. package/dist/storage/rdf/SolidRdfEngine.js.map +1 -1
  67. package/dist/storage/rdf/SolidRdfEngine.jsonld +70 -7
  68. package/dist/storage/rdf/SolidRdfSparqlEngine.d.ts +11 -7
  69. package/dist/storage/rdf/SolidRdfSparqlEngine.js +60 -47
  70. package/dist/storage/rdf/SolidRdfSparqlEngine.js.map +1 -1
  71. package/dist/storage/rdf/SolidRdfSparqlEngine.jsonld +9 -5
  72. package/dist/storage/rdf/index.d.ts +2 -2
  73. package/dist/storage/rdf/index.js +3 -3
  74. package/dist/storage/rdf/index.js.map +1 -1
  75. package/dist/storage/rdf/models-benchmark.d.ts +12 -1
  76. package/dist/storage/rdf/models-benchmark.js +549 -32
  77. package/dist/storage/rdf/models-benchmark.js.map +1 -1
  78. package/dist/storage/rdf/types.d.ts +81 -7
  79. package/dist/storage/rdf/types.js.map +1 -1
  80. package/dist/storage/sparql/CompatibilitySparqlEngine.d.ts +36 -0
  81. package/dist/storage/sparql/CompatibilitySparqlEngine.js +96 -0
  82. package/dist/storage/sparql/CompatibilitySparqlEngine.js.map +1 -0
  83. package/dist/storage/sparql/CompatibilitySparqlEngine.jsonld +123 -0
  84. package/dist/storage/sparql/CompatibilitySparqlEngineImpl.d.ts +35 -0
  85. package/dist/storage/sparql/CompatibilitySparqlEngineImpl.js +112 -0
  86. package/dist/storage/sparql/CompatibilitySparqlEngineImpl.js.map +1 -0
  87. package/dist/storage/sparql/SubgraphQueryEngine.d.ts +1 -36
  88. package/dist/storage/sparql/SubgraphQueryEngine.js +2 -115
  89. package/dist/storage/sparql/SubgraphQueryEngine.js.map +1 -1
  90. package/dist/storage/sparql/SubgraphQueryEngine.jsonld +1 -124
  91. package/dist/terminal/AclPermissionService.d.ts +2 -1
  92. package/dist/terminal/AclPermissionService.js +26 -3
  93. package/dist/terminal/AclPermissionService.js.map +1 -1
  94. package/dist/terminal/TerminalSessionManager.js +25 -3
  95. package/dist/terminal/TerminalSessionManager.js.map +1 -1
  96. package/package.json +1 -1
  97. package/dist/storage/rdf/Rdf3xTripleIndex.d.ts +0 -55
  98. package/dist/storage/rdf/Rdf3xTripleIndex.js +0 -1235
  99. package/dist/storage/rdf/Rdf3xTripleIndex.js.map +0 -1
@@ -0,0 +1,528 @@
1
+ {
2
+ "@context": [
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@undefineds.co/xpod/^0.0.0/components/context.jsonld"
4
+ ],
5
+ "@id": "npmd:@undefineds.co/xpod",
6
+ "components": [
7
+ {
8
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex",
9
+ "@type": "Class",
10
+ "requireElement": "Rdf3xIndex",
11
+ "parameters": [
12
+ {
13
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex_options_path",
14
+ "range": "xsd:string"
15
+ },
16
+ {
17
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex_options_debug",
18
+ "range": {
19
+ "@type": "ParameterRangeUnion",
20
+ "parameterRangeElements": [
21
+ "xsd:boolean",
22
+ {
23
+ "@type": "ParameterRangeUndefined"
24
+ }
25
+ ]
26
+ }
27
+ }
28
+ ],
29
+ "memberFields": [
30
+ {
31
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_options",
32
+ "memberFieldName": "options"
33
+ },
34
+ {
35
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_sqliteRuntime",
36
+ "memberFieldName": "sqliteRuntime"
37
+ },
38
+ {
39
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_db",
40
+ "memberFieldName": "db"
41
+ },
42
+ {
43
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_dictionary",
44
+ "memberFieldName": "dictionary"
45
+ },
46
+ {
47
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_constructor",
48
+ "memberFieldName": "constructor"
49
+ },
50
+ {
51
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_open",
52
+ "memberFieldName": "open"
53
+ },
54
+ {
55
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_close",
56
+ "memberFieldName": "close"
57
+ },
58
+ {
59
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_clear",
60
+ "memberFieldName": "clear"
61
+ },
62
+ {
63
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_rebuildFromCurrentQuads",
64
+ "memberFieldName": "rebuildFromCurrentQuads"
65
+ },
66
+ {
67
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_factsDataVersion",
68
+ "memberFieldName": "factsDataVersion"
69
+ },
70
+ {
71
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_isSyncedWithCurrentQuads",
72
+ "memberFieldName": "isSyncedWithCurrentQuads"
73
+ },
74
+ {
75
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_scan",
76
+ "memberFieldName": "scan"
77
+ },
78
+ {
79
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_scanWithTupleConstraints",
80
+ "memberFieldName": "scanWithTupleConstraints"
81
+ },
82
+ {
83
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_countDistinct",
84
+ "memberFieldName": "countDistinct"
85
+ },
86
+ {
87
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_scanInternal",
88
+ "memberFieldName": "scanInternal"
89
+ },
90
+ {
91
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compileDistinctCountSql",
92
+ "memberFieldName": "compileDistinctCountSql"
93
+ },
94
+ {
95
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compileMembershipDistinctCountSql",
96
+ "memberFieldName": "compileMembershipDistinctCountSql"
97
+ },
98
+ {
99
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_joinPatterns",
100
+ "memberFieldName": "joinPatterns"
101
+ },
102
+ {
103
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_countJoinPatterns",
104
+ "memberFieldName": "countJoinPatterns"
105
+ },
106
+ {
107
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_aggregateJoinPatterns",
108
+ "memberFieldName": "aggregateJoinPatterns"
109
+ },
110
+ {
111
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_groupCountJoinPatterns",
112
+ "memberFieldName": "groupCountJoinPatterns"
113
+ },
114
+ {
115
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_groupAggregateJoinPatterns",
116
+ "memberFieldName": "groupAggregateJoinPatterns"
117
+ },
118
+ {
119
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_aggregateJoinPatternsInternal",
120
+ "memberFieldName": "aggregateJoinPatternsInternal"
121
+ },
122
+ {
123
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_groupAggregateJoinPatternsInternal",
124
+ "memberFieldName": "groupAggregateJoinPatternsInternal"
125
+ },
126
+ {
127
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateCardinality",
128
+ "memberFieldName": "estimateCardinality"
129
+ },
130
+ {
131
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_stats",
132
+ "memberFieldName": "stats"
133
+ },
134
+ {
135
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_collectSpaceObjects",
136
+ "memberFieldName": "collectSpaceObjects"
137
+ },
138
+ {
139
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_initializeSchema",
140
+ "memberFieldName": "initializeSchema"
141
+ },
142
+ {
143
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_dropMaterializedFactCopies",
144
+ "memberFieldName": "dropMaterializedFactCopies"
145
+ },
146
+ {
147
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_dropLegacyRowidTables",
148
+ "memberFieldName": "dropLegacyRowidTables"
149
+ },
150
+ {
151
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_clearRdf3xTables",
152
+ "memberFieldName": "clearRdf3xTables"
153
+ },
154
+ {
155
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_prepareSchemaVersion",
156
+ "memberFieldName": "prepareSchemaVersion"
157
+ },
158
+ {
159
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_ensureMetadataTable",
160
+ "memberFieldName": "ensureMetadataTable"
161
+ },
162
+ {
163
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_dropRdf3xSchema",
164
+ "memberFieldName": "dropRdf3xSchema"
165
+ },
166
+ {
167
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_currentFactsDataVersion",
168
+ "memberFieldName": "currentFactsDataVersion"
169
+ },
170
+ {
171
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_setFactsDataVersion",
172
+ "memberFieldName": "setFactsDataVersion"
173
+ },
174
+ {
175
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_setMetadataValue",
176
+ "memberFieldName": "setMetadataValue"
177
+ },
178
+ {
179
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_rebuildPairProjection",
180
+ "memberFieldName": "rebuildPairProjection"
181
+ },
182
+ {
183
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_rebuildTermProjection",
184
+ "memberFieldName": "rebuildTermProjection"
185
+ },
186
+ {
187
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_rebuildGraphProjection",
188
+ "memberFieldName": "rebuildGraphProjection"
189
+ },
190
+ {
191
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compileScanSql",
192
+ "memberFieldName": "compileScanSql"
193
+ },
194
+ {
195
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compileMembershipScanSql",
196
+ "memberFieldName": "compileMembershipScanSql"
197
+ },
198
+ {
199
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compileJoinPatterns",
200
+ "memberFieldName": "compileJoinPatterns"
201
+ },
202
+ {
203
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_joinSourceSql",
204
+ "memberFieldName": "joinSourceSql"
205
+ },
206
+ {
207
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_membershipJoinSourceSql",
208
+ "memberFieldName": "membershipJoinSourceSql"
209
+ },
210
+ {
211
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_canUseIndexOnlyJoin",
212
+ "memberFieldName": "canUseIndexOnlyJoin"
213
+ },
214
+ {
215
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildMergeJoinPlan",
216
+ "memberFieldName": "buildMergeJoinPlan"
217
+ },
218
+ {
219
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_joinSourceColumnRef",
220
+ "memberFieldName": "joinSourceColumnRef"
221
+ },
222
+ {
223
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildTupleConstraintJoin",
224
+ "memberFieldName": "buildTupleConstraintJoin"
225
+ },
226
+ {
227
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildJoinValuesJoins",
228
+ "memberFieldName": "buildJoinValuesJoins"
229
+ },
230
+ {
231
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_populateJoinValuesTable",
232
+ "memberFieldName": "populateJoinValuesTable"
233
+ },
234
+ {
235
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_joinValueColumnName",
236
+ "memberFieldName": "joinValueColumnName"
237
+ },
238
+ {
239
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_populateTupleConstraintTable",
240
+ "memberFieldName": "populateTupleConstraintTable"
241
+ },
242
+ {
243
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_termIdForTupleConstraint",
244
+ "memberFieldName": "termIdForTupleConstraint"
245
+ },
246
+ {
247
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_tupleColumnName",
248
+ "memberFieldName": "tupleColumnName"
249
+ },
250
+ {
251
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_tupleColumnRef",
252
+ "memberFieldName": "tupleColumnRef"
253
+ },
254
+ {
255
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildJoinOrderClause",
256
+ "memberFieldName": "buildJoinOrderClause"
257
+ },
258
+ {
259
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildJoinAggregateColumn",
260
+ "memberFieldName": "buildJoinAggregateColumn"
261
+ },
262
+ {
263
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildGroupAggregateHavingClause",
264
+ "memberFieldName": "buildGroupAggregateHavingClause"
265
+ },
266
+ {
267
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_havingSqlOperator",
268
+ "memberFieldName": "havingSqlOperator"
269
+ },
270
+ {
271
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildGroupAggregateOrderScope",
272
+ "memberFieldName": "buildGroupAggregateOrderScope"
273
+ },
274
+ {
275
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildOrderClause",
276
+ "memberFieldName": "buildOrderClause"
277
+ },
278
+ {
279
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_chooseJoinStart",
280
+ "memberFieldName": "chooseJoinStart"
281
+ },
282
+ {
283
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_orderJoinSources",
284
+ "memberFieldName": "orderJoinSources"
285
+ },
286
+ {
287
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_chooseNextJoinSource",
288
+ "memberFieldName": "chooseNextJoinSource"
289
+ },
290
+ {
291
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compareJoinConnectivity",
292
+ "memberFieldName": "compareJoinConnectivity"
293
+ },
294
+ {
295
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_boundVariableCount",
296
+ "memberFieldName": "boundVariableCount"
297
+ },
298
+ {
299
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compareJoinFanout",
300
+ "memberFieldName": "compareJoinFanout"
301
+ },
302
+ {
303
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateJoinFanout",
304
+ "memberFieldName": "estimateJoinFanout"
305
+ },
306
+ {
307
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_boundPatternKeys",
308
+ "memberFieldName": "boundPatternKeys"
309
+ },
310
+ {
311
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_sourceVariables",
312
+ "memberFieldName": "sourceVariables"
313
+ },
314
+ {
315
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_compareJoinSources",
316
+ "memberFieldName": "compareJoinSources"
317
+ },
318
+ {
319
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateResolvedCardinality",
320
+ "memberFieldName": "estimateResolvedCardinality"
321
+ },
322
+ {
323
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveJoinPattern",
324
+ "memberFieldName": "resolveJoinPattern"
325
+ },
326
+ {
327
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_joinMetrics",
328
+ "memberFieldName": "joinMetrics"
329
+ },
330
+ {
331
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_joinRowsToBindings",
332
+ "memberFieldName": "joinRowsToBindings"
333
+ },
334
+ {
335
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildPagination",
336
+ "memberFieldName": "buildPagination"
337
+ },
338
+ {
339
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateExactTriple",
340
+ "memberFieldName": "estimateExactTriple"
341
+ },
342
+ {
343
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimatePairProjection",
344
+ "memberFieldName": "estimatePairProjection"
345
+ },
346
+ {
347
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateTermProjection",
348
+ "memberFieldName": "estimateTermProjection"
349
+ },
350
+ {
351
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateMembershipCardinality",
352
+ "memberFieldName": "estimateMembershipCardinality"
353
+ },
354
+ {
355
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateResolvedMembershipCardinality",
356
+ "memberFieldName": "estimateResolvedMembershipCardinality"
357
+ },
358
+ {
359
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_buildMembershipWhere",
360
+ "memberFieldName": "buildMembershipWhere"
361
+ },
362
+ {
363
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_pairProjectionFor",
364
+ "memberFieldName": "pairProjectionFor"
365
+ },
366
+ {
367
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendResolvedIdSetConditions",
368
+ "memberFieldName": "appendResolvedIdSetConditions"
369
+ },
370
+ {
371
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendResolvedExcludedIdSetConditions",
372
+ "memberFieldName": "appendResolvedExcludedIdSetConditions"
373
+ },
374
+ {
375
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolvePattern",
376
+ "memberFieldName": "resolvePattern"
377
+ },
378
+ {
379
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveTermInIds",
380
+ "memberFieldName": "resolveTermInIds"
381
+ },
382
+ {
383
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveTermNotInIds",
384
+ "memberFieldName": "resolveTermNotInIds"
385
+ },
386
+ {
387
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveOperatorPattern",
388
+ "memberFieldName": "resolveOperatorPattern"
389
+ },
390
+ {
391
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveTermMetadataFilter",
392
+ "memberFieldName": "resolveTermMetadataFilter"
393
+ },
394
+ {
395
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveTextSearchFilter",
396
+ "memberFieldName": "resolveTextSearchFilter"
397
+ },
398
+ {
399
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveDatatypeFilter",
400
+ "memberFieldName": "resolveDatatypeFilter"
401
+ },
402
+ {
403
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_countDistinctResolvedMembershipTuple",
404
+ "memberFieldName": "countDistinctResolvedMembershipTuple"
405
+ },
406
+ {
407
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateObjectRangeCardinality",
408
+ "memberFieldName": "estimateObjectRangeCardinality"
409
+ },
410
+ {
411
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendObjectRangeCondition",
412
+ "memberFieldName": "appendObjectRangeCondition"
413
+ },
414
+ {
415
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendTermFilterJoinsAndConditions",
416
+ "memberFieldName": "appendTermFilterJoinsAndConditions"
417
+ },
418
+ {
419
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendTermFilterCondition",
420
+ "memberFieldName": "appendTermFilterCondition"
421
+ },
422
+ {
423
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendTextSearchCondition",
424
+ "memberFieldName": "appendTextSearchCondition"
425
+ },
426
+ {
427
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendTermTypeCondition",
428
+ "memberFieldName": "appendTermTypeCondition"
429
+ },
430
+ {
431
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendLanguageCondition",
432
+ "memberFieldName": "appendLanguageCondition"
433
+ },
434
+ {
435
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_appendDatatypeCondition",
436
+ "memberFieldName": "appendDatatypeCondition"
437
+ },
438
+ {
439
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_resolveObjectRange",
440
+ "memberFieldName": "resolveObjectRange"
441
+ },
442
+ {
443
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_numericValueForPattern",
444
+ "memberFieldName": "numericValueForPattern"
445
+ },
446
+ {
447
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_lexicalValueForPattern",
448
+ "memberFieldName": "lexicalValueForPattern"
449
+ },
450
+ {
451
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_choosePermutation",
452
+ "memberFieldName": "choosePermutation"
453
+ },
454
+ {
455
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_permutation",
456
+ "memberFieldName": "permutation"
457
+ },
458
+ {
459
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_rowsToQuads",
460
+ "memberFieldName": "rowsToQuads"
461
+ },
462
+ {
463
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_permutationSource",
464
+ "memberFieldName": "permutationSource"
465
+ },
466
+ {
467
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_factSource",
468
+ "memberFieldName": "factSource"
469
+ },
470
+ {
471
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_uniqueTripleCount",
472
+ "memberFieldName": "uniqueTripleCount"
473
+ },
474
+ {
475
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_rowCount",
476
+ "memberFieldName": "rowCount"
477
+ },
478
+ {
479
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_collectPageCount",
480
+ "memberFieldName": "collectPageCount"
481
+ },
482
+ {
483
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateDatabaseBytes",
484
+ "memberFieldName": "estimateDatabaseBytes"
485
+ },
486
+ {
487
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimateSpaceObjectsFromSchema",
488
+ "memberFieldName": "estimateSpaceObjectsFromSchema"
489
+ },
490
+ {
491
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_estimatePageSize",
492
+ "memberFieldName": "estimatePageSize"
493
+ },
494
+ {
495
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_metrics",
496
+ "memberFieldName": "metrics"
497
+ },
498
+ {
499
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_requireDb",
500
+ "memberFieldName": "requireDb"
501
+ },
502
+ {
503
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex__member_requireDictionary",
504
+ "memberFieldName": "requireDictionary"
505
+ }
506
+ ],
507
+ "constructorArguments": [
508
+ {
509
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex_options__constructorArgument",
510
+ "fields": [
511
+ {
512
+ "keyRaw": "path",
513
+ "value": {
514
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex_options_path"
515
+ }
516
+ },
517
+ {
518
+ "keyRaw": "debug",
519
+ "value": {
520
+ "@id": "undefineds:dist/storage/rdf/Rdf3xIndex.jsonld#Rdf3xIndex_options_debug"
521
+ }
522
+ }
523
+ ]
524
+ }
525
+ ]
526
+ }
527
+ ]
528
+ }
@@ -0,0 +1,20 @@
1
+ import type { SqliteDatabase } from '../SqliteRuntime';
2
+ export declare const RDF3X_GRAPH_PROJECTION_TABLE = "rdf3x_stat_g";
3
+ export declare const RDF3X_PAIR_PROJECTION_TABLE_BY_NAME: {
4
+ readonly SP: "rdf3x_stat_sp";
5
+ readonly SO: "rdf3x_stat_so";
6
+ readonly PS: "rdf3x_stat_ps";
7
+ readonly PO: "rdf3x_stat_po";
8
+ readonly OS: "rdf3x_stat_os";
9
+ readonly OP: "rdf3x_stat_op";
10
+ };
11
+ export declare const RDF3X_TERM_PROJECTION_TABLE_BY_NAME: {
12
+ readonly S: "rdf3x_stat_s";
13
+ readonly P: "rdf3x_stat_p";
14
+ readonly O: "rdf3x_stat_o";
15
+ };
16
+ export declare const RDF3X_DERIVED_TABLES: readonly ["rdf3x_metadata", "rdf3x_stat_g", ...("rdf3x_stat_sp" | "rdf3x_stat_so" | "rdf3x_stat_ps" | "rdf3x_stat_po" | "rdf3x_stat_os" | "rdf3x_stat_op" | "rdf3x_stat_s" | "rdf3x_stat_p" | "rdf3x_stat_o")[]];
17
+ export declare const RDF3X_MATERIALIZED_FACT_COPY_TABLES: readonly ["rdf3x_triple_membership", "rdf3x_spo", "rdf3x_sop", "rdf3x_pso", "rdf3x_pos", "rdf3x_osp", "rdf3x_ops"];
18
+ export declare const RDF3X_DERIVED_INDEXES: readonly ["rdf3x_membership_gspo", "rdf3x_membership_spo", "rdf3x_membership_source"];
19
+ export declare function dropRdf3xMaterializedFactCopies(db: SqliteDatabase): void;
20
+ export declare function dropRdf3xDerivedSchemaObjects(db: SqliteDatabase): void;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RDF3X_DERIVED_INDEXES = exports.RDF3X_MATERIALIZED_FACT_COPY_TABLES = exports.RDF3X_DERIVED_TABLES = exports.RDF3X_TERM_PROJECTION_TABLE_BY_NAME = exports.RDF3X_PAIR_PROJECTION_TABLE_BY_NAME = exports.RDF3X_GRAPH_PROJECTION_TABLE = void 0;
4
+ exports.dropRdf3xMaterializedFactCopies = dropRdf3xMaterializedFactCopies;
5
+ exports.dropRdf3xDerivedSchemaObjects = dropRdf3xDerivedSchemaObjects;
6
+ exports.RDF3X_GRAPH_PROJECTION_TABLE = 'rdf3x_stat_g';
7
+ exports.RDF3X_PAIR_PROJECTION_TABLE_BY_NAME = {
8
+ SP: 'rdf3x_stat_sp',
9
+ SO: 'rdf3x_stat_so',
10
+ PS: 'rdf3x_stat_ps',
11
+ PO: 'rdf3x_stat_po',
12
+ OS: 'rdf3x_stat_os',
13
+ OP: 'rdf3x_stat_op',
14
+ };
15
+ exports.RDF3X_TERM_PROJECTION_TABLE_BY_NAME = {
16
+ S: 'rdf3x_stat_s',
17
+ P: 'rdf3x_stat_p',
18
+ O: 'rdf3x_stat_o',
19
+ };
20
+ exports.RDF3X_DERIVED_TABLES = [
21
+ 'rdf3x_metadata',
22
+ exports.RDF3X_GRAPH_PROJECTION_TABLE,
23
+ ...Object.values(exports.RDF3X_PAIR_PROJECTION_TABLE_BY_NAME),
24
+ ...Object.values(exports.RDF3X_TERM_PROJECTION_TABLE_BY_NAME),
25
+ ];
26
+ exports.RDF3X_MATERIALIZED_FACT_COPY_TABLES = [
27
+ 'rdf3x_triple_membership',
28
+ 'rdf3x_spo',
29
+ 'rdf3x_sop',
30
+ 'rdf3x_pso',
31
+ 'rdf3x_pos',
32
+ 'rdf3x_osp',
33
+ 'rdf3x_ops',
34
+ ];
35
+ exports.RDF3X_DERIVED_INDEXES = [
36
+ 'rdf3x_membership_gspo',
37
+ 'rdf3x_membership_spo',
38
+ 'rdf3x_membership_source',
39
+ ];
40
+ function dropRdf3xMaterializedFactCopies(db) {
41
+ dropRdf3xObjects(db, exports.RDF3X_MATERIALIZED_FACT_COPY_TABLES, exports.RDF3X_DERIVED_INDEXES);
42
+ }
43
+ function dropRdf3xDerivedSchemaObjects(db) {
44
+ dropRdf3xObjects(db, [...exports.RDF3X_DERIVED_TABLES, ...exports.RDF3X_MATERIALIZED_FACT_COPY_TABLES], exports.RDF3X_DERIVED_INDEXES);
45
+ }
46
+ function dropRdf3xObjects(db, names, indexes) {
47
+ db.exec(indexes.map((index) => `DROP INDEX IF EXISTS ${index};`).join('\n'));
48
+ if (names.length === 0) {
49
+ return;
50
+ }
51
+ const rows = db.prepare(`
52
+ SELECT name, type
53
+ FROM sqlite_schema
54
+ WHERE name IN (${names.map(() => '?').join(', ')})
55
+ `).all(...names);
56
+ for (const row of rows) {
57
+ if (row.type === 'view') {
58
+ db.exec(`DROP VIEW IF EXISTS ${row.name};`);
59
+ }
60
+ else if (row.type === 'table') {
61
+ db.exec(`DROP TABLE IF EXISTS ${row.name};`);
62
+ }
63
+ }
64
+ }
65
+ //# sourceMappingURL=Rdf3xSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rdf3xSchema.js","sourceRoot":"","sources":["../../../src/storage/rdf/Rdf3xSchema.ts"],"names":[],"mappings":";;;AA0CA,0EAEC;AAED,sEAMC;AAlDY,QAAA,4BAA4B,GAAG,cAAc,CAAC;AAE9C,QAAA,mCAAmC,GAAG;IACjD,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;CACX,CAAC;AAEE,QAAA,mCAAmC,GAAG;IACjD,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;CACT,CAAC;AAEE,QAAA,oBAAoB,GAAG;IAClC,gBAAgB;IAChB,oCAA4B;IAC5B,GAAG,MAAM,CAAC,MAAM,CAAC,2CAAmC,CAAC;IACrD,GAAG,MAAM,CAAC,MAAM,CAAC,2CAAmC,CAAC;CAC7C,CAAC;AAEE,QAAA,mCAAmC,GAAG;IACjD,yBAAyB;IACzB,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACH,CAAC;AAEE,QAAA,qBAAqB,GAAG;IACnC,uBAAuB;IACvB,sBAAsB;IACtB,yBAAyB;CACjB,CAAC;AAEX,SAAgB,+BAA+B,CAAC,EAAkB;IAChE,gBAAgB,CAAC,EAAE,EAAE,2CAAmC,EAAE,6BAAqB,CAAC,CAAC;AACnF,CAAC;AAED,SAAgB,6BAA6B,CAAC,EAAkB;IAC9D,gBAAgB,CACd,EAAE,EACF,CAAC,GAAG,4BAAoB,EAAE,GAAG,2CAAmC,CAAC,EACjE,6BAAqB,CACtB,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CACvB,EAAkB,EAClB,KAAwB,EACxB,OAA0B;IAE1B,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,wBAAwB,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7E,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO;IACT,CAAC;IAED,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAiC;;;qBAGrC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;GACjD,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAEjB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACxB,EAAE,CAAC,IAAI,CAAC,uBAAuB,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC;QAC9C,CAAC;aAAM,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAChC,EAAE,CAAC,IAAI,CAAC,wBAAwB,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import type { SqliteDatabase } from '../SqliteRuntime';\n\nexport const RDF3X_GRAPH_PROJECTION_TABLE = 'rdf3x_stat_g';\n\nexport const RDF3X_PAIR_PROJECTION_TABLE_BY_NAME = {\n SP: 'rdf3x_stat_sp',\n SO: 'rdf3x_stat_so',\n PS: 'rdf3x_stat_ps',\n PO: 'rdf3x_stat_po',\n OS: 'rdf3x_stat_os',\n OP: 'rdf3x_stat_op',\n} as const;\n\nexport const RDF3X_TERM_PROJECTION_TABLE_BY_NAME = {\n S: 'rdf3x_stat_s',\n P: 'rdf3x_stat_p',\n O: 'rdf3x_stat_o',\n} as const;\n\nexport const RDF3X_DERIVED_TABLES = [\n 'rdf3x_metadata',\n RDF3X_GRAPH_PROJECTION_TABLE,\n ...Object.values(RDF3X_PAIR_PROJECTION_TABLE_BY_NAME),\n ...Object.values(RDF3X_TERM_PROJECTION_TABLE_BY_NAME),\n] as const;\n\nexport const RDF3X_MATERIALIZED_FACT_COPY_TABLES = [\n 'rdf3x_triple_membership',\n 'rdf3x_spo',\n 'rdf3x_sop',\n 'rdf3x_pso',\n 'rdf3x_pos',\n 'rdf3x_osp',\n 'rdf3x_ops',\n] as const;\n\nexport const RDF3X_DERIVED_INDEXES = [\n 'rdf3x_membership_gspo',\n 'rdf3x_membership_spo',\n 'rdf3x_membership_source',\n] as const;\n\nexport function dropRdf3xMaterializedFactCopies(db: SqliteDatabase): void {\n dropRdf3xObjects(db, RDF3X_MATERIALIZED_FACT_COPY_TABLES, RDF3X_DERIVED_INDEXES);\n}\n\nexport function dropRdf3xDerivedSchemaObjects(db: SqliteDatabase): void {\n dropRdf3xObjects(\n db,\n [...RDF3X_DERIVED_TABLES, ...RDF3X_MATERIALIZED_FACT_COPY_TABLES],\n RDF3X_DERIVED_INDEXES,\n );\n}\n\nfunction dropRdf3xObjects(\n db: SqliteDatabase,\n names: readonly string[],\n indexes: readonly string[],\n): void {\n db.exec(indexes.map((index) => `DROP INDEX IF EXISTS ${index};`).join('\\n'));\n if (names.length === 0) {\n return;\n }\n\n const rows = db.prepare<{ name: string; type: string }>(`\n SELECT name, type\n FROM sqlite_schema\n WHERE name IN (${names.map(() => '?').join(', ')})\n `).all(...names);\n\n for (const row of rows) {\n if (row.type === 'view') {\n db.exec(`DROP VIEW IF EXISTS ${row.name};`);\n } else if (row.type === 'table') {\n db.exec(`DROP TABLE IF EXISTS ${row.name};`);\n }\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { RdfQuadIndex } from './RdfQuadIndex';
2
- import { Rdf3xTripleIndex } from './Rdf3xTripleIndex';
2
+ import { Rdf3xIndex } from './Rdf3xIndex';
3
3
  import type { RdfTextIndex } from './RdfTextIndex';
4
4
  import type { RdfVectorIndex } from './RdfVectorIndex';
5
5
  import type { RdfLocalQuery, RdfLocalQueryResult, RdfQueryVariable } from './types';
@@ -8,13 +8,14 @@ export declare class RdfLocalQueryEngine {
8
8
  private readonly textIndex?;
9
9
  private readonly vectorIndex?;
10
10
  private readonly rdf3xPrimaryIndex?;
11
- constructor(index: RdfQuadIndex, textIndex?: RdfTextIndex | undefined, vectorIndex?: RdfVectorIndex | undefined, rdf3xPrimaryIndex?: Rdf3xTripleIndex | undefined);
11
+ constructor(index: RdfQuadIndex, textIndex?: RdfTextIndex | undefined, vectorIndex?: RdfVectorIndex | undefined, rdf3xPrimaryIndex?: Rdf3xIndex | undefined);
12
12
  query(query: RdfLocalQuery): RdfLocalQueryResult;
13
13
  private chooseRequiredSourceIndex;
14
14
  private estimatePatternRows;
15
15
  private estimatePatternRowsByDistinctFanout;
16
16
  private boundPatternSlots;
17
- private estimateSourceRows;
17
+ private estimateSource;
18
+ private estimateUnboundSearchSource;
18
19
  private estimateTuplePatternRows;
19
20
  private searchSourceHasBoundVariables;
20
21
  private estimateSearchRowsByBoundSource;
@@ -29,8 +30,13 @@ export declare class RdfLocalQueryEngine {
29
30
  private applyDependentValues;
30
31
  private applyMinusGroup;
31
32
  private applyExistsGroup;
33
+ private joinPatternGroupRdf3x;
34
+ private compileJoinPatternForBinding;
32
35
  private joinPattern;
36
+ private scanCompiledPattern;
37
+ private canUseRdf3xPrimaryScan;
33
38
  private requiredBgpPushdown;
39
+ private requiredBgpValuesPushdown;
34
40
  private requiredBgpDistinctProject;
35
41
  private canPushRequiredBgpFilters;
36
42
  private canPushRequiredBgpOrder;
@@ -57,7 +63,7 @@ export declare class RdfLocalQueryEngine {
57
63
  private hasNumericAggregateGuards;
58
64
  private groupAggregatePushdown;
59
65
  private groupAggregateHavingPushdown;
60
- private distinctCountKey;
66
+ private distinctCountKeys;
61
67
  private scanOrderForPattern;
62
68
  private canPushAllFiltersForPattern;
63
69
  private requiredFiltersNeedingPostApply;