@rdfx/fs 0.0.37 → 0.0.39
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/dist/RdfDirectory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import {
|
|
2
|
+
import { iterableToStream } from "@rdfx/stream";
|
|
3
3
|
import { EitherAsync } from "purify-ts";
|
|
4
4
|
import { dummyLogger } from "ts-log";
|
|
5
5
|
import { NodeFileSystem } from "./NodeFileSystem.js";
|
|
@@ -63,9 +63,7 @@ export class RdfDirectory {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
return
|
|
67
|
-
objectMode: true,
|
|
68
|
-
});
|
|
66
|
+
return iterableToStream(parseFiles());
|
|
69
67
|
}
|
|
70
68
|
async parseInto(dataset, options) {
|
|
71
69
|
return EitherAsync(async ({ liftEither }) => {
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { datasetFactory } from "@rdfx/collection";
|
|
8
8
|
import { RdfjsDatasetGraphStore, } from "@rdfx/graph-store";
|
|
9
|
-
import
|
|
9
|
+
import { iterableToStream } from "@rdfx/stream";
|
|
10
10
|
import { Either, EitherAsync, Left } from "purify-ts";
|
|
11
11
|
import { dummyLogger } from "ts-log";
|
|
12
12
|
import { Memoize } from "typescript-memoize";
|
|
@@ -87,7 +87,7 @@ export class RdfFileGraphStore {
|
|
|
87
87
|
await liftEither(await this.fileSystem.deleteFile(this.path, { force: true }));
|
|
88
88
|
return return_;
|
|
89
89
|
}
|
|
90
|
-
await liftEither(await this.rdfFile.serialize(
|
|
90
|
+
await liftEither(await this.rdfFile.serialize(iterableToStream(unionDataset), {
|
|
91
91
|
prefixes: this.prefixMap,
|
|
92
92
|
}));
|
|
93
93
|
return return_;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@rdfx/collection": "0.0.
|
|
4
|
-
"@rdfx/data-factory": "0.0.
|
|
5
|
-
"@rdfx/graph-store": "0.0.
|
|
6
|
-
"@rdfx/parsers": "0.0.
|
|
7
|
-
"@rdfx/serializers": "0.0.
|
|
8
|
-
"@rdfx/
|
|
3
|
+
"@rdfx/collection": "0.0.39",
|
|
4
|
+
"@rdfx/data-factory": "0.0.39",
|
|
5
|
+
"@rdfx/graph-store": "0.0.39",
|
|
6
|
+
"@rdfx/parsers": "0.0.39",
|
|
7
|
+
"@rdfx/serializers": "0.0.39",
|
|
8
|
+
"@rdfx/stream": "0.0.39",
|
|
9
|
+
"@rdfx/string": "0.0.39",
|
|
9
10
|
"@rdfjs/types": "~2.0.1",
|
|
10
11
|
"@types/node": "^24",
|
|
11
12
|
"@types/unbzip2-stream": "~1.4.3",
|
|
12
|
-
"into-stream": "~9.1.0",
|
|
13
13
|
"mime": "~4.1.0",
|
|
14
14
|
"purify-ts": "~2.1.4",
|
|
15
15
|
"ts-log": "~3.0.2",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"unbzip2-stream": "~1.4.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@rdfx/testing": "0.0.
|
|
20
|
+
"@rdfx/testing": "0.0.39"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
},
|
|
43
43
|
"type": "module",
|
|
44
44
|
"types": "./dist/index.d.ts",
|
|
45
|
-
"version": "0.0.
|
|
45
|
+
"version": "0.0.39"
|
|
46
46
|
}
|