rdflib 2.2.15-ce17c86d → 2.2.15-ce99321e
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/rdflib.min.js +5 -5
- package/dist/rdflib.min.js.map +1 -1
- package/esm/index.js +45 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.js +57 -1
- package/package.json +1 -1
- package/src/index.ts +14 -0
package/esm/index.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
|
|
9
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
|
+
|
|
1
11
|
import BlankNode from './blank-node';
|
|
2
12
|
import Collection from './collection';
|
|
3
13
|
import * as convert from './convert';
|
|
@@ -61,4 +71,38 @@ export * from './utils/terms';
|
|
|
61
71
|
export { BlankNode, Collection, convert, DataFactory, Empty, Fetcher, Formula, Store, jsonParser, Literal, log, N3Parser, NamedNode, Namespace, Node, parse, Query, queryToSPARQL, RDFaProcessor, RDFParser, serialize, Serializer, SPARQLToQuery, sparqlUpdateParser, Statement, term, UpdateManager, UpdatesSocket, UpdatesVia, uri, Util, Variable, Store as IndexedFormula, // Alias
|
|
62
72
|
NextId, fromNT, fetcher, graph, lit, st, namedNode as sym, // RDFJS DataFactory interface
|
|
63
73
|
blankNode, defaultGraph, literal, namedNode, quad, triple, variable };
|
|
64
|
-
export { termValue } from './utils/termValue';
|
|
74
|
+
export { termValue } from './utils/termValue';
|
|
75
|
+
export var ConnectedStore = /*#__PURE__*/function (_Store) {
|
|
76
|
+
_inherits(ConnectedStore, _Store);
|
|
77
|
+
|
|
78
|
+
var _super = _createSuper(ConnectedStore);
|
|
79
|
+
|
|
80
|
+
function ConnectedStore(features) {
|
|
81
|
+
var _this;
|
|
82
|
+
|
|
83
|
+
_classCallCheck(this, ConnectedStore);
|
|
84
|
+
|
|
85
|
+
_this = _super.call(this, features);
|
|
86
|
+
_this.fetcher = new Fetcher(_assertThisInitialized(_this), {});
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return ConnectedStore;
|
|
91
|
+
}(Store);
|
|
92
|
+
export var LiveStore = /*#__PURE__*/function (_ConnectedStore) {
|
|
93
|
+
_inherits(LiveStore, _ConnectedStore);
|
|
94
|
+
|
|
95
|
+
var _super2 = _createSuper(LiveStore);
|
|
96
|
+
|
|
97
|
+
function LiveStore(features) {
|
|
98
|
+
var _this2;
|
|
99
|
+
|
|
100
|
+
_classCallCheck(this, LiveStore);
|
|
101
|
+
|
|
102
|
+
_this2 = _super2.call(this, features);
|
|
103
|
+
_this2.updater = new UpdateManager(_assertThisInitialized(_this2));
|
|
104
|
+
return _this2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return LiveStore;
|
|
108
|
+
}(ConnectedStore);
|
package/lib/index.d.ts
CHANGED
|
@@ -38,3 +38,9 @@ export type { AutoInitOptions, ExtendedResponse, FetchError } from './fetcher';
|
|
|
38
38
|
export { BlankNode, Collection, convert, DataFactory, Empty, Fetcher, Formula, Store, jsonParser, Literal, log, N3Parser, NamedNode, Namespace, Node, parse, Query, queryToSPARQL, RDFaProcessor, RDFParser, serialize, Serializer, SPARQLToQuery, sparqlUpdateParser, Statement, term, UpdateManager, UpdatesSocket, UpdatesVia, uri, Util, Variable, Store as IndexedFormula, // Alias
|
|
39
39
|
NextId, fromNT, fetcher, graph, lit, st, namedNode as sym, blankNode, defaultGraph, literal, namedNode, quad, triple, variable, };
|
|
40
40
|
export { termValue } from './utils/termValue';
|
|
41
|
+
export declare class ConnectedStore extends Store {
|
|
42
|
+
constructor(features: any);
|
|
43
|
+
}
|
|
44
|
+
export declare class LiveStore extends ConnectedStore {
|
|
45
|
+
constructor(features: any);
|
|
46
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -23,6 +23,8 @@ var _exportNames = {
|
|
|
23
23
|
quad: true,
|
|
24
24
|
triple: true,
|
|
25
25
|
variable: true,
|
|
26
|
+
ConnectedStore: true,
|
|
27
|
+
LiveStore: true,
|
|
26
28
|
BlankNode: true,
|
|
27
29
|
Collection: true,
|
|
28
30
|
convert: true,
|
|
@@ -69,6 +71,7 @@ Object.defineProperty(exports, "Collection", {
|
|
|
69
71
|
return _collection.default;
|
|
70
72
|
}
|
|
71
73
|
});
|
|
74
|
+
exports.ConnectedStore = void 0;
|
|
72
75
|
Object.defineProperty(exports, "DataFactory", {
|
|
73
76
|
enumerable: true,
|
|
74
77
|
get: function get() {
|
|
@@ -105,6 +108,7 @@ Object.defineProperty(exports, "Literal", {
|
|
|
105
108
|
return _literal.default;
|
|
106
109
|
}
|
|
107
110
|
});
|
|
111
|
+
exports.LiveStore = void 0;
|
|
108
112
|
Object.defineProperty(exports, "N3Parser", {
|
|
109
113
|
enumerable: true,
|
|
110
114
|
get: function get() {
|
|
@@ -246,6 +250,16 @@ Object.defineProperty(exports, "termValue", {
|
|
|
246
250
|
});
|
|
247
251
|
exports.variable = exports.uri = exports.triple = void 0;
|
|
248
252
|
|
|
253
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
254
|
+
|
|
255
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
256
|
+
|
|
257
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
258
|
+
|
|
259
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
260
|
+
|
|
261
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
262
|
+
|
|
249
263
|
var _blankNode = _interopRequireDefault(require("./blank-node"));
|
|
250
264
|
|
|
251
265
|
var _collection = _interopRequireDefault(require("./collection"));
|
|
@@ -332,6 +346,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
332
346
|
|
|
333
347
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
334
348
|
|
|
349
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
350
|
+
|
|
351
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
352
|
+
|
|
335
353
|
// Prepare bound versions of data factory methods for export
|
|
336
354
|
var boundDataFactory = {};
|
|
337
355
|
|
|
@@ -373,4 +391,42 @@ var term = _node.default.fromValue; // TODO: this export is broken;
|
|
|
373
391
|
|
|
374
392
|
exports.term = term;
|
|
375
393
|
var NextId = _blankNode.default.nextId;
|
|
376
|
-
exports.NextId = NextId;
|
|
394
|
+
exports.NextId = NextId;
|
|
395
|
+
|
|
396
|
+
var ConnectedStore = /*#__PURE__*/function (_Store) {
|
|
397
|
+
(0, _inherits2.default)(ConnectedStore, _Store);
|
|
398
|
+
|
|
399
|
+
var _super = _createSuper(ConnectedStore);
|
|
400
|
+
|
|
401
|
+
function ConnectedStore(features) {
|
|
402
|
+
var _this;
|
|
403
|
+
|
|
404
|
+
(0, _classCallCheck2.default)(this, ConnectedStore);
|
|
405
|
+
_this = _super.call(this, features);
|
|
406
|
+
_this.fetcher = new _fetcher.default((0, _assertThisInitialized2.default)(_this), {});
|
|
407
|
+
return _this;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return ConnectedStore;
|
|
411
|
+
}(_store.default);
|
|
412
|
+
|
|
413
|
+
exports.ConnectedStore = ConnectedStore;
|
|
414
|
+
|
|
415
|
+
var LiveStore = /*#__PURE__*/function (_ConnectedStore) {
|
|
416
|
+
(0, _inherits2.default)(LiveStore, _ConnectedStore);
|
|
417
|
+
|
|
418
|
+
var _super2 = _createSuper(LiveStore);
|
|
419
|
+
|
|
420
|
+
function LiveStore(features) {
|
|
421
|
+
var _this2;
|
|
422
|
+
|
|
423
|
+
(0, _classCallCheck2.default)(this, LiveStore);
|
|
424
|
+
_this2 = _super2.call(this, features);
|
|
425
|
+
_this2.updater = new _updateManager.default((0, _assertThisInitialized2.default)(_this2));
|
|
426
|
+
return _this2;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return LiveStore;
|
|
430
|
+
}(ConnectedStore);
|
|
431
|
+
|
|
432
|
+
exports.LiveStore = LiveStore;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -118,3 +118,17 @@ export {
|
|
|
118
118
|
variable,
|
|
119
119
|
}
|
|
120
120
|
export { termValue } from './utils/termValue'
|
|
121
|
+
|
|
122
|
+
export class ConnectedStore extends Store {
|
|
123
|
+
constructor (features) {
|
|
124
|
+
super(features)
|
|
125
|
+
this.fetcher = new Fetcher(this, {})
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class LiveStore extends ConnectedStore {
|
|
130
|
+
constructor (features) {
|
|
131
|
+
super(features)
|
|
132
|
+
this.updater = new UpdateManager(this)
|
|
133
|
+
}
|
|
134
|
+
}
|