@rdfx/resource 0.0.1

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 (43) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +42 -0
  3. package/dist/DatasetValues.d.ts +24 -0
  4. package/dist/DatasetValues.js +172 -0
  5. package/dist/Identifier.d.ts +10 -0
  6. package/dist/Identifier.js +26 -0
  7. package/dist/ListStructureError.d.ts +4 -0
  8. package/dist/ListStructureError.js +4 -0
  9. package/dist/LiteralDecoder.d.ts +20 -0
  10. package/dist/LiteralDecoder.js +213 -0
  11. package/dist/LiteralFactory.d.ts +19 -0
  12. package/dist/LiteralFactory.js +183 -0
  13. package/dist/MissingValueError.d.ts +10 -0
  14. package/dist/MissingValueError.js +13 -0
  15. package/dist/MistypedPrimitiveValueError.d.ts +13 -0
  16. package/dist/MistypedPrimitiveValueError.js +15 -0
  17. package/dist/MistypedTermValueError.d.ts +13 -0
  18. package/dist/MistypedTermValueError.js +15 -0
  19. package/dist/MistypedValueError.d.ts +15 -0
  20. package/dist/MistypedValueError.js +13 -0
  21. package/dist/Primitive.d.ts +2 -0
  22. package/dist/Primitive.js +2 -0
  23. package/dist/PropertyPath.d.ts +46 -0
  24. package/dist/PropertyPath.js +179 -0
  25. package/dist/Resource.d.ts +112 -0
  26. package/dist/Resource.js +354 -0
  27. package/dist/ResourceSet.d.ts +24 -0
  28. package/dist/ResourceSet.js +76 -0
  29. package/dist/Term.d.ts +6 -0
  30. package/dist/Term.js +31 -0
  31. package/dist/Value.d.ts +103 -0
  32. package/dist/Value.js +173 -0
  33. package/dist/ValueError.d.ts +12 -0
  34. package/dist/ValueError.js +8 -0
  35. package/dist/Values.d.ts +114 -0
  36. package/dist/Values.js +221 -0
  37. package/dist/index.d.ts +4 -0
  38. package/dist/index.js +4 -0
  39. package/dist/literalDatatypeDefinitions.d.ts +24 -0
  40. package/dist/literalDatatypeDefinitions.js +116 -0
  41. package/dist/vocabularies.d.ts +36 -0
  42. package/dist/vocabularies.js +41 -0
  43. package/package.json +42 -0
package/dist/Values.js ADDED
@@ -0,0 +1,221 @@
1
+ import { Either, Left } from "purify-ts";
2
+ import { MissingValueError } from "./MissingValueError.js";
3
+ /**
4
+ * Iterable sequence of values of a given type.
5
+ *
6
+ * Resource.values returns instances of this class instead of a simple array of values in order to
7
+ * (1) preserve the focus resource that .values was invoked on, in case of errors
8
+ * (2) preserve the propertyPath that .values was invoked with, in case of errors
9
+ * (3) return purify types from methods like .find instead of null or undefined
10
+ * (4) add some methods that aren't on arrays, like .chainMap and .head
11
+ *
12
+ * The class doesn't try to implement the entire Array interface. Methods are added as needed by downstream code.
13
+ */
14
+ export class Values {
15
+ constructor({ focusResource, propertyPath, }) {
16
+ this.focusResource = focusResource;
17
+ this.propertyPath = propertyPath;
18
+ }
19
+ /**
20
+ * Create a Values instance that is empty.
21
+ */
22
+ static empty(parameters) {
23
+ return new EmptyValues(parameters);
24
+ }
25
+ /**
26
+ * Create a Values instance from an array of values.
27
+ */
28
+ static fromArray(parameters) {
29
+ if (Values.length === 0) {
30
+ return Values.empty(parameters);
31
+ }
32
+ return new ArrayValues(parameters);
33
+ }
34
+ /**
35
+ * Create a Values instance from a single value.
36
+ */
37
+ static fromValue(parameters) {
38
+ return new SingletonValues(parameters);
39
+ }
40
+ /**
41
+ * For each value in the sequence, try to convert it to a new type / transform it using the provided callback.
42
+ *
43
+ * If any conversion fails, return the failure (the Left).
44
+ *
45
+ * If all of the conversions succeed, return a new Values with the converted values.
46
+ *
47
+ * This is a combination of Either.chain and Either.map.
48
+ */
49
+ chainMap(callback) {
50
+ const newValues = [];
51
+ let valueI = 0;
52
+ for (const value of this) {
53
+ const callbackResult = callback(value, valueI);
54
+ if (callbackResult.isLeft()) {
55
+ return callbackResult;
56
+ }
57
+ newValues.push(callbackResult.extract());
58
+ valueI++;
59
+ }
60
+ return Either.of(Values.fromArray({
61
+ focusResource: this.focusResource,
62
+ propertyPath: this.propertyPath,
63
+ values: newValues,
64
+ }));
65
+ }
66
+ /**
67
+ * Concatenate another values of the same type to this Values, returning a new Values instance.
68
+ */
69
+ concat(...values) {
70
+ return Values.fromArray({
71
+ focusResource: this.focusResource,
72
+ propertyPath: this.propertyPath,
73
+ values: this.toArray().concat(...values),
74
+ });
75
+ }
76
+ /**
77
+ * Filter the values, returning a new Values instance.
78
+ */
79
+ filter(propertyPath) {
80
+ const filteredValues = [];
81
+ let valueI = 0;
82
+ for (const value of this) {
83
+ if (propertyPath(value, valueI)) {
84
+ filteredValues.push(value);
85
+ }
86
+ valueI++;
87
+ }
88
+ return Values.fromArray({
89
+ focusResource: this.focusResource,
90
+ propertyPath: this.propertyPath,
91
+ values: filteredValues,
92
+ });
93
+ }
94
+ /**
95
+ * Find a value that satisfies the given propertyPath.
96
+ *
97
+ * Return Right if a value satisfies the propertyPath, otherwise Left.
98
+ */
99
+ find(propertyPath) {
100
+ let valueI = 0;
101
+ for (const value of this) {
102
+ if (propertyPath(value, valueI)) {
103
+ return Either.of(value);
104
+ }
105
+ valueI++;
106
+ }
107
+ return Left(new MissingValueError({
108
+ focusResource: this.focusResource,
109
+ propertyPath: this.propertyPath,
110
+ }));
111
+ }
112
+ /**
113
+ * Flatten a Values of iterables into a new Values.
114
+ *
115
+ * Equivalent of Array.flat.
116
+ */
117
+ flat() {
118
+ return Values.fromArray({
119
+ focusResource: this.focusResource,
120
+ propertyPath: this.propertyPath,
121
+ values: this.toArray().flat(),
122
+ });
123
+ }
124
+ /**
125
+ * Map each value to an array of values of a new type. Flatten those arrays and return the result as a new Values.
126
+ */
127
+ flatMap(callback) {
128
+ const newValues = [];
129
+ let valueI = 0;
130
+ for (const value of this) {
131
+ newValues.push(...callback(value, valueI));
132
+ valueI++;
133
+ }
134
+ return Values.fromArray({
135
+ focusResource: this.focusResource,
136
+ propertyPath: this.propertyPath,
137
+ values: newValues,
138
+ });
139
+ }
140
+ /**
141
+ * Get the head of this sequence of values if the sequence is non-empty. Otherwise return Left.
142
+ */
143
+ head() {
144
+ for (const value of this) {
145
+ return Either.of(value);
146
+ }
147
+ return Left(new MissingValueError({
148
+ focusResource: this.focusResource,
149
+ propertyPath: this.propertyPath,
150
+ }));
151
+ }
152
+ /**
153
+ * Map each value to a value of a new type and return a new Values with the mapped results.
154
+ */
155
+ map(callback) {
156
+ const newValues = [];
157
+ let valueI = 0;
158
+ for (const value of this) {
159
+ newValues.push(callback(value, valueI));
160
+ valueI++;
161
+ }
162
+ return Values.fromArray({
163
+ focusResource: this.focusResource,
164
+ propertyPath: this.propertyPath,
165
+ values: newValues,
166
+ });
167
+ }
168
+ }
169
+ /**
170
+ * Private implementation of Resource.Values that iterates over an array.
171
+ *
172
+ * Must be in the same file to avoid circular dependencies.
173
+ */
174
+ class ArrayValues extends Values {
175
+ constructor({ values, ...superParameters }) {
176
+ super(superParameters);
177
+ this.values = values;
178
+ }
179
+ get length() {
180
+ return this.values.length;
181
+ }
182
+ [Symbol.iterator]() {
183
+ return this.values[Symbol.iterator]();
184
+ }
185
+ toArray() {
186
+ return this.values;
187
+ }
188
+ }
189
+ /**
190
+ * Private implementation of Resource.Values that is empty.
191
+ */
192
+ class EmptyValues extends Values {
193
+ get length() {
194
+ return 0;
195
+ }
196
+ [Symbol.iterator]() {
197
+ return this.toArray()[Symbol.iterator]();
198
+ }
199
+ toArray() {
200
+ return [];
201
+ }
202
+ }
203
+ /**
204
+ * Private implementation of Values that iterates over a single value.
205
+ *
206
+ * Must be in the same file to avoid circular dependencies.
207
+ */
208
+ class SingletonValues extends Values {
209
+ constructor({ value, ...superParameters }) {
210
+ super(superParameters);
211
+ this.length = 1;
212
+ this.value = value;
213
+ }
214
+ *[Symbol.iterator]() {
215
+ yield this.value;
216
+ }
217
+ toArray() {
218
+ return [this.value];
219
+ }
220
+ }
221
+ //# sourceMappingURL=Values.js.map
@@ -0,0 +1,4 @@
1
+ export * from "./PropertyPath.js";
2
+ export * from "./Resource.js";
3
+ export * from "./ResourceSet.js";
4
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./PropertyPath.js";
2
+ export * from "./Resource.js";
3
+ export * from "./ResourceSet.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,24 @@
1
+ type LiteralDatatypeDefinition = {
2
+ kind: "bigdecimal";
3
+ readonly range: [undefined, undefined];
4
+ } | {
5
+ kind: "bigint";
6
+ range: readonly [bigint | undefined, bigint | undefined];
7
+ } | {
8
+ kind: "boolean";
9
+ } | {
10
+ kind: "date";
11
+ } | {
12
+ kind: "datetime";
13
+ } | {
14
+ kind: "float";
15
+ readonly range: readonly [number, number];
16
+ } | {
17
+ kind: "int";
18
+ readonly range: readonly [number, number];
19
+ } | {
20
+ kind: "string";
21
+ };
22
+ export declare const literalDatatypeDefinitions: Record<string, LiteralDatatypeDefinition>;
23
+ export {};
24
+ //# sourceMappingURL=literalDatatypeDefinitions.d.ts.map
@@ -0,0 +1,116 @@
1
+ export const literalDatatypeDefinitions = {
2
+ // Boolean
3
+ "http://www.w3.org/2001/XMLSchema#boolean": {
4
+ kind: "boolean",
5
+ },
6
+ // Date
7
+ "http://www.w3.org/2001/XMLSchema#date": {
8
+ kind: "date",
9
+ },
10
+ // Date-time
11
+ "http://www.w3.org/2001/XMLSchema#dateTime": {
12
+ kind: "datetime",
13
+ },
14
+ "http://www.w3.org/2001/XMLSchema#dateTimeStamp": {
15
+ kind: "datetime",
16
+ },
17
+ // Fixed-width floats
18
+ // 32-bit
19
+ "http://www.w3.org/2001/XMLSchema#float": {
20
+ kind: "float",
21
+ range: [-3.4028235e38, 3.4028235e38],
22
+ },
23
+ // 64-bit
24
+ "http://www.w3.org/2001/XMLSchema#double": {
25
+ kind: "float",
26
+ // Number.MIN_VALUE is the smallest positive number greater than 0
27
+ range: [-Number.MAX_VALUE, Number.MAX_VALUE],
28
+ },
29
+ // Arbitrary precision decimal
30
+ "http://www.w3.org/2001/XMLSchema#decimal": {
31
+ kind: "bigdecimal",
32
+ range: [undefined, undefined],
33
+ },
34
+ // Fixed-width integers
35
+ // 8-bit signed
36
+ "http://www.w3.org/2001/XMLSchema#byte": {
37
+ kind: "int",
38
+ range: [-128, 127],
39
+ },
40
+ // 16-bit signed
41
+ "http://www.w3.org/2001/XMLSchema#short": {
42
+ kind: "int",
43
+ range: [-32768, 32767],
44
+ },
45
+ // 32-bit signed
46
+ "http://www.w3.org/2001/XMLSchema#int": {
47
+ kind: "int",
48
+ range: [-2147483648, 2147483647],
49
+ },
50
+ // 64-bit signed
51
+ "http://www.w3.org/2001/XMLSchema#long": {
52
+ kind: "bigint",
53
+ range: [-9223372036854775808n, 9223372036854775807n],
54
+ },
55
+ // 8-bit unsigned
56
+ "http://www.w3.org/2001/XMLSchema#unsignedByte": {
57
+ kind: "int",
58
+ range: [0, 255],
59
+ },
60
+ // 16-bit unsigned
61
+ "http://www.w3.org/2001/XMLSchema#unsignedShort": {
62
+ kind: "int",
63
+ range: [0, 65535],
64
+ },
65
+ // 32-bit unsigned
66
+ "http://www.w3.org/2001/XMLSchema#unsignedInt": {
67
+ kind: "int",
68
+ range: [0, 4294967295],
69
+ },
70
+ // 64-bit unsigned
71
+ "http://www.w3.org/2001/XMLSchema#unsignedLong": {
72
+ kind: "bigint",
73
+ range: [0n, 18446744073709551615n],
74
+ },
75
+ // Arbitrary precision integers
76
+ "http://www.w3.org/2001/XMLSchema#integer": {
77
+ kind: "bigint",
78
+ range: [undefined, undefined],
79
+ },
80
+ "http://www.w3.org/2001/XMLSchema#negativeInteger": {
81
+ kind: "bigint",
82
+ range: [undefined, -1n],
83
+ },
84
+ "http://www.w3.org/2001/XMLSchema#nonNegativeInteger": {
85
+ kind: "bigint",
86
+ range: [0n, undefined],
87
+ },
88
+ "http://www.w3.org/2001/XMLSchema#nonPositiveInteger": {
89
+ kind: "bigint",
90
+ range: [undefined, 0n],
91
+ },
92
+ "http://www.w3.org/2001/XMLSchema#positiveInteger": {
93
+ kind: "bigint",
94
+ range: [1n, undefined],
95
+ },
96
+ // String
97
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString": {
98
+ kind: "string",
99
+ },
100
+ "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString": { kind: "string" },
101
+ "http://www.w3.org/2001/XMLSchema#anyURI": { kind: "string" },
102
+ "http://www.w3.org/2001/XMLSchema#base64Binary": { kind: "string" },
103
+ "http://www.w3.org/2001/XMLSchema#duration": { kind: "string" },
104
+ "http://www.w3.org/2001/XMLSchema#hexBinary": { kind: "string" },
105
+ "http://www.w3.org/2001/XMLSchema#language": { kind: "string" },
106
+ "http://www.w3.org/2001/XMLSchema#Name": { kind: "string" },
107
+ "http://www.w3.org/2001/XMLSchema#NCName": { kind: "string" },
108
+ "http://www.w3.org/2001/XMLSchema#NMTOKEN": { kind: "string" },
109
+ "http://www.w3.org/2001/XMLSchema#NOTATION": { kind: "string" },
110
+ "http://www.w3.org/2001/XMLSchema#normalizedString": { kind: "string" },
111
+ "http://www.w3.org/2001/XMLSchema#QName": { kind: "string" },
112
+ "http://www.w3.org/2001/XMLSchema#string": { kind: "string" },
113
+ "http://www.w3.org/2001/XMLSchema#time": { kind: "string" },
114
+ "http://www.w3.org/2001/XMLSchema#token": { kind: "string" },
115
+ };
116
+ //# sourceMappingURL=literalDatatypeDefinitions.js.map
@@ -0,0 +1,36 @@
1
+ export declare namespace rdf {
2
+ const first: import("@rdfjs/types").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#first">;
3
+ const nil: import("@rdfjs/types").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil">;
4
+ const rest: import("@rdfjs/types").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#rest">;
5
+ const type: import("@rdfjs/types").NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#type">;
6
+ }
7
+ export declare namespace rdfs {
8
+ const subClassOf: import("@rdfjs/types").NamedNode<"http://www.w3.org/2000/01/rdf-schema#subClassOf">;
9
+ }
10
+ export declare namespace sh {
11
+ const alternativePath: import("@rdfjs/types").NamedNode<"http://www.w3.org/ns/shacl#alternativePath">;
12
+ const inversePath: import("@rdfjs/types").NamedNode<"http://www.w3.org/ns/shacl#inversePath">;
13
+ const oneOrMorePath: import("@rdfjs/types").NamedNode<"http://www.w3.org/ns/shacl#oneOrMorePath">;
14
+ const zeroOrMorePath: import("@rdfjs/types").NamedNode<"http://www.w3.org/ns/shacl#zeroOrMorePath">;
15
+ const zeroOrOnePath: import("@rdfjs/types").NamedNode<"http://www.w3.org/ns/shacl#zeroOrOnePath">;
16
+ }
17
+ export declare namespace xsd {
18
+ const boolean: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#boolean">;
19
+ const byte: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#byte">;
20
+ const date: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#date">;
21
+ const dateTime: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#dateTime">;
22
+ const dateTimeStamp: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#dateTimeStamp">;
23
+ const decimal: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#decimal">;
24
+ const double: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#double">;
25
+ const float: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#float">;
26
+ const int: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#int">;
27
+ const integer: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#integer">;
28
+ const long: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#long">;
29
+ const short: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#short">;
30
+ const string: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#string">;
31
+ const unsignedByte: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#unsignedByte">;
32
+ const unsignedInt: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#unsignedInt">;
33
+ const unsignedLong: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#unsignedLong">;
34
+ const unsignedShort: import("@rdfjs/types").NamedNode<"http://www.w3.org/2001/XMLSchema#unsignedShort">;
35
+ }
36
+ //# sourceMappingURL=vocabularies.d.ts.map
@@ -0,0 +1,41 @@
1
+ import DataFactory from "@rdfjs/data-model";
2
+ export var rdf;
3
+ (function (rdf) {
4
+ rdf.first = DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first");
5
+ rdf.nil = DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil");
6
+ rdf.rest = DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest");
7
+ rdf.type = DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
8
+ })(rdf || (rdf = {}));
9
+ export var rdfs;
10
+ (function (rdfs) {
11
+ rdfs.subClassOf = DataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#subClassOf");
12
+ })(rdfs || (rdfs = {}));
13
+ export var sh;
14
+ (function (sh) {
15
+ sh.alternativePath = DataFactory.namedNode("http://www.w3.org/ns/shacl#alternativePath");
16
+ sh.inversePath = DataFactory.namedNode("http://www.w3.org/ns/shacl#inversePath");
17
+ sh.oneOrMorePath = DataFactory.namedNode("http://www.w3.org/ns/shacl#oneOrMorePath");
18
+ sh.zeroOrMorePath = DataFactory.namedNode("http://www.w3.org/ns/shacl#zeroOrMorePath");
19
+ sh.zeroOrOnePath = DataFactory.namedNode("http://www.w3.org/ns/shacl#zeroOrOnePath");
20
+ })(sh || (sh = {}));
21
+ export var xsd;
22
+ (function (xsd) {
23
+ xsd.boolean = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean");
24
+ xsd.byte = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#byte");
25
+ xsd.date = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#date");
26
+ xsd.dateTime = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTime");
27
+ xsd.dateTimeStamp = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#dateTimeStamp");
28
+ xsd.decimal = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#decimal");
29
+ xsd.double = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#double");
30
+ xsd.float = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float");
31
+ xsd.int = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#int");
32
+ xsd.integer = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer");
33
+ xsd.long = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#long");
34
+ xsd.short = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#short");
35
+ xsd.string = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#string");
36
+ xsd.unsignedByte = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedByte");
37
+ xsd.unsignedInt = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedInt");
38
+ xsd.unsignedLong = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedLong");
39
+ xsd.unsignedShort = DataFactory.namedNode("http://www.w3.org/2001/XMLSchema#unsignedShort");
40
+ })(xsd || (xsd = {}));
41
+ //# sourceMappingURL=vocabularies.js.map
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "dependencies": {
3
+ "@rdfx/literal": "0.0.1",
4
+ "@rdfjs/data-model": "~2.1.1",
5
+ "@rdfjs/term-set": "~2.0.3",
6
+ "@rdfjs/types": "~2.0.1",
7
+ "@types/rdfjs__data-model": "~2.0.9",
8
+ "@types/rdfjs__term-set": "~2.0.9",
9
+ "purify-ts": "~2.1.4"
10
+ },
11
+ "devDependencies": {
12
+ "@rdfjs/dataset": "~2.0.2",
13
+ "@tpluscode/rdf-ns-builders": "~4.3.0",
14
+ "@types/rdfjs__dataset": "~2.0.7",
15
+ "housemd": "0.1.3",
16
+ "ts-invariant": "~0.10.3"
17
+ },
18
+ "files": [
19
+ "README.md",
20
+ "dist/*.d.ts",
21
+ "dist/*.js"
22
+ ],
23
+ "license": "Apache-2.0",
24
+ "main": "./dist/index.js",
25
+ "name": "@rdfx/resource",
26
+ "packageManager": "npm@11.11.0",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/minorg/rdfx.git"
30
+ },
31
+ "scripts": {
32
+ "build": "tsc -b",
33
+ "clean": "rimraf dist",
34
+ "depcheck": "depcheck .",
35
+ "dev": "tsc -w --preserveWatchOutput",
36
+ "dev:tests": "tsc -p __tests__ -w --preserveWatchOutput",
37
+ "test": "cd ../.. && vitest run --project @rdfx/resource"
38
+ },
39
+ "type": "module",
40
+ "types": "./dist/index.d.ts",
41
+ "version": "0.0.1"
42
+ }