@rdfx/fs 0.0.34 → 0.0.36
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/CompressedRdfFormat.d.ts +7 -0
- package/dist/CompressedRdfFormat.js +2 -0
- package/dist/CompressedRdfStream.d.ts +15 -0
- package/dist/CompressedRdfStream.js +68 -0
- package/dist/CompressionMethod.d.ts +3 -0
- package/dist/CompressionMethod.js +2 -0
- package/dist/Dirent.d.ts +8 -0
- package/dist/Dirent.js +2 -0
- package/dist/ErrnoException.d.ts +8 -0
- package/dist/ErrnoException.js +4 -0
- package/dist/FileSystem.d.ts +93 -0
- package/dist/FileSystem.js +2 -0
- package/dist/NodeFileSystem.d.ts +30 -0
- package/dist/NodeFileSystem.js +42 -0
- package/dist/RdfDirectory.d.ts +12 -4
- package/dist/RdfDirectory.js +37 -50
- package/dist/RdfDirectoryGraphStore.d.ts +7 -3
- package/dist/RdfDirectoryGraphStore.js +58 -70
- package/dist/RdfFile.d.ts +19 -20
- package/dist/RdfFile.js +29 -104
- package/dist/RdfFileGraphStore.d.ts +9 -5
- package/dist/RdfFileGraphStore.js +35 -39
- package/dist/RdfFileSystemEntry.d.ts +3 -1
- package/dist/RdfFileSystemEntry.js +3 -2
- package/dist/RdfFormat.d.ts +8 -2
- package/dist/RdfFormat.js +47 -9
- package/dist/Stat.d.ts +9 -0
- package/dist/Stat.js +2 -0
- package/dist/UncompressedRdfFormat.d.ts +7 -0
- package/dist/UncompressedRdfFormat.js +2 -0
- package/dist/compressionMethods.d.ts +2 -0
- package/dist/compressionMethods.js +6 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +12 -1
- package/dist/uncompressedRdfFormats.d.ts +3 -0
- package/dist/uncompressedRdfFormats.js +33 -0
- package/dist/uncompressedRdfFormatsByMimeType.d.ts +3 -0
- package/dist/uncompressedRdfFormatsByMimeType.js +6 -0
- package/package.json +7 -6
- package/dist/AbstractRdfFileSystemEntry.d.ts +0 -19
- package/dist/AbstractRdfFileSystemEntry.js +0 -11
- package/dist/stat.d.ts +0 -4
- package/dist/stat.js +0 -11
package/dist/Stat.d.ts
ADDED
package/dist/Stat.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const RDF_FORMATS: readonly [];
|
|
2
|
+
export interface UncompressedRdfFormat {
|
|
3
|
+
readonly lineOriented: boolean;
|
|
4
|
+
readonly mimeType: "application/ld+json" | "application/n-quads" | "application/n-triples" | "application/rdf+xml" | "application/trig" | "text/n3" | "text/turtle";
|
|
5
|
+
readonly supportsQuads: boolean;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=UncompressedRdfFormat.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
export * from "./CompressedRdfFormat.js";
|
|
2
|
+
export * from "./CompressedRdfStream.js";
|
|
3
|
+
export * from "./CompressionMethod.js";
|
|
4
|
+
export * from "./compressionMethods.js";
|
|
5
|
+
export * from "./Dirent.js";
|
|
6
|
+
export * from "./ErrnoException.js";
|
|
7
|
+
export * from "./FileSystem.js";
|
|
8
|
+
export * from "./NodeFileSystem.js";
|
|
1
9
|
export * from "./RdfDirectory.js";
|
|
2
10
|
export * from "./RdfDirectoryGraphStore.js";
|
|
3
11
|
export * from "./RdfFile.js";
|
|
4
12
|
export * from "./RdfFileGraphStore.js";
|
|
5
13
|
export * from "./RdfFileSystemEntry.js";
|
|
6
14
|
export * from "./RdfFormat.js";
|
|
7
|
-
export * from "./
|
|
15
|
+
export * from "./Stat.js";
|
|
16
|
+
export * from "./UncompressedRdfFormat.js";
|
|
17
|
+
export * from "./uncompressedRdfFormats.js";
|
|
18
|
+
export * from "./uncompressedRdfFormatsByMimeType.js";
|
|
8
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
export * from "./CompressedRdfFormat.js";
|
|
2
|
+
export * from "./CompressedRdfStream.js";
|
|
3
|
+
export * from "./CompressionMethod.js";
|
|
4
|
+
export * from "./compressionMethods.js";
|
|
5
|
+
export * from "./Dirent.js";
|
|
6
|
+
export * from "./ErrnoException.js";
|
|
7
|
+
export * from "./FileSystem.js";
|
|
8
|
+
export * from "./NodeFileSystem.js";
|
|
1
9
|
export * from "./RdfDirectory.js";
|
|
2
10
|
export * from "./RdfDirectoryGraphStore.js";
|
|
3
11
|
export * from "./RdfFile.js";
|
|
4
12
|
export * from "./RdfFileGraphStore.js";
|
|
5
13
|
export * from "./RdfFileSystemEntry.js";
|
|
6
14
|
export * from "./RdfFormat.js";
|
|
7
|
-
export * from "./
|
|
15
|
+
export * from "./Stat.js";
|
|
16
|
+
export * from "./UncompressedRdfFormat.js";
|
|
17
|
+
export * from "./uncompressedRdfFormats.js";
|
|
18
|
+
export * from "./uncompressedRdfFormatsByMimeType.js";
|
|
8
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const uncompressedRdfFormats = [
|
|
2
|
+
{
|
|
3
|
+
lineOriented: false,
|
|
4
|
+
mimeType: "application/ld+json",
|
|
5
|
+
supportsQuads: true,
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
lineOriented: true,
|
|
9
|
+
mimeType: "application/n-quads",
|
|
10
|
+
supportsQuads: false,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
lineOriented: true,
|
|
14
|
+
mimeType: "application/n-triples",
|
|
15
|
+
supportsQuads: false,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
lineOriented: false,
|
|
19
|
+
mimeType: "application/trig",
|
|
20
|
+
supportsQuads: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
lineOriented: false,
|
|
24
|
+
mimeType: "text/n3",
|
|
25
|
+
supportsQuads: false,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
lineOriented: false,
|
|
29
|
+
mimeType: "text/turtle",
|
|
30
|
+
supportsQuads: false,
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=uncompressedRdfFormats.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { UncompressedRdfFormat } from "./UncompressedRdfFormat.js";
|
|
2
|
+
export declare const uncompressedRdfFormatsByMimeType: Record<"application/ld+json" | "application/n-quads" | "application/n-triples" | "application/rdf+xml" | "application/trig" | "text/n3" | "text/turtle", UncompressedRdfFormat>;
|
|
3
|
+
//# sourceMappingURL=uncompressedRdfFormatsByMimeType.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { uncompressedRdfFormats } from "./uncompressedRdfFormats.js";
|
|
2
|
+
export const uncompressedRdfFormatsByMimeType = uncompressedRdfFormats.reduce((acc, uncompressedRdfFormat) => {
|
|
3
|
+
acc[uncompressedRdfFormat.mimeType] = uncompressedRdfFormat;
|
|
4
|
+
return acc;
|
|
5
|
+
}, {});
|
|
6
|
+
//# sourceMappingURL=uncompressedRdfFormatsByMimeType.js.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@rdfx/data-factory": "0.0.
|
|
4
|
-
"@rdfx/graph-store": "0.0.
|
|
5
|
-
"@rdfx/parsers": "0.0.
|
|
6
|
-
"@rdfx/serializers": "0.0.
|
|
7
|
-
"@rdfx/string": "0.0.
|
|
3
|
+
"@rdfx/data-factory": "0.0.36",
|
|
4
|
+
"@rdfx/graph-store": "0.0.36",
|
|
5
|
+
"@rdfx/parsers": "0.0.36",
|
|
6
|
+
"@rdfx/serializers": "0.0.36",
|
|
7
|
+
"@rdfx/string": "0.0.36",
|
|
8
8
|
"@rdfjs/dataset": "~2.0.2",
|
|
9
9
|
"@rdfjs/prefix-map": "~0.1.2",
|
|
10
10
|
"@rdfjs/types": "~2.0.1",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"mime": "~4.1.0",
|
|
16
16
|
"purify-ts": "~2.1.4",
|
|
17
17
|
"ts-log": "~3.0.2",
|
|
18
|
+
"typescript-memoize": "~1.1.1",
|
|
18
19
|
"unbzip2-stream": "~1.4.3"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {},
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
},
|
|
42
43
|
"type": "module",
|
|
43
44
|
"types": "./dist/index.d.ts",
|
|
44
|
-
"version": "0.0.
|
|
45
|
+
"version": "0.0.36"
|
|
45
46
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type PrefixMap from "@rdfjs/prefix-map/PrefixMap.js";
|
|
2
|
-
import type { DatasetCore, Quad, Stream } from "@rdfjs/types";
|
|
3
|
-
import type { Either } from "purify-ts";
|
|
4
|
-
import { type Logger } from "ts-log";
|
|
5
|
-
export declare abstract class AbstractRdfFileSystemEntry {
|
|
6
|
-
readonly path: string;
|
|
7
|
-
protected readonly logger: Logger;
|
|
8
|
-
constructor(path: string, options?: {
|
|
9
|
-
logger?: Logger;
|
|
10
|
-
});
|
|
11
|
-
abstract parse(options?: {
|
|
12
|
-
recursive?: boolean;
|
|
13
|
-
}): Stream<Quad>;
|
|
14
|
-
abstract parseInto(dataset: DatasetCore, options?: {
|
|
15
|
-
prefixMap?: PrefixMap;
|
|
16
|
-
recursive?: boolean;
|
|
17
|
-
}): Promise<Either<Error, DatasetCore>>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=AbstractRdfFileSystemEntry.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { dummyLogger } from "ts-log";
|
|
2
|
-
export class AbstractRdfFileSystemEntry {
|
|
3
|
-
path;
|
|
4
|
-
logger;
|
|
5
|
-
constructor(path, options) {
|
|
6
|
-
this.path = path;
|
|
7
|
-
this.logger = options?.logger ?? dummyLogger;
|
|
8
|
-
this.path = path;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=AbstractRdfFileSystemEntry.js.map
|
package/dist/stat.d.ts
DELETED
package/dist/stat.js
DELETED