@thi.ng/rstream-query 2.1.111 → 2.1.113
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/CHANGELOG.md +1 -1
- package/package.json +16 -16
- package/store.d.ts +3 -3
- package/store.js +3 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream-query",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.113",
|
|
4
4
|
"description": "@thi.ng/rstream based triple store & reactive query engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/associative": "^6.3.
|
|
41
|
-
"@thi.ng/checks": "^3.5.
|
|
42
|
-
"@thi.ng/equiv": "^2.1.
|
|
43
|
-
"@thi.ng/errors": "^2.
|
|
44
|
-
"@thi.ng/logger": "^3.0.
|
|
45
|
-
"@thi.ng/math": "^5.10.
|
|
46
|
-
"@thi.ng/rstream": "^8.3.
|
|
47
|
-
"@thi.ng/rstream-dot": "^3.0.
|
|
48
|
-
"@thi.ng/transducers": "^8.9.
|
|
39
|
+
"@thi.ng/api": "^8.9.30",
|
|
40
|
+
"@thi.ng/associative": "^6.3.48",
|
|
41
|
+
"@thi.ng/checks": "^3.5.3",
|
|
42
|
+
"@thi.ng/equiv": "^2.1.52",
|
|
43
|
+
"@thi.ng/errors": "^2.5.0",
|
|
44
|
+
"@thi.ng/logger": "^3.0.6",
|
|
45
|
+
"@thi.ng/math": "^5.10.7",
|
|
46
|
+
"@thi.ng/rstream": "^8.3.13",
|
|
47
|
+
"@thi.ng/rstream-dot": "^3.0.63",
|
|
48
|
+
"@thi.ng/transducers": "^8.9.12"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@microsoft/api-extractor": "^7.
|
|
52
|
-
"esbuild": "^0.20.
|
|
51
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
52
|
+
"esbuild": "^0.20.1",
|
|
53
53
|
"rimraf": "^5.0.5",
|
|
54
|
-
"typedoc": "^0.25.
|
|
55
|
-
"typescript": "^5.
|
|
54
|
+
"typedoc": "^0.25.12",
|
|
55
|
+
"typescript": "^5.4.2"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"database",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"parent": "@thi.ng/rstream",
|
|
110
110
|
"year": 2018
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
113
113
|
}
|
package/store.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare class TripleStore implements Iterable<Triple>, IToDot {
|
|
|
44
44
|
* matched triples. If only the raw triple IDs are wanted, set
|
|
45
45
|
* `emitTriples` arg to `false`.
|
|
46
46
|
*
|
|
47
|
+
* @param pattern -
|
|
47
48
|
* @param id -
|
|
48
|
-
* @param param1 -
|
|
49
49
|
*/
|
|
50
50
|
addPatternQuery(pattern: Pattern, id?: string): ISubscription<any, Triples>;
|
|
51
51
|
addPatternQuery(pattern: Pattern, id?: string, emitTriples?: false): ISubscription<any, TripleIds>;
|
|
@@ -68,8 +68,8 @@ export declare class TripleStore implements Iterable<Triple>, IToDot {
|
|
|
68
68
|
* [{ a: "asterix", b: "obelix" }, { a: "romeo", b: "julia" }]
|
|
69
69
|
* ```
|
|
70
70
|
*
|
|
71
|
+
* @param pattern -
|
|
71
72
|
* @param id -
|
|
72
|
-
* @param param1 -
|
|
73
73
|
*/
|
|
74
74
|
addParamQuery([s, p, o]: Pattern, id?: string): QuerySolution;
|
|
75
75
|
/**
|
|
@@ -82,7 +82,7 @@ export declare class TripleStore implements Iterable<Triple>, IToDot {
|
|
|
82
82
|
* @param maxDepth -
|
|
83
83
|
* @param id -
|
|
84
84
|
*/
|
|
85
|
-
addPathQuery(path: PathPattern,
|
|
85
|
+
addPathQuery(path: PathPattern, maxDepth?: number, id?: string): QuerySolution;
|
|
86
86
|
/**
|
|
87
87
|
* Like {@link TripleStore.addMultiJoin}, but optimized for only two
|
|
88
88
|
* input queries. Returns a rstream subscription computing the
|
package/store.js
CHANGED
|
@@ -196,8 +196,8 @@ class TripleStore {
|
|
|
196
196
|
* [{ a: "asterix", b: "obelix" }, { a: "romeo", b: "julia" }]
|
|
197
197
|
* ```
|
|
198
198
|
*
|
|
199
|
+
* @param pattern -
|
|
199
200
|
* @param id -
|
|
200
|
-
* @param param1 -
|
|
201
201
|
*/
|
|
202
202
|
addParamQuery([s, p, o], id) {
|
|
203
203
|
const vs = isQVar(s);
|
|
@@ -234,9 +234,9 @@ class TripleStore {
|
|
|
234
234
|
* @param maxDepth -
|
|
235
235
|
* @param id -
|
|
236
236
|
*/
|
|
237
|
-
addPathQuery(path,
|
|
237
|
+
addPathQuery(path, maxDepth = path[1].length, id) {
|
|
238
238
|
return this.addMultiJoin(
|
|
239
|
-
this.addParamQueries(resolvePathPattern(path,
|
|
239
|
+
this.addParamQueries(resolvePathPattern(path, maxDepth)[0]),
|
|
240
240
|
patternVars(path),
|
|
241
241
|
id
|
|
242
242
|
);
|