@faubulous/mentor-rdf 0.2.1 → 0.2.3

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.
@@ -38,14 +38,28 @@ export declare class Store {
38
38
  * @param enableInference Indicates if inference should be enabled for the graph.
39
39
  */
40
40
  getContextGraphs(graphUri: string, enableInference?: boolean): string[];
41
+ /**
42
+ * Load a set of triples into the store.
43
+ * @param quads An array of quads to be loaded into the store.
44
+ * @param graphUri The target graph URI.
45
+ * @param clearGraph Indicates if the graph should be cleared before loading.
46
+ * @param onQuad A callback function that will be called for each parsed triple.
47
+ */
48
+ private _loadQuads;
41
49
  /**
42
50
  * Create an RDF store from a file.
43
51
  * @param input Input data or stream in Turtle format to be parsed.
44
52
  * @param graphUri URI of the graph to in which the triples will be created.
53
+ * @param clearGraph Indicates if the graph should be cleared before loading.
45
54
  * @param onQuad Callback function that will be called for each parsed triple.
46
55
  * @returns A promise that resolves to an RDF store.
47
56
  */
48
- loadFromStream(input: string | EventEmitter, graphUri: string, onQuad?: (quad: n3.Quad) => void): Promise<Store>;
57
+ loadFromStream(input: string | EventEmitter, graphUri: string, clearGraph?: boolean, onQuad?: (quad: n3.Quad) => void): Promise<Store>;
58
+ /**
59
+ * Delete named graphs from the store.
60
+ * @param graphUris URIs of the graphs to be deleted.
61
+ */
62
+ deleteGraphs(graphUris: string[]): void;
49
63
  /**
50
64
  * Query the store for triples matching the given pattern supporting multiple graphs.
51
65
  * @param subject A subject URI or null to match any subject.
package/out/rdf/store.js CHANGED
@@ -61,37 +61,74 @@ class Store {
61
61
  }
62
62
  return result;
63
63
  }
64
+ /**
65
+ * Load a set of triples into the store.
66
+ * @param quads An array of quads to be loaded into the store.
67
+ * @param graphUri The target graph URI.
68
+ * @param clearGraph Indicates if the graph should be cleared before loading.
69
+ * @param onQuad A callback function that will be called for each parsed triple.
70
+ */
71
+ _loadQuads(quads, graphUri, clearGraph = true, onQuad) {
72
+ const graph = new n3.NamedNode(graphUri.replace('\\', '\/'));
73
+ // Only clear the graph once if there had been no errors.
74
+ if (clearGraph) {
75
+ // Note: Using the match method to clear the graph results in an error because the graph is being modified.
76
+ for (let q of this._store.readQuads(null, null, null, graph)) {
77
+ this._store.removeQuad(q);
78
+ }
79
+ if (this.reasoner) {
80
+ const inferenceGraph = new n3.NamedNode(this.reasoner.getInferenceGraphUri(graphUri));
81
+ for (let q of this._store.readQuads(null, null, null, inferenceGraph)) {
82
+ this._store.removeQuad(q);
83
+ }
84
+ }
85
+ }
86
+ for (let q of quads) {
87
+ this._store.add(new n3.Quad(q.subject, q.predicate, q.object, graph));
88
+ if (onQuad) {
89
+ onQuad(q);
90
+ }
91
+ }
92
+ if (this.reasoner) {
93
+ this.reasoner.expand(this._store, graphUri);
94
+ }
95
+ }
64
96
  /**
65
97
  * Create an RDF store from a file.
66
98
  * @param input Input data or stream in Turtle format to be parsed.
67
99
  * @param graphUri URI of the graph to in which the triples will be created.
100
+ * @param clearGraph Indicates if the graph should be cleared before loading.
68
101
  * @param onQuad Callback function that will be called for each parsed triple.
69
102
  * @returns A promise that resolves to an RDF store.
70
103
  */
71
- loadFromStream(input, graphUri, onQuad) {
104
+ loadFromStream(input, graphUri, clearGraph = true, onQuad) {
72
105
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
106
  return new Promise((resolve, reject) => {
74
- const graph = new n3.NamedNode(graphUri.replace('\\', '\/'));
107
+ let quads = [];
75
108
  new n3.Parser({}).parse(input, (error, quad, done) => {
76
- if (quad) {
77
- this._store.add(new n3.Quad(quad.subject, quad.predicate, quad.object, graph));
78
- if (onQuad) {
79
- onQuad(quad);
80
- }
81
- }
82
- else if (error) {
109
+ if (error) {
83
110
  reject(error);
84
111
  }
112
+ if (quad) {
113
+ quads.push(quad);
114
+ }
85
115
  else if (done) {
86
- if (this.reasoner) {
87
- this.reasoner.expand(this._store, graphUri);
88
- }
116
+ this._loadQuads(quads, graphUri, clearGraph, onQuad);
89
117
  resolve(this);
90
118
  }
91
119
  });
92
120
  });
93
121
  });
94
122
  }
123
+ /**
124
+ * Delete named graphs from the store.
125
+ * @param graphUris URIs of the graphs to be deleted.
126
+ */
127
+ deleteGraphs(graphUris) {
128
+ for (let graphUri of graphUris) {
129
+ this._store.deleteGraph(new n3.NamedNode(graphUri));
130
+ }
131
+ }
95
132
  /**
96
133
  * Query the store for triples matching the given pattern supporting multiple graphs.
97
134
  * @param subject A subject URI or null to match any subject.
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/rdf/store.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,+DAAyC;AAIzC;;GAEG;AACH,MAAa,KAAK;IAWd;;OAEG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,YAAY,QAAoB;QArBhC;;WAEG;QACc,WAAM,GAAa,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC;QAmB/C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED;;OAEG;IACU,uBAAuB;;YAChC,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,6CAA6C,CAAC,CAAC;YAClF,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,4BAA4B,CAAC,CAAC;YAClE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,uCAAuC,CAAC,CAAC;YAC7E,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,gCAAgC,CAAC,CAAC;YACrE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,6BAA6B,CAAC,CAAC;YACpE,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,sCAAsC,CAAC,CAAC;YAC5E,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAA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MAAM,CAAC,CAAC;SACxD;aAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;YAClC,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;SACrF;aAAM;YACH,KAAK,IAAI,KAAK,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;gBACvD,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;aAC/D;SACJ;IACL,CAAC;CACJ;AA7JD,sBA6JC"}
@@ -9,13 +9,15 @@ export declare function pathToFileURL(filePath: string): string;
9
9
  * Load a Turtle or N3 file into a store.
10
10
  * @param store An RDF store.
11
11
  * @param filePath Path to a file containing RDF triples in Turtle or N3 format.
12
+ * @param onQuad Callback function that will be called for each parsed triple.
12
13
  * @returns A promise that resolves to the URI of the graph that was loaded.
13
14
  */
14
- export declare function loadFile(store: Store, filePath: string): Promise<string>;
15
+ export declare function loadFile(store: Store, filePath: string, graphUri?: string, onQuad?: (quad: n3.Quad) => void): Promise<string>;
15
16
  /**
16
17
  * Create a RDF triple store from a file.
17
18
  * @param path Path to a file containing RDF triples in Turtle or N3 format.
18
19
  * @param inference Indicates if OWL inference should be performed on the store.
20
+ * @param onQuad Callback function that will be called for each parsed triple.
19
21
  * @returns A promise that resolves to an RDF store.
20
22
  */
21
23
  export declare function createStoreFromFile(filePath: string, reasoner?: IReasoner, onQuad?: (quad: n3.Quad) => void): Promise<Store>;
@@ -15,14 +15,15 @@ exports.pathToFileURL = pathToFileURL;
15
15
  * Load a Turtle or N3 file into a store.
16
16
  * @param store An RDF store.
17
17
  * @param filePath Path to a file containing RDF triples in Turtle or N3 format.
18
+ * @param onQuad Callback function that will be called for each parsed triple.
18
19
  * @returns A promise that resolves to the URI of the graph that was loaded.
19
20
  */
20
- function loadFile(store, filePath) {
21
+ function loadFile(store, filePath, graphUri, onQuad) {
21
22
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
- const graphUri = pathToFileURL(filePath);
23
+ const graph = graphUri !== null && graphUri !== void 0 ? graphUri : pathToFileURL(filePath);
23
24
  const stream = fs.createReadStream(filePath);
24
- yield store.loadFromStream(stream, graphUri);
25
- return graphUri;
25
+ yield store.loadFromStream(stream, graph, true, onQuad);
26
+ return graph;
26
27
  });
27
28
  }
28
29
  exports.loadFile = loadFile;
@@ -30,13 +31,14 @@ exports.loadFile = loadFile;
30
31
  * Create a RDF triple store from a file.
31
32
  * @param path Path to a file containing RDF triples in Turtle or N3 format.
32
33
  * @param inference Indicates if OWL inference should be performed on the store.
34
+ * @param onQuad Callback function that will be called for each parsed triple.
33
35
  * @returns A promise that resolves to an RDF store.
34
36
  */
35
37
  function createStoreFromFile(filePath, reasoner, onQuad) {
36
38
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
39
  const graphUri = pathToFileURL(filePath);
38
40
  const stream = fs.createReadStream(filePath);
39
- return new store_1.Store(reasoner).loadFromStream(stream, graphUri, onQuad);
41
+ return new store_1.Store(reasoner).loadFromStream(stream, graphUri, true, onQuad);
40
42
  });
41
43
  }
42
44
  exports.createStoreFromFile = createStoreFromFile;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/rdf/tests/helpers.ts"],"names":[],"mappings":";;;;AACA,+CAAyB;AACzB,mDAA6B;AAC7B,iDAA2B;AAC3B,oDAA6D;AAE7D,oCAAiC;AAGjC,SAAgB,aAAa,CAAC,QAAgB;IAC1C,OAAO,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC;AAFD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QAE7C,OAAO,IAAI,aAAK,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAC9E,CAAC;CAAA;AALD,kDAKC;AAED;;;;;EAKE;AACF,SAAsB,cAAc,CAAC,QAAgB,EAAE,YAA2B;;QAC9E,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAE7C,OAAO,4BAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IACzE,CAAC;CAAA;AALD,wCAKC;AAED;;;;;;GAMG;AACH,SAAsB,gBAAgB,CAAC,KAA4B,EAAE,QAAgB,EAAE,YAA2B;;QAC9G,OAAO,4BAAY,CAAC,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IACxE,CAAC;CAAA;AAFD,4CAEC;AAED,SAAgB,aAAa,CAAC,KAAe,EAAE,QAAgB;IAC3D,IAAI,KAAK,GAAG,EAAE,CAAC;IAEf,KAAK,IAAI,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE;QACvD,KAAK,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,SAAS,CAAC,KAAK,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;KAClF;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AARD,sCAQC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "ontology",
11
11
  "vocabulary"
12
12
  ],
13
- "version": "0.2.1",
13
+ "version": "0.2.3",
14
14
  "private": false,
15
15
  "author": {
16
16
  "name": "Sebastian Faubel"
@@ -1,2 +0,0 @@
1
- export declare const skos = "";
2
- export declare const skos = "";
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.skos = void 0;
4
- exports.skos = ``;
5
- exports.skos = ``;
6
- //# sourceMappingURL=src.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"src.js","sourceRoot":"","sources":["../../../../src/rdf/tests/generator/src.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAG,EAAE,CAAC;AAAa,QAAA,IAAI,GAAG,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const owl = "";
2
- export declare const rdf = "";
3
- export declare const rdfs = "";
4
- export declare const owl = "";
5
- export declare const rdf = "";
6
- export declare const rdfs = "";
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rdfs = exports.rdf = exports.owl = void 0;
4
- exports.owl = ``;
5
- exports.rdf = ``;
6
- exports.rdfs = ``;
7
- exports.owl = ``;
8
- exports.rdf = ``;
9
- exports.rdfs = ``;
10
- //# sourceMappingURL=src.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"src.js","sourceRoot":"","sources":["../../../../../src/rdf/tests/generator/w3c/src.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAG,EAAE,CAAC;AAET,QAAA,GAAG,GAAG,EAAE,CAAC;AAET,QAAA,IAAI,GAAG,EAAE,CAAC;AAAa,QAAA,GAAG,GAAG,EAAE,CAAC;AAEhC,QAAA,GAAG,GAAG,EAAE,CAAC;AAET,QAAA,IAAI,GAAG,EAAE,CAAC"}