@rdfx/fs 0.0.12 → 0.0.14

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 (2) hide show
  1. package/dist/RdfFile.js +4 -2
  2. package/package.json +3 -3
package/dist/RdfFile.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
  import zlib from "node:zlib";
4
- import formats from "@rdfjs/formats";
4
+ import dataFactory from "@rdfx/data-factory";
5
+ import parsersFactory from "@rdfx/parsers";
5
6
  import { Mime } from "mime";
6
7
  import otherMimeTypes from "mime/types/other.js";
7
8
  import standardMimeTypes from "mime/types/standard.js";
@@ -9,6 +10,7 @@ import { Either, Just, Left, Nothing, Right } from "purify-ts";
9
10
  import bz2 from "unbzip2-stream";
10
11
  import { AbstractRdfFileSystemEntry } from "./AbstractRdfFileSystemEntry.js";
11
12
  import { RDF_FORMATS } from "./RdfFormat.js";
13
+ const parsers = parsersFactory({ dataFactory });
12
14
  const mime = new Mime(standardMimeTypes, otherMimeTypes, {
13
15
  "application/x-brotli": ["br"],
14
16
  });
@@ -72,7 +74,7 @@ export class RdfFile extends AbstractRdfFileSystemEntry {
72
74
  break;
73
75
  }
74
76
  }
75
- return formats.parsers.import(this.format.rdfFormat, rdfFileStream);
77
+ return parsers.import(this.format.rdfFormat, rdfFileStream);
76
78
  }
77
79
  parseInto(dataset) {
78
80
  return new Promise((resolve) => {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
- "@rdfjs/formats": "~4.0.1",
3
+ "@rdfx/data-factory": "0.0.14",
4
+ "@rdfx/parsers": "0.0.14",
4
5
  "@rdfjs/types": "~2.0.1",
5
- "@types/rdfjs__formats": "~4.0.1",
6
6
  "@types/unbzip2-stream": "~1.4.3",
7
7
  "mime": "~4.1.0",
8
8
  "purify-ts": "~2.1.4",
@@ -36,5 +36,5 @@
36
36
  },
37
37
  "type": "module",
38
38
  "types": "./dist/index.d.ts",
39
- "version": "0.0.12"
39
+ "version": "0.0.14"
40
40
  }