solid-ui 2.6.1-59944fe → 2.6.1-8984b92

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.
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("$rdf"));
3
+ module.exports = factory(require("rdflib"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["$rdf"], factory);
5
+ define(["rdflib"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["UI"] = factory(require("$rdf"));
7
+ exports["UI"] = factory(require("rdflib"));
8
8
  else
9
- root["UI"] = factory(root["$rdf"]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__4264__) => {
9
+ root["UI"] = factory(root["rdflib"]);
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__5491__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -2664,7 +2664,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2664
2664
  exports.ns = void 0;
2665
2665
  // Namespaces we commonly use and have common prefixes for around Solid
2666
2666
  var solid_namespace_1 = __importDefault(__webpack_require__(5386)); // Delegate to this which takes RDFlib as param.
2667
- var $rdf = __importStar(__webpack_require__(4264));
2667
+ var $rdf = __importStar(__webpack_require__(5491));
2668
2668
  exports.ns = (0, solid_namespace_1.default)($rdf);
2669
2669
  //# sourceMappingURL=ns.js.map
2670
2670
 
@@ -2953,7 +2953,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
2953
2953
  };
2954
2954
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2955
2955
  exports.SolidAuthnLogic = void 0;
2956
- var rdflib_1 = __webpack_require__(4264);
2956
+ var rdflib_1 = __webpack_require__(5491);
2957
2957
  var authUtil_1 = __webpack_require__(9288);
2958
2958
  var debug = __importStar(__webpack_require__(8339));
2959
2959
  var solid_client_authn_browser_1 = __webpack_require__(2452);
@@ -3494,7 +3494,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
3494
3494
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3495
3495
  exports.ACL_LINK = void 0;
3496
3496
  exports.createAclLogic = createAclLogic;
3497
- var rdflib_1 = __webpack_require__(4264);
3497
+ var rdflib_1 = __webpack_require__(5491);
3498
3498
  var ns_1 = __webpack_require__(733);
3499
3499
  exports.ACL_LINK = (0, rdflib_1.sym)("http://www.iana.org/assignments/link-relations/acl");
3500
3500
  function createAclLogic(store) {
@@ -7891,14 +7891,6 @@ exports.authSession = new solid_client_authn_browser_1.Session();
7891
7891
 
7892
7892
  /***/ }),
7893
7893
 
7894
- /***/ 4264:
7895
- /***/ ((module) => {
7896
-
7897
- "use strict";
7898
- module.exports = __WEBPACK_EXTERNAL_MODULE__4264__;
7899
-
7900
- /***/ }),
7901
-
7902
7894
  /***/ 4299:
7903
7895
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7904
7896
 
@@ -9775,7 +9767,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
9775
9767
  };
9776
9768
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9777
9769
  exports.createUtilityLogic = createUtilityLogic;
9778
- var rdflib_1 = __webpack_require__(4264);
9770
+ var rdflib_1 = __webpack_require__(5491);
9779
9771
  var CustomError_1 = __webpack_require__(1033);
9780
9772
  var debug = __importStar(__webpack_require__(8339));
9781
9773
  var utils_1 = __webpack_require__(9013);
@@ -10485,6 +10477,14 @@ function vocab (rdf = { namedNode: u => u }) {
10485
10477
  module.exports = vocab
10486
10478
 
10487
10479
 
10480
+ /***/ }),
10481
+
10482
+ /***/ 5491:
10483
+ /***/ ((module) => {
10484
+
10485
+ "use strict";
10486
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5491__;
10487
+
10488
10488
  /***/ }),
10489
10489
 
10490
10490
  /***/ 5500:
@@ -10783,7 +10783,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
10783
10783
  };
10784
10784
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10785
10785
  exports.createTypeIndexLogic = createTypeIndexLogic;
10786
- var rdflib_1 = __webpack_require__(4264);
10786
+ var rdflib_1 = __webpack_require__(5491);
10787
10787
  var debug = __importStar(__webpack_require__(8339));
10788
10788
  var ns_1 = __webpack_require__(733);
10789
10789
  var utils_1 = __webpack_require__(9013);
@@ -12707,7 +12707,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
12707
12707
  };
12708
12708
  Object.defineProperty(exports, "__esModule", ({ value: true }));
12709
12709
  exports.createContainerLogic = createContainerLogic;
12710
- var rdflib_1 = __webpack_require__(4264);
12710
+ var rdflib_1 = __webpack_require__(5491);
12711
12711
  /**
12712
12712
  * Container-related class
12713
12713
  */
@@ -12813,7 +12813,7 @@ var __importStar = (this && this.__importStar) || (function () {
12813
12813
  })();
12814
12814
  Object.defineProperty(exports, "__esModule", ({ value: true }));
12815
12815
  exports.createSolidLogic = createSolidLogic;
12816
- var rdf = __importStar(__webpack_require__(4264));
12816
+ var rdf = __importStar(__webpack_require__(5491));
12817
12817
  var aclLogic_1 = __webpack_require__(1888);
12818
12818
  var SolidAuthnLogic_1 = __webpack_require__(1085);
12819
12819
  var chatLogic_1 = __webpack_require__(9154);
@@ -13473,7 +13473,7 @@ exports.getArchiveUrl = getArchiveUrl;
13473
13473
  exports.differentOrigin = differentOrigin;
13474
13474
  exports.suggestPreferencesFile = suggestPreferencesFile;
13475
13475
  exports.determineChatContainer = determineChatContainer;
13476
- var rdflib_1 = __webpack_require__(4264);
13476
+ var rdflib_1 = __webpack_require__(5491);
13477
13477
  function newThing(doc) {
13478
13478
  return (0, rdflib_1.sym)(doc.uri + "#" + "id" + ("" + Date.now()));
13479
13479
  }
@@ -13639,7 +13639,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13639
13639
  };
13640
13640
  Object.defineProperty(exports, "__esModule", ({ value: true }));
13641
13641
  exports.createChatLogic = createChatLogic;
13642
- var rdflib_1 = __webpack_require__(4264);
13642
+ var rdflib_1 = __webpack_require__(5491);
13643
13643
  var ns_1 = __webpack_require__(733);
13644
13644
  var utils_1 = __webpack_require__(9013);
13645
13645
  var CHAT_LOCATION_IN_CONTAINER = "index.ttl#this";
@@ -13905,7 +13905,7 @@ var __importStar = (this && this.__importStar) || (function () {
13905
13905
  Object.defineProperty(exports, "__esModule", ({ value: true }));
13906
13906
  exports.appContext = void 0;
13907
13907
  exports.offlineTestID = offlineTestID;
13908
- var rdflib_1 = __webpack_require__(4264);
13908
+ var rdflib_1 = __webpack_require__(5491);
13909
13909
  var debug = __importStar(__webpack_require__(8339));
13910
13910
  /**
13911
13911
  * find a user or app's context as set in window.SolidAppContext
@@ -14554,7 +14554,7 @@ __webpack_require__.d(__webpack_exports__, {
14554
14554
  pad: () => (/* reexport */ pad_namespaceObject),
14555
14555
  participation: () => (/* reexport */ participation_namespaceObject),
14556
14556
  preferences: () => (/* reexport */ preferences_namespaceObject),
14557
- rdf: () => (/* reexport */ external_$rdf_),
14557
+ rdf: () => (/* reexport */ external_rdflib_),
14558
14558
  store: () => (/* reexport */ lib/* store */.M_),
14559
14559
  style: () => (/* reexport */ style),
14560
14560
  table: () => (/* reexport */ renderTableViewPane),
@@ -14816,8 +14816,8 @@ __webpack_require__.d(tabs_namespaceObject, {
14816
14816
  var types_namespaceObject = {};
14817
14817
  __webpack_require__.r(types_namespaceObject);
14818
14818
 
14819
- // EXTERNAL MODULE: external "$rdf"
14820
- var external_$rdf_ = __webpack_require__(4264);
14819
+ // EXTERNAL MODULE: external "rdflib"
14820
+ var external_rdflib_ = __webpack_require__(5491);
14821
14821
  // EXTERNAL MODULE: ./node_modules/solid-namespace/index.js
14822
14822
  var solid_namespace = __webpack_require__(5386);
14823
14823
  var solid_namespace_default = /*#__PURE__*/__webpack_require__.n(solid_namespace);
@@ -14826,7 +14826,7 @@ var solid_namespace_default = /*#__PURE__*/__webpack_require__.n(solid_namespace
14826
14826
 
14827
14827
  // Delegate to this which takes RDFlib as param.
14828
14828
 
14829
- /* harmony default export */ const src_ns = (solid_namespace_default()(external_$rdf_));
14829
+ /* harmony default export */ const src_ns = (solid_namespace_default()(external_rdflib_));
14830
14830
  ;// ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
14831
14831
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
14832
14832
  try {
@@ -15062,7 +15062,7 @@ function setInternals(window, document) {
15062
15062
  var UI = {
15063
15063
  log: log_namespaceObject,
15064
15064
  ns: src_ns,
15065
- rdf: external_$rdf_
15065
+ rdf: external_rdflib_
15066
15066
  };
15067
15067
 
15068
15068
  // This ubiquitous function returns the best label for a thing
@@ -15178,16 +15178,16 @@ function adoptACLDefault(doc, aclDoc, defaultResource, defaultACLDoc) {
15178
15178
 
15179
15179
  var defaults = kb.each(undefined, ACL('default'), defaultResource, defaultACLDoc).concat(kb.each(undefined, ACL('defaultForNew'), defaultResource, defaultACLDoc));
15180
15180
  var proposed = defaults.reduce(function (accumulatedStatements, da) {
15181
- return accumulatedStatements.concat(kb.statementsMatching(da, src_ns.rdf('type'), ACL('Authorization'), defaultACLDoc)).concat(kb.statementsMatching(da, ACL('agent'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('agentClass'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('agentGroup'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('origin'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('originClass'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('mode'), undefined, defaultACLDoc)).concat((0,external_$rdf_.st)(da, ACL('accessTo'), doc, defaultACLDoc)).concat(isContainer ? (0,external_$rdf_.st)(da, ACL('default'), doc, defaultACLDoc) : []);
15181
+ return accumulatedStatements.concat(kb.statementsMatching(da, src_ns.rdf('type'), ACL('Authorization'), defaultACLDoc)).concat(kb.statementsMatching(da, ACL('agent'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('agentClass'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('agentGroup'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('origin'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('originClass'), undefined, defaultACLDoc)).concat(kb.statementsMatching(da, ACL('mode'), undefined, defaultACLDoc)).concat((0,external_rdflib_.st)(da, ACL('accessTo'), doc, defaultACLDoc)).concat(isContainer ? (0,external_rdflib_.st)(da, ACL('default'), doc, defaultACLDoc) : []);
15182
15182
  }, []);
15183
- var kb2 = (0,external_$rdf_.graph)(); // Potential - derived is kept apart
15183
+ var kb2 = (0,external_rdflib_.graph)(); // Potential - derived is kept apart
15184
15184
  proposed.forEach(function (st) {
15185
- return kb2.add(move(st.subject), move(st.predicate), move(st.object), (0,external_$rdf_.sym)(aclDoc.uri));
15185
+ return kb2.add(move(st.subject), move(st.predicate), move(st.object), (0,external_rdflib_.sym)(aclDoc.uri));
15186
15186
  });
15187
15187
  return kb2;
15188
15188
  function move(symbol) {
15189
15189
  var y = defaultACLDoc.uri.length; // The default ACL file
15190
- return (0,external_$rdf_.sym)(symbol.uri.slice(0, y) === defaultACLDoc.uri ? aclDoc.uri + symbol.uri.slice(y) : symbol.uri);
15190
+ return (0,external_rdflib_.sym)(symbol.uri.slice(0, y) === defaultACLDoc.uri ? aclDoc.uri + symbol.uri.slice(y) : symbol.uri);
15191
15191
  }
15192
15192
  }
15193
15193
 
@@ -15384,7 +15384,7 @@ function comboToString(byCombo) {
15384
15384
  var pairs = byCombo[combo];
15385
15385
  for (var i = 0; i < pairs.length; i++) {
15386
15386
  var pred = pairs[i][0];
15387
- var ag = (0,external_$rdf_.sym)(pairs[i][1]);
15387
+ var ag = (0,external_rdflib_.sym)(pairs[i][1]);
15388
15388
  str += pred === 'agent' ? '@' : '';
15389
15389
  str += ag.sameTerm(src_ns.foaf('Agent')) ? '*' : label_label(ag);
15390
15390
  if (i < pairs.length - 1) str += ',';
@@ -15398,9 +15398,9 @@ function comboToString(byCombo) {
15398
15398
  * Write ACL graph as Turtle
15399
15399
  */
15400
15400
  function makeACLString(x, ac, aclDoc) {
15401
- var kb2 = (0,external_$rdf_.graph)();
15401
+ var kb2 = (0,external_rdflib_.graph)();
15402
15402
  makeACLGraph(kb2, x, ac, aclDoc);
15403
- return (0,external_$rdf_.serialize)(aclDoc, kb2, aclDoc.uri, 'text/turtle') || '';
15403
+ return (0,external_rdflib_.serialize)(aclDoc, kb2, aclDoc.uri, 'text/turtle') || '';
15404
15404
  }
15405
15405
 
15406
15406
  /**
@@ -15416,7 +15416,7 @@ function putACLObject(kb, x, ac, aclDoc, callbackFunction) {
15416
15416
  */
15417
15417
  function putACLbyCombo(kb, x, byCombo, aclDoc, callbackFunction) {
15418
15418
  var _kb$updater;
15419
- var kb2 = (0,external_$rdf_.graph)();
15419
+ var kb2 = (0,external_rdflib_.graph)();
15420
15420
  makeACLGraphbyCombo(kb2, x, byCombo, aclDoc, true);
15421
15421
 
15422
15422
  // const str = makeACLString = function(x, ac, aclDoc)
@@ -15538,7 +15538,7 @@ function getACLorDefault(doc, callbackFunction) {
15538
15538
  return callbackFunction(false, true, 404, 'Found no ACL resource');
15539
15539
  }
15540
15540
  uri = uri.slice(0, right + 1);
15541
- var doc2 = (0,external_$rdf_.sym)(uri);
15541
+ var doc2 = (0,external_rdflib_.sym)(uri);
15542
15542
  getACL(doc2, function (ok, status, defaultACLDoc) {
15543
15543
  if (!ok) {
15544
15544
  return callbackFunction(false, true, status, "( No ACL pointer ".concat(uri, " ").concat(status, ")").concat(defaultACLDoc));
@@ -15624,7 +15624,7 @@ function _getProspectiveHolder() {
15624
15624
  while (1) switch (_context.prev = _context.next) {
15625
15625
  case 0:
15626
15626
  return _context.abrupt("return", new Promise(function (resolve, reject) {
15627
- return getACLorDefault((0,external_$rdf_.sym)(targetDirectory), function (ok, isDirectACL, targetDoc, targetACLDoc, defaultHolder) {
15627
+ return getACLorDefault((0,external_rdflib_.sym)(targetDirectory), function (ok, isDirectACL, targetDoc, targetACLDoc, defaultHolder) {
15628
15628
  if (ok) {
15629
15629
  return resolve(isDirectACL ? targetDoc : defaultHolder);
15630
15630
  }
@@ -16136,7 +16136,7 @@ var iconBase = __webpack_require__(3378);
16136
16136
  var utils_UI = {
16137
16137
  log: log_namespaceObject,
16138
16138
  ns: src_ns,
16139
- rdf: external_$rdf_
16139
+ rdf: external_rdflib_
16140
16140
  };
16141
16141
 
16142
16142
  var nextVariable = 0;
@@ -17096,7 +17096,7 @@ function setImage(element, thing) {
17096
17096
  var pref = k.split(':')[0];
17097
17097
  var id = k.split(':')[1];
17098
17098
  var theClass = src_ns[pref](id);
17099
- iconForClassMap[theClass.uri] = external_$rdf_.uri.join(iconForClass[k], buttons_iconBase);
17099
+ iconForClassMap[theClass.uri] = external_rdflib_.uri.join(iconForClass[k], buttons_iconBase);
17100
17100
  }
17101
17101
  var happy = trySetImage(element, thing, iconForClassMap);
17102
17102
  if (!happy && thing.uri) {
@@ -17498,7 +17498,7 @@ function attachmentList(dom, subject, div) {
17498
17498
  if (!kb.updater) {
17499
17499
  throw new Error('kb has no updater');
17500
17500
  }
17501
- kb.updater.update((0,external_$rdf_.st)(subject, predicate, target, doc), [], function (uri, ok, errorBody, _xhr) {
17501
+ kb.updater.update((0,external_rdflib_.st)(subject, predicate, target, doc), [], function (uri, ok, errorBody, _xhr) {
17502
17502
  if (ok) {
17503
17503
  refresh();
17504
17504
  } else {
@@ -17526,9 +17526,9 @@ function attachmentList(dom, subject, div) {
17526
17526
  function droppedURIHandler(uris) {
17527
17527
  var ins = [];
17528
17528
  uris.forEach(function (u) {
17529
- var target = (0,external_$rdf_.sym)(u); // Attachment needs text label to disinguish I think not icon.
17529
+ var target = (0,external_rdflib_.sym)(u); // Attachment needs text label to disinguish I think not icon.
17530
17530
  src_debug/* log */.Rm('Dropped on attachemnt ' + u); // icon was: iconBase + 'noun_25830.svg'
17531
- ins.push((0,external_$rdf_.st)(subject, predicate, target, doc));
17531
+ ins.push((0,external_rdflib_.st)(subject, predicate, target, doc));
17532
17532
  });
17533
17533
  if (!kb.updater) {
17534
17534
  throw new Error('kb has no updater');
@@ -17547,7 +17547,7 @@ function attachmentList(dom, subject, div) {
17547
17547
  (_options$uploadFolder2 = options.uploadFolder) === null || _options$uploadFolder2 === void 0 ? void 0 : _options$uploadFolder2.uri,
17548
17548
  // Pictures
17549
17549
  function (theFile, destURI) {
17550
- var ins = [(0,external_$rdf_.st)(subject, predicate, kb.sym(destURI), doc)];
17550
+ var ins = [(0,external_rdflib_.st)(subject, predicate, kb.sym(destURI), doc)];
17551
17551
  if (!kb.updater) {
17552
17552
  throw new Error('kb has no updater');
17553
17553
  }
@@ -17963,7 +17963,7 @@ function isImage(file, kind) {
17963
17963
  var typeURIs = lib/* store */.M_.findTypeURIs(file);
17964
17964
  // See https://github.com/linkeddata/rdflib.js/blob/d5000f/src/utils-js.js#L14
17965
17965
  // e.g.'http://www.w3.org/ns/iana/media-types/audio'
17966
- var prefix = external_$rdf_.Util.mediaTypeClass(what + '/*').uri.split('*')[0];
17966
+ var prefix = external_rdflib_.Util.mediaTypeClass(what + '/*').uri.split('*')[0];
17967
17967
  for (var t in typeURIs) {
17968
17968
  if (t.startsWith(prefix)) return true;
17969
17969
  }
@@ -18453,17 +18453,17 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18453
18453
  result = kb.sym(params.uriPrefix + field.value);
18454
18454
  } else {
18455
18455
  if (params.dt) {
18456
- result = new external_$rdf_.Literal(field.value.trim(), undefined, src_ns.xsd(params.dt));
18456
+ result = new external_rdflib_.Literal(field.value.trim(), undefined, src_ns.xsd(params.dt));
18457
18457
  } else {
18458
- result = new external_$rdf_.Literal(field.value);
18458
+ result = new external_rdflib_.Literal(field.value);
18459
18459
  }
18460
18460
  }
18461
18461
  var is = ds.map(function (statement) {
18462
- return (0,external_$rdf_.st)(statement.subject, statement.predicate, result, statement.why);
18462
+ return (0,external_rdflib_.st)(statement.subject, statement.predicate, result, statement.why);
18463
18463
  }); // can include >1 doc
18464
18464
  if (is.length === 0) {
18465
18465
  // or none
18466
- is = [(0,external_$rdf_.st)(subject, property, result, doc)];
18466
+ is = [(0,external_rdflib_.st)(subject, property, result, doc)];
18467
18467
  }
18468
18468
  function updateMany(ds, is, callback) {
18469
18469
  var docs = [];
@@ -18818,9 +18818,9 @@ function bindingToTerm(item) {
18818
18818
  return lib/* store */.M_.sym(item.value);
18819
18819
  } else if (typ === 'literal') {
18820
18820
  if (item['xml:lang']) {
18821
- return new external_$rdf_.Literal(item.value, item['xml:lang']);
18821
+ return new external_rdflib_.Literal(item.value, item['xml:lang']);
18822
18822
  } else {
18823
- return new external_$rdf_.Literal(item.value);
18823
+ return new external_rdflib_.Literal(item.value);
18824
18824
  }
18825
18825
  } else {
18826
18826
  throw new Error("bindingToTerm: Unexpected type \"".concat(item.type, "\" in sparql binding}"));
@@ -18850,7 +18850,7 @@ function loadFromBindings(kb, solidSubject, bindings, doc) {
18850
18850
  if (type === 'uri') {
18851
18851
  obj = kb.sym(value);
18852
18852
  } else if (type === 'literal') {
18853
- obj = new external_$rdf_.Literal(value, result.language, result.datatype);
18853
+ obj = new external_rdflib_.Literal(value, result.language, result.datatype);
18854
18854
  } else {
18855
18855
  throw new Error("loadFromBindings: unexpected type: ".concat(type));
18856
18856
  }
@@ -18868,8 +18868,8 @@ function loadFromBindings(kb, solidSubject, bindings, doc) {
18868
18868
  var match = regexp.exec(value);
18869
18869
  if (match) {
18870
18870
  var _float = src_ns.xsd('float');
18871
- var latitude = new external_$rdf_.Literal(match[1], null, _float);
18872
- var longitude = new external_$rdf_.Literal(match[2], null, _float);
18871
+ var latitude = new external_rdflib_.Literal(match[1], null, _float);
18872
+ var longitude = new external_rdflib_.Literal(match[2], null, _float);
18873
18873
  kb.add(solidSubject, src_ns.schema('longitude'), longitude, doc);
18874
18874
  kb.add(solidSubject, src_ns.schema('latitude'), latitude, doc);
18875
18875
  } else {
@@ -19165,7 +19165,7 @@ function _queryPublicDataConstruct() {
19165
19165
  }
19166
19166
  throw new Error('queryPublicDataConstruct: No text back from construct query:' + queryURI);
19167
19167
  case 3:
19168
- (0,external_$rdf_.parse)(text, lib/* store */.M_, pubicId.uri, 'text/turtle');
19168
+ (0,external_rdflib_.parse)(text, lib/* store */.M_, pubicId.uri, 'text/turtle');
19169
19169
  case 4:
19170
19170
  case "end":
19171
19171
  return _context4.stop();
@@ -20068,7 +20068,7 @@ function autocompleteField(dom, container, already, subject, form, doc, callback
20068
20068
  return _context.abrupt("return");
20069
20069
  case 2:
20070
20070
  deletables = oldValue ? kb.statementsMatching(subject, property, oldValue, doc).concat(kb.statementsMatching(oldValue, labelProperty, null, doc)) : []; // console.log('autocompleteField Deletables ' + deletables.map(st => st.toNT()))
20071
- insertables = [(0,external_$rdf_.st)(subject, property, result, doc), (0,external_$rdf_.st)(result, labelProperty, name, doc)]; // @@ track the language of the name too!
20071
+ insertables = [(0,external_rdflib_.st)(subject, property, result, doc), (0,external_rdflib_.st)(result, labelProperty, name, doc)]; // @@ track the language of the name too!
20072
20072
  // console.log(`AC form: ${deletables.length} to delete and ${insertables.length} to insert`)
20073
20073
  _context.prev = 3;
20074
20074
  _context.next = 4;
@@ -21144,7 +21144,7 @@ field[src_ns.ui('Options').uri] = function (dom, container, already, subject, fo
21144
21144
  var values;
21145
21145
  if (dependingOn.sameTerm(src_ns.rdf('type'))) {
21146
21146
  values = Object.keys(kb.findTypeURIs(subject)).map(function (uri) {
21147
- return external_$rdf_.sym(uri);
21147
+ return external_rdflib_.sym(uri);
21148
21148
  }); // Use RDF-S inference
21149
21149
  } else {
21150
21150
  values = kb.each(subject, dependingOn);
@@ -21241,7 +21241,7 @@ field[src_ns.ui('Multiple').uri] = function (dom, container, already, subject, f
21241
21241
  _context6.next = 7;
21242
21242
  break;
21243
21243
  case 2:
21244
- toBeInserted = reverse ? [external_$rdf_.st(object, property, subject, dataDoc)] : [external_$rdf_.st(subject, property, object, dataDoc)];
21244
+ toBeInserted = reverse ? [external_rdflib_.st(object, property, subject, dataDoc)] : [external_rdflib_.st(subject, property, object, dataDoc)];
21245
21245
  _context6.prev = 3;
21246
21246
  _context6.next = 4;
21247
21247
  return kb.updater.update([], toBeInserted);
@@ -21308,7 +21308,7 @@ field[src_ns.ui('Multiple').uri] = function (dom, container, already, subject, f
21308
21308
  case 5:
21309
21309
  // unordered
21310
21310
  if (kb.holds(subject, property, object, dataDoc)) {
21311
- del = [external_$rdf_.st(subject, property, object, dataDoc)];
21311
+ del = [external_rdflib_.st(subject, property, object, dataDoc)];
21312
21312
  kb.updater.update(del, [], function (uri, ok, message) {
21313
21313
  if (ok) {
21314
21314
  body.removeChild(subField);
@@ -21482,7 +21482,7 @@ field[src_ns.ui('Multiple').uri] = function (dom, container, already, subject, f
21482
21482
  var ui = src_ns.ui;
21483
21483
  if (container) container.appendChild(box);
21484
21484
  var orderedNode = kb.any(form, ui('ordered'));
21485
- var ordered = orderedNode ? external_$rdf_.Node.toJS(orderedNode) : false;
21485
+ var ordered = orderedNode ? external_rdflib_.Node.toJS(orderedNode) : false;
21486
21486
  var property = kb.any(form, ui('property'));
21487
21487
  var reverse = kb.anyJS(form, ui('reverse'), null, formDoc);
21488
21488
  if (!property) {
@@ -21546,7 +21546,7 @@ field[src_ns.ui('Multiple').uri] = function (dom, container, already, subject, f
21546
21546
  }
21547
21547
  function createListIfNecessary() {
21548
21548
  if (!list) {
21549
- list = new external_$rdf_.Collection();
21549
+ list = new external_rdflib_.Collection();
21550
21550
  if (reverse) {
21551
21551
  kb.add(list, property, subject, dataDoc);
21552
21552
  } else {
@@ -21721,8 +21721,8 @@ function booleanField(dom, container, already, subject, form, dataDoc, callbackF
21721
21721
  if (state === undefined) {
21722
21722
  state = false;
21723
21723
  } // @@ sure we want that -- or three-state?
21724
- var ins = external_$rdf_.st(subject, property, true, dataDoc);
21725
- var del = external_$rdf_.st(subject, property, false, dataDoc);
21724
+ var ins = external_rdflib_.st(subject, property, true, dataDoc);
21725
+ var del = external_rdflib_.st(subject, property, false, dataDoc);
21726
21726
  var box = buildCheckboxForm(dom, kb, lab, del, ins, form, dataDoc, tristate);
21727
21727
  if (container) container.appendChild(box);
21728
21728
  return box;
@@ -21886,10 +21886,10 @@ field[src_ns.ui('Choice').uri] = function (dom, container, already, subject, for
21886
21886
  if (stringValue.includes('Create new')) {
21887
21887
  var newObject = newThing(dataDoc);
21888
21888
  var is = [];
21889
- is.push(external_$rdf_.st(subject, property, kb.sym(newObject), dataDoc));
21890
- if (uiFrom) is.push(external_$rdf_.st(newObject, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc));
21889
+ is.push(external_rdflib_.st(subject, property, kb.sym(newObject), dataDoc));
21890
+ if (uiFrom) is.push(external_rdflib_.st(newObject, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc));
21891
21891
  if (subForm) {
21892
- addSubFormChoice(dom, rhs, {}, external_$rdf_.sym(newObject), subForm, dataDoc, function (ok, body) {
21892
+ addSubFormChoice(dom, rhs, {}, external_rdflib_.sym(newObject), subForm, dataDoc, function (ok, body) {
21893
21893
  if (ok) {
21894
21894
  kb.updater.update([], is, function (uri, success, errorBody) {
21895
21895
  if (!success) rhs.appendChild(errorMessageBlock(dom, 'Error updating select: ' + errorBody));
@@ -22119,10 +22119,10 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
22119
22119
  if (!ok) return callbackFunction(ok, body);
22120
22120
  var insertMe = [];
22121
22121
  if (subject && !kb.holds(subject, predicate, object, dataDoc)) {
22122
- insertMe.push(external_$rdf_.st(subject, predicate, object, dataDoc));
22122
+ insertMe.push(external_rdflib_.st(subject, predicate, object, dataDoc));
22123
22123
  }
22124
22124
  if (subject && !kb.holds(object, src_ns.rdf('type'), theClass, dataDoc)) {
22125
- insertMe.push(external_$rdf_.st(object, src_ns.rdf('type'), theClass, dataDoc));
22125
+ insertMe.push(external_rdflib_.st(object, src_ns.rdf('type'), theClass, dataDoc));
22126
22126
  }
22127
22127
  if (insertMe.length) {
22128
22128
  kb.updater.update([], insertMe, linkDone);
@@ -22171,7 +22171,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
22171
22171
  field.disabled = true;
22172
22172
  field.style.color = styleConstants.textInputColorPending;
22173
22173
  var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
22174
- var is = external_$rdf_.st(subject, predicate, field.value, dataDoc);
22174
+ var is = external_rdflib_.st(subject, predicate, field.value, dataDoc);
22175
22175
  kb.updater.update(ds, is, function (uri, ok, body) {
22176
22176
  if (ok) {
22177
22177
  field.style.color = styleConstants.textInputColor;
@@ -22256,7 +22256,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
22256
22256
  var is = [];
22257
22257
  var removeValue = function removeValue(t) {
22258
22258
  if (kb.holds(subject, predicate, t, dataDoc)) {
22259
- ds.push(external_$rdf_.st(subject, predicate, t, dataDoc));
22259
+ ds.push(external_rdflib_.st(subject, predicate, t, dataDoc));
22260
22260
  }
22261
22261
  };
22262
22262
  var newObject;
@@ -22276,7 +22276,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
22276
22276
  } else {
22277
22277
  newObject = newThing(dataDoc);
22278
22278
  }
22279
- is.push(external_$rdf_.st(subject, predicate, newObject, dataDoc));
22279
+ is.push(external_rdflib_.st(subject, predicate, newObject, dataDoc));
22280
22280
  if (options.mintStatementsFun) {
22281
22281
  is = is.concat(options.mintStatementsFun(newObject));
22282
22282
  }
@@ -22284,7 +22284,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
22284
22284
  if (!opt.AJAR_uri) continue; // a prompt or mint
22285
22285
  if (opt.selected && !(opt.AJAR_uri in actual)) {
22286
22286
  // new class
22287
- is.push(external_$rdf_.st(subject, predicate, kb.sym(opt.AJAR_uri), dataDoc));
22287
+ is.push(external_rdflib_.st(subject, predicate, kb.sym(opt.AJAR_uri), dataDoc));
22288
22288
  }
22289
22289
  if (!opt.selected && opt.AJAR_uri in actual) {
22290
22290
  // old class
@@ -22426,7 +22426,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
22426
22426
  var is = [];
22427
22427
  var removeValue = function removeValue(t) {
22428
22428
  if (kb.holds(subject, predicate, t, dataDoc)) {
22429
- ds.push(external_$rdf_.st(subject, predicate, t, dataDoc));
22429
+ ds.push(external_rdflib_.st(subject, predicate, t, dataDoc));
22430
22430
  }
22431
22431
  };
22432
22432
  for (var _i3 = 0; _i3 < select.options.length; _i3++) {
@@ -22434,7 +22434,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
22434
22434
  if (!opt.AJAR_uri) continue; // a prompt or mint
22435
22435
  if (opt.selected && !(opt.AJAR_uri in actual)) {
22436
22436
  // new class
22437
- is.push(external_$rdf_.st(subject, predicate, kb.sym(opt.AJAR_uri), dataDoc));
22437
+ is.push(external_rdflib_.st(subject, predicate, kb.sym(opt.AJAR_uri), dataDoc));
22438
22438
  }
22439
22439
  if (!opt.selected && opt.AJAR_uri in actual) {
22440
22440
  // old class
@@ -22696,7 +22696,7 @@ export function fieldStore (subject, predicate, def) {
22696
22696
  */
22697
22697
  function newThing(doc) {
22698
22698
  var now = new Date();
22699
- return external_$rdf_.sym(doc.uri + '#' + 'id' + ('' + now.getTime()));
22699
+ return external_rdflib_.sym(doc.uri + '#' + 'id' + ('' + now.getTime()));
22700
22700
  }
22701
22701
 
22702
22702
  /** Make SELECT element to select options
@@ -22766,16 +22766,16 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
22766
22766
  var is = [];
22767
22767
  var removeValue = function removeValue(t) {
22768
22768
  if (kb.holds(subject, predicate, t, dataDoc)) {
22769
- ds.push(external_$rdf_.st(subject, predicate, t, dataDoc));
22769
+ ds.push(external_rdflib_.st(subject, predicate, t, dataDoc));
22770
22770
  }
22771
22771
  };
22772
22772
  var addValue = function addValue(t) {
22773
22773
  if (!kb.holds(subject, predicate, t, dataDoc)) {
22774
- is.push(external_$rdf_.st(subject, predicate, t, dataDoc));
22774
+ is.push(external_rdflib_.st(subject, predicate, t, dataDoc));
22775
22775
  // console.log("----value added " + t)
22776
22776
  }
22777
22777
  if (uiFrom && !kb.holds(t, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc)) {
22778
- is.push(external_$rdf_.st(t, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc));
22778
+ is.push(external_rdflib_.st(t, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc));
22779
22779
  // console.log("----added type to value " + uiFrom)
22780
22780
  }
22781
22781
  };
@@ -22787,7 +22787,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
22787
22787
  try {
22788
22788
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
22789
22789
  var value = _step2.value;
22790
- if (!containsObject(value, selectedOptions)) removeValue(external_$rdf_.sym(value));
22790
+ if (!containsObject(value, selectedOptions)) removeValue(external_rdflib_.sym(value));
22791
22791
  }
22792
22792
  } catch (err) {
22793
22793
  _iterator2.e(err);
@@ -22799,7 +22799,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
22799
22799
  try {
22800
22800
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
22801
22801
  var _value = _step3.value;
22802
- if (!(_value in existingValues)) addValue(external_$rdf_.sym(_value));
22802
+ if (!(_value in existingValues)) addValue(external_rdflib_.sym(_value));
22803
22803
  }
22804
22804
  } catch (err) {
22805
22805
  _iterator3.e(err);
@@ -22836,8 +22836,8 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
22836
22836
  } else {
22837
22837
  newObject = newThing(dataDoc);
22838
22838
  }
22839
- is.push(external_$rdf_.st(subject, predicate, kb.sym(newObject), dataDoc));
22840
- if (uiFrom) is.push(external_$rdf_.st(newObject, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc));
22839
+ is.push(external_rdflib_.st(subject, predicate, kb.sym(newObject), dataDoc));
22840
+ if (uiFrom) is.push(external_rdflib_.st(newObject, src_ns.rdf('type'), kb.sym(uiFrom), dataDoc));
22841
22841
 
22842
22842
  // not sure if this 'if' is used because I cannot find mintStatementsFun
22843
22843
  if (options.mintStatementsFun) {
@@ -22854,7 +22854,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
22854
22854
  }
22855
22855
  info('selectForOptions: data doc = ' + dataDoc);
22856
22856
  if (select.currentURI && options.subForm && !options.multiSelect) {
22857
- addSubFormChoice(dom, container, {}, external_$rdf_.sym(select.currentURI), options.subForm, dataDoc, function (ok, body) {
22857
+ addSubFormChoice(dom, container, {}, external_rdflib_.sym(select.currentURI), options.subForm, dataDoc, function (ok, body) {
22858
22858
  if (ok) {
22859
22859
  kb.updater.update([], is, function (uri, success, errorBody) {
22860
22860
  if (!success) container.appendChild(errorMessageBlock(dom, 'Error updating select: ' + errorBody));
@@ -23282,7 +23282,7 @@ function _registrationControl() {
23282
23282
  registrationStatements = function _registrationStatemen(index) {
23283
23283
  var registrations = getRegistrations(instance, theClass);
23284
23284
  var reg = registrations.length ? registrations[0] : newThing(index);
23285
- return [(0,external_$rdf_.st)(reg, src_ns.solid('instance'), instance, index), (0,external_$rdf_.st)(reg, src_ns.solid('forClass'), theClass, index)];
23285
+ return [(0,external_rdflib_.st)(reg, src_ns.solid('instance'), instance, index), (0,external_rdflib_.st)(reg, src_ns.solid('forClass'), theClass, index)];
23286
23286
  };
23287
23287
  /// / body of registrationControl
23288
23288
  dom = context.dom;
@@ -23326,7 +23326,7 @@ function _registrationControl() {
23326
23326
  box.innerHTML = '<table><tbody></tbody></table>'; // tbody will be inserted anyway
23327
23327
  box.setAttribute('style', 'font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;');
23328
23328
  tbody = box.children[0].children[0];
23329
- form = new external_$rdf_.BlankNode(); // @@ say for now
23329
+ form = new external_rdflib_.BlankNode(); // @@ say for now
23330
23330
  _iterator = login_createForOfIteratorHelper(scopes);
23331
23331
  try {
23332
23332
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -23904,7 +23904,7 @@ function selectWorkspace(dom, appDetails, callbackWS) {
23904
23904
  case 1:
23905
23905
  newBase = _t3(_context3.sent);
23906
23906
  newWs = newThing(context.preferencesFile);
23907
- newData = [(0,external_$rdf_.st)(context.me, src_ns.space('workspace'), newWs, context.preferencesFile), (0,external_$rdf_.st)(newWs, src_ns.space('uriPrefix'), newBase, context.preferencesFile)];
23907
+ newData = [(0,external_rdflib_.st)(context.me, src_ns.space('workspace'), newWs, context.preferencesFile), (0,external_rdflib_.st)(newWs, src_ns.space('uriPrefix'), newBase, context.preferencesFile)];
23908
23908
  if (lib/* solidLogicSingleton */.hV.store.updater) {
23909
23909
  _context3.next = 2;
23910
23910
  break;
@@ -24834,7 +24834,7 @@ var AccessGroups = /*#__PURE__*/function () {
24834
24834
  key: "renderAgent",
24835
24835
  value: function renderAgent(groupAgentsTable, combo, pred, obj) {
24836
24836
  var _this4 = this;
24837
- var personRow = personTR(this.controller.dom, ACL(pred), (0,external_$rdf_.sym)(obj), this.controller.isEditable ? {
24837
+ var personRow = personTR(this.controller.dom, ACL(pred), (0,external_rdflib_.sym)(obj), this.controller.isEditable ? {
24838
24838
  deleteFunction: function deleteFunction() {
24839
24839
  return _this4.deleteAgent(combo, pred, obj).then(function () {
24840
24840
  return groupAgentsTable.removeChild(personRow);
@@ -24951,7 +24951,7 @@ var AccessGroups = /*#__PURE__*/function () {
24951
24951
  case 0:
24952
24952
  secondAttempt = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : false;
24953
24953
  agent = findAgent(uri, this.store); // eg 'agent', 'origin', agentClass'
24954
- thing = (0,external_$rdf_.sym)(uri);
24954
+ thing = (0,external_rdflib_.sym)(uri);
24955
24955
  if (!(!agent && !secondAttempt)) {
24956
24956
  _context4.next = 5;
24957
24957
  break;
@@ -25040,7 +25040,7 @@ function ktToList(k) {
25040
25040
  return list;
25041
25041
  }
25042
25042
  function findAgent(uri, kb) {
25043
- var obj = (0,external_$rdf_.sym)(uri);
25043
+ var obj = (0,external_rdflib_.sym)(uri);
25044
25044
  var types = kb.findTypeURIs(obj);
25045
25045
  for (var ty in types) {
25046
25046
  src_debug/* log */.Rm(' drop object type includes: ' + ty);
@@ -25059,7 +25059,7 @@ function findAgent(uri, kb) {
25059
25059
  src_debug/* log */.Rm('Assuming final slash on dragged origin URI was unintended!');
25060
25060
  return {
25061
25061
  pred: 'origin',
25062
- obj: (0,external_$rdf_.sym)(uri.slice(0, -1))
25062
+ obj: (0,external_rdflib_.sym)(uri.slice(0, -1))
25063
25063
  }; // Fix a URI where the drag and drop system has added a spurious slash
25064
25064
  }
25065
25065
  if (src_ns.vcard('WebID').uri in types) return {
@@ -25084,7 +25084,7 @@ function findAgent(uri, kb) {
25084
25084
  var pref = kb.any(obj, src_ns.foaf('preferredURI'));
25085
25085
  if (pref) return {
25086
25086
  pred: 'agent',
25087
- obj: (0,external_$rdf_.sym)(pref)
25087
+ obj: (0,external_rdflib_.sym)(pref)
25088
25088
  };
25089
25089
  return {
25090
25090
  pred: 'agent',
@@ -25444,7 +25444,7 @@ var AccessController = /*#__PURE__*/function () {
25444
25444
  value: function save() {
25445
25445
  var _this7 = this;
25446
25446
  // build graph
25447
- var newAClGraph = (0,external_$rdf_.graph)();
25447
+ var newAClGraph = (0,external_rdflib_.graph)();
25448
25448
  if (!this.isContainer) {
25449
25449
  makeACLGraphbyCombo(newAClGraph, this.targetDoc, this.mainCombo.byCombo, this.targetACLDoc, true);
25450
25450
  } else if (this.defaultsCombo && this.defaultsDiffer) {
@@ -25457,10 +25457,10 @@ var AccessController = /*#__PURE__*/function () {
25457
25457
  }
25458
25458
 
25459
25459
  // add authenticated fetcher
25460
- newAClGraph.fetcher = (0,external_$rdf_.fetcher)(newAClGraph, {
25460
+ newAClGraph.fetcher = (0,external_rdflib_.fetcher)(newAClGraph, {
25461
25461
  fetch: this.store.fetcher._fetch
25462
25462
  });
25463
- var updater = newAClGraph.updater || new external_$rdf_.UpdateManager(newAClGraph);
25463
+ var updater = newAClGraph.updater || new external_rdflib_.UpdateManager(newAClGraph);
25464
25464
 
25465
25465
  // save ACL resource
25466
25466
  return new Promise(function (resolve, reject) {
@@ -26044,7 +26044,7 @@ function matrixForQuery(dom, query, vx, vy, vvalue, options, whenDone) {
26044
26044
  });
26045
26045
  }
26046
26046
  for (var i = 0; i < columns.length; i++) {
26047
- setCell(tr.appendChild(dom.createElement('td')), external_$rdf_.fromNT(columns[i]), y1, null);
26047
+ setCell(tr.appendChild(dom.createElement('td')), external_rdflib_.fromNT(columns[i]), y1, null);
26048
26048
  }
26049
26049
  tr.dataValueNT = y;
26050
26050
  rows[y] = tr;
@@ -26084,7 +26084,7 @@ function matrixForQuery(dom, query, vx, vy, vvalue, options, whenDone) {
26084
26084
  if (row === matrix.firstChild) {
26085
26085
  td.textContent = label_label(x1);
26086
26086
  } else {
26087
- setCell(td, x1, external_$rdf_.fromNT(y), null);
26087
+ setCell(td, x1, external_rdflib_.fromNT(y), null);
26088
26088
  }
26089
26089
  if (col === columns.length - 1) {
26090
26090
  row.appendChild(td);
@@ -26127,8 +26127,8 @@ function matrixForQuery(dom, query, vx, vy, vvalue, options, whenDone) {
26127
26127
  for (var j = 1; j < row.children.length; j++) {
26128
26128
  cell = row.children[j];
26129
26129
  if (cell.old) {
26130
- var y = external_$rdf_.fromNT(row.dataValueNT);
26131
- var x = external_$rdf_.fromNT(columns[j - 1]);
26130
+ var y = external_rdflib_.fromNT(row.dataValueNT);
26131
+ var x = external_rdflib_.fromNT(columns[j - 1]);
26132
26132
  setCell(cell, x, y, null);
26133
26133
  } else {
26134
26134
  rowsUsed[row.dataValueNT] = true;
@@ -26517,16 +26517,16 @@ var PeoplePicker = /*#__PURE__*/function () {
26517
26517
  var _indexes = indexes(book),
26518
26518
  groupIndex = _indexes.groupIndex,
26519
26519
  groupContainer = _indexes.groupContainer;
26520
- var group = external_$rdf_.sym("".concat(groupContainer.uri).concat((0,src_v4/* default */.A)().slice(0, 8), ".ttl#this"));
26520
+ var group = external_rdflib_.sym("".concat(groupContainer.uri).concat((0,src_v4/* default */.A)().slice(0, 8), ".ttl#this"));
26521
26521
  var name = defaultNewGroupName || 'Untitled Group';
26522
26522
 
26523
26523
  // NOTE that order matters here. Unfortunately this type of update is
26524
26524
  // non-atomic in that solid requires us to send two PATCHes, either of which
26525
26525
  // might fail.
26526
26526
  var patchPromises = [group.doc(), groupIndex].map(function (doc) {
26527
- var typeStatement = external_$rdf_.st(group, src_ns.rdf('type'), src_ns.vcard('Group'), doc);
26528
- var nameStatement = external_$rdf_.st(group, src_ns.vcard('fn'), name, group.doc(), doc);
26529
- var includesGroupStatement = external_$rdf_.st(book, src_ns.vcard('includesGroup'), group, doc);
26527
+ var typeStatement = external_rdflib_.st(group, src_ns.rdf('type'), src_ns.vcard('Group'), doc);
26528
+ var nameStatement = external_rdflib_.st(group, src_ns.vcard('fn'), name, group.doc(), doc);
26529
+ var includesGroupStatement = external_rdflib_.st(book, src_ns.vcard('includesGroup'), group, doc);
26530
26530
  var toIns = doc.equals(groupIndex) ? [typeStatement, nameStatement, includesGroupStatement] : [typeStatement, nameStatement];
26531
26531
  return patch(doc.uri, {
26532
26532
  toIns: toIns
@@ -26710,7 +26710,7 @@ var GroupBuilder = /*#__PURE__*/function () {
26710
26710
  }
26711
26711
  // make sure it's a valid person, group, or entity (for now just handle
26712
26712
  // webId)
26713
- var webIdNode = external_$rdf_.namedNode(webId);
26713
+ var webIdNode = external_rdflib_.namedNode(webId);
26714
26714
  var rdfClass = peoplePicker_kb.any(webIdNode, src_ns.rdf('type'));
26715
26715
  if (!rdfClass || !rdfClass.equals(src_ns.foaf('Person'))) {
26716
26716
  return reject(new Error("Only people supported right now. (tried to add something of type ".concat(rdfClass.value, ")")));
@@ -26718,7 +26718,7 @@ var GroupBuilder = /*#__PURE__*/function () {
26718
26718
  return resolve(webIdNode);
26719
26719
  });
26720
26720
  }).then(function (webIdNode) {
26721
- var statement = external_$rdf_.st(_this6.group, src_ns.vcard('hasMember'), webIdNode);
26721
+ var statement = external_rdflib_.st(_this6.group, src_ns.vcard('hasMember'), webIdNode);
26722
26722
  if (peoplePicker_kb.holdsStatement(statement)) {
26723
26723
  return webIdNode;
26724
26724
  }
@@ -26737,7 +26737,7 @@ var GroupBuilder = /*#__PURE__*/function () {
26737
26737
  value: function handleRemove(webIdNode) {
26738
26738
  var _this7 = this;
26739
26739
  return function (_event) {
26740
- var statement = external_$rdf_.st(_this7.group, src_ns.vcard('hasMember'), webIdNode);
26740
+ var statement = external_rdflib_.st(_this7.group, src_ns.vcard('hasMember'), webIdNode);
26741
26741
  return patch(_this7.group.doc().uri, {
26742
26742
  toDel: [statement]
26743
26743
  }).then(function () {
@@ -26760,7 +26760,7 @@ var GroupBuilder = /*#__PURE__*/function () {
26760
26760
  groupIndex = _indexes3.groupIndex;
26761
26761
  var updatePromises = [this.group.doc(), groupIndex].map(function (namedGraph) {
26762
26762
  var oldNameStatements = peoplePicker_kb.match(_this8.group, src_ns.vcard('fn'), null, namedGraph);
26763
- var newNameStatement = external_$rdf_.st(_this8.group, src_ns.vcard('fn'), external_$rdf_.literal(name));
26763
+ var newNameStatement = external_rdflib_.st(_this8.group, src_ns.vcard('fn'), external_rdflib_.literal(name));
26764
26764
  return patch(namedGraph.value, {
26765
26765
  toDel: oldNameStatements,
26766
26766
  toIns: [newNameStatement]
@@ -26920,7 +26920,7 @@ console.log('widgets exported:', widgets)
26920
26920
  var messageArea_UI = {
26921
26921
  icons: iconBase/* icons */.Pt,
26922
26922
  ns: src_ns,
26923
- rdf: external_$rdf_,
26923
+ rdf: external_rdflib_,
26924
26924
  style: style,
26925
26925
  widgets: widgets_namespaceObject
26926
26926
  };
@@ -26928,8 +26928,8 @@ function messageArea(dom, kb, subject, messageStore, options) {
26928
26928
  kb = kb || lib/* solidLogicSingleton */.hV.store;
26929
26929
  messageStore = messageStore.doc(); // No hash
26930
26930
  var ns = messageArea_UI.ns;
26931
- var WF = external_$rdf_.Namespace('http://www.w3.org/2005/01/wf/flow#');
26932
- var DCT = external_$rdf_.Namespace('http://purl.org/dc/terms/');
26931
+ var WF = external_rdflib_.Namespace('http://www.w3.org/2005/01/wf/flow#');
26932
+ var DCT = external_rdflib_.Namespace('http://purl.org/dc/terms/');
26933
26933
  options = options || {};
26934
26934
  var newestFirst = !!options.newestFirst;
26935
26935
  var messageBodyStyle = 'white-space: pre-wrap; width: 90%; font-size:100%; border: 0.07em solid #eee; padding: .2em 0.5em; margin: 0.1em 1em 0.1em 1em;';
@@ -26991,14 +26991,14 @@ function messageArea(dom, kb, subject, messageStore, options) {
26991
26991
  var sts = [];
26992
26992
  var now = new Date();
26993
26993
  var timestamp = '' + now.getTime();
26994
- var dateStamp = external_$rdf_.term(now);
26994
+ var dateStamp = external_rdflib_.term(now);
26995
26995
  // http://www.w3schools.com/jsref/jsref_obj_date.asp
26996
26996
  var message = kb.sym(messageStore.uri + '#' + 'Msg' + timestamp);
26997
- sts.push(new external_$rdf_.Statement(subject, ns.wf('message'), message, messageStore));
26998
- sts.push(new external_$rdf_.Statement(message, ns.sioc('content'), kb.literal(field.value), messageStore));
26999
- sts.push(new external_$rdf_.Statement(message, DCT('created'), dateStamp, messageStore));
26997
+ sts.push(new external_rdflib_.Statement(subject, ns.wf('message'), message, messageStore));
26998
+ sts.push(new external_rdflib_.Statement(message, ns.sioc('content'), kb.literal(field.value), messageStore));
26999
+ sts.push(new external_rdflib_.Statement(message, DCT('created'), dateStamp, messageStore));
27000
27000
  if (me) {
27001
- sts.push(new external_$rdf_.Statement(message, ns.foaf('maker'), me, messageStore));
27001
+ sts.push(new external_rdflib_.Statement(message, ns.foaf('maker'), me, messageStore));
27002
27002
  }
27003
27003
  var sendComplete = function sendComplete(uri, success, body) {
27004
27004
  if (!success) {
@@ -27193,11 +27193,11 @@ function messageArea(dom, kb, subject, messageStore, options) {
27193
27193
  if (options.query) {
27194
27194
  query = options.query;
27195
27195
  } else {
27196
- query = new external_$rdf_.Query('Messages');
27196
+ query = new external_rdflib_.Query('Messages');
27197
27197
  var v = {}; // semicolon needed
27198
27198
  var vs = ['msg', 'date', 'creator', 'content'];
27199
27199
  vs.forEach(function (x) {
27200
- query.vars.push(v[x] = external_$rdf_.variable(x));
27200
+ query.vars.push(v[x] = external_rdflib_.variable(x));
27201
27201
  });
27202
27202
  query.pat.add(subject, WF('message'), v.msg);
27203
27203
  query.pat.add(v.msg, ns.dct('created'), v.date);
@@ -27482,8 +27482,8 @@ var DateFolder = /*#__PURE__*/function () {
27482
27482
  return _earliestSubfolder.apply(this, arguments);
27483
27483
  };
27484
27484
  // backwards -> last leafObject
27485
- folderStore = external_$rdf_.graph();
27486
- folderFetcher = new external_$rdf_.Fetcher(folderStore);
27485
+ folderStore = external_rdflib_.graph();
27486
+ folderFetcher = new external_rdflib_.Fetcher(folderStore);
27487
27487
  _context4.next = 1;
27488
27488
  return earliestSubfolder(this.root.dir());
27489
27489
  case 1:
@@ -27496,7 +27496,7 @@ var DateFolder = /*#__PURE__*/function () {
27496
27496
  return earliestSubfolder(month);
27497
27497
  case 3:
27498
27498
  d = _context4.sent;
27499
- leafDocument = external_$rdf_.sym(d.uri + 'chat.ttl');
27499
+ leafDocument = external_rdflib_.sym(d.uri + 'chat.ttl');
27500
27500
  _context4.next = 4;
27501
27501
  return folderFetcher.load(leafDocument);
27502
27502
  case 4:
@@ -31989,7 +31989,7 @@ function _getPrivateKey() {
31989
31989
  }
31990
31990
  // add = []
31991
31991
  privateKey = generatePrivateKey();
31992
- add = [external_$rdf_.st(webId, src_ns.solid('privateKey'), external_$rdf_.literal(privateKey), lib/* store */.M_.sym(privateKeyDoc))];
31992
+ add = [external_rdflib_.st(webId, src_ns.solid('privateKey'), external_rdflib_.literal(privateKey), lib/* store */.M_.sym(privateKeyDoc))];
31993
31993
  _context3.next = 6;
31994
31994
  return saveKey(privateKeyDoc, [], add, webId.uri);
31995
31995
  case 6:
@@ -32000,12 +32000,12 @@ function _getPrivateKey() {
32000
32000
  del = [];
32001
32001
  // delete invalid public key
32002
32002
  if (publicKey) {
32003
- del = [external_$rdf_.st(webId, src_ns.solid('publicKey'), external_$rdf_.lit(publicKey), lib/* store */.M_.sym(publicKeyDoc))];
32003
+ del = [external_rdflib_.st(webId, src_ns.solid('publicKey'), external_rdflib_.lit(publicKey), lib/* store */.M_.sym(publicKeyDoc))];
32004
32004
  src_debug/* log */.Rm('delete invalid publicKey ' + del);
32005
32005
  }
32006
32006
  // update new valid key
32007
32007
  newPublicKey = generatePublicKey(privateKey);
32008
- add = [external_$rdf_.st(webId, src_ns.solid('publicKey'), external_$rdf_.literal(newPublicKey), lib/* store */.M_.sym(publicKeyDoc))];
32008
+ add = [external_rdflib_.st(webId, src_ns.solid('publicKey'), external_rdflib_.literal(newPublicKey), lib/* store */.M_.sym(publicKeyDoc))];
32009
32009
  _context3.next = 7;
32010
32010
  return saveKey(publicKeyDoc, del, add);
32011
32011
  case 7:
@@ -32201,7 +32201,7 @@ var ChatChannel = /*#__PURE__*/function () {
32201
32201
  sts = [];
32202
32202
  now = new Date();
32203
32203
  timestamp = '' + now.getTime();
32204
- dateStamp = external_$rdf_.term(now);
32204
+ dateStamp = external_rdflib_.term(now);
32205
32205
  chatDocument = oldMsg ? oldMsg.doc() : this.dateFolder.leafDocumentFromDate(now);
32206
32206
  message = lib/* store */.M_.sym(chatDocument.uri + '#' + 'Msg' + timestamp); // const content = store.literal(text)
32207
32207
  me = lib/* authn */.jO.currentUser(); // If already logged on
@@ -32221,15 +32221,15 @@ var ChatChannel = /*#__PURE__*/function () {
32221
32221
  return mostRecentVersion(oldMsg);
32222
32222
  case 1:
32223
32223
  oldMsgMostRecentVersion = _context2.sent;
32224
- sts.push(external_$rdf_.st(oldMsgMostRecentVersion, src_ns.dct('isReplacedBy'), message, chatDocument));
32224
+ sts.push(external_rdflib_.st(oldMsgMostRecentVersion, src_ns.dct('isReplacedBy'), message, chatDocument));
32225
32225
  // if oldMsg has_reply => add has_reply to message
32226
32226
  oldMsgThread = lib/* store */.M_.any(oldMsgMostRecentVersion, src_ns.sioc('has_reply'));
32227
32227
  if (oldMsgThread) {
32228
- sts.push(external_$rdf_.st(message, src_ns.sioc('has_reply'), oldMsgThread, chatDocument));
32228
+ sts.push(external_rdflib_.st(message, src_ns.sioc('has_reply'), oldMsgThread, chatDocument));
32229
32229
  }
32230
32230
  if (deleteIt) {
32231
32231
  // we need to add a specific signature, else anyone can delete a msg ?
32232
- sts.push(external_$rdf_.st(message, src_ns.schema('dateDeleted'), dateStamp, chatDocument));
32232
+ sts.push(external_rdflib_.st(message, src_ns.schema('dateDeleted'), dateStamp, chatDocument));
32233
32233
  }
32234
32234
  _context2.next = 3;
32235
32235
  break;
@@ -32243,17 +32243,17 @@ var ChatChannel = /*#__PURE__*/function () {
32243
32243
  break;
32244
32244
  case 4:
32245
32245
  // link new message to channel
32246
- sts.push(external_$rdf_.st(this.channel, src_ns.wf('message'), message, chatDocument));
32246
+ sts.push(external_rdflib_.st(this.channel, src_ns.wf('message'), message, chatDocument));
32247
32247
  case 5:
32248
- sts.push(external_$rdf_.st(message, src_ns.sioc('content'), lib/* store */.M_.literal(text), chatDocument));
32248
+ sts.push(external_rdflib_.st(message, src_ns.sioc('content'), lib/* store */.M_.literal(text), chatDocument));
32249
32249
  msg.content = text;
32250
- sts.push(external_$rdf_.st(message, src_ns.dct('created'), dateStamp, chatDocument));
32250
+ sts.push(external_rdflib_.st(message, src_ns.dct('created'), dateStamp, chatDocument));
32251
32251
  msg.created = dateStamp.value;
32252
32252
  if (!me) {
32253
32253
  _context2.next = 7;
32254
32254
  break;
32255
32255
  }
32256
- sts.push(external_$rdf_.st(message, src_ns.foaf('maker'), me, chatDocument));
32256
+ sts.push(external_rdflib_.st(message, src_ns.foaf('maker'), me, chatDocument));
32257
32257
  msg.maker = me.uri;
32258
32258
  // privateKey the cached private key of me, cached in store
32259
32259
  _context2.next = 6;
@@ -32262,12 +32262,12 @@ var ChatChannel = /*#__PURE__*/function () {
32262
32262
  privateKey = _context2.sent;
32263
32263
  // me.uri)
32264
32264
  sig = signMsg(msg, privateKey);
32265
- sts.push(external_$rdf_.st(message, external_$rdf_.sym("".concat(SEC, "proofValue")), external_$rdf_.lit(sig), chatDocument));
32265
+ sts.push(external_rdflib_.st(message, external_rdflib_.sym("".concat(SEC, "proofValue")), external_rdflib_.lit(sig), chatDocument));
32266
32266
  case 7:
32267
32267
  if (thread) {
32268
- sts.push(external_$rdf_.st(thread, src_ns.sioc('has_member'), message, chatDocument));
32268
+ sts.push(external_rdflib_.st(thread, src_ns.sioc('has_member'), message, chatDocument));
32269
32269
  if (!thread.doc().sameTerm(message.doc())) {
32270
- sts.push(external_$rdf_.st(thread, src_ns.sioc('has_member'), message, thread.doc()));
32270
+ sts.push(external_rdflib_.st(thread, src_ns.sioc('has_member'), message, thread.doc()));
32271
32271
  }
32272
32272
  }
32273
32273
  _context2.prev = 8;
@@ -32339,8 +32339,8 @@ var ChatChannel = /*#__PURE__*/function () {
32339
32339
  }
32340
32340
  return _context4.abrupt("return", already[0]);
32341
32341
  case 1:
32342
- thread = external_$rdf_.sym(threadRoot.uri + '-thread');
32343
- insert = [external_$rdf_.st(thread, src_ns.rdf('type'), src_ns.sioc('Thread'), thread.doc()), external_$rdf_.st(threadRoot, src_ns.sioc('has_reply'), thread, thread.doc())];
32342
+ thread = external_rdflib_.sym(threadRoot.uri + '-thread');
32343
+ insert = [external_rdflib_.st(thread, src_ns.rdf('type'), src_ns.sioc('Thread'), thread.doc()), external_rdflib_.st(threadRoot, src_ns.sioc('has_reply'), thread, thread.doc())];
32344
32344
  _context4.next = 2;
32345
32345
  return lib/* store */.M_.updater.update([], insert);
32346
32346
  case 2:
@@ -32651,7 +32651,7 @@ function participationObject(subject, padDoc, me) {
32651
32651
  resolve(parps[0]); // returns the participation object
32652
32652
  } else {
32653
32653
  var _participation2 = newThing(padDoc);
32654
- var ins = [(0,external_$rdf_.st)(subject, src_ns.wf('participation'), _participation2, padDoc), (0,external_$rdf_.st)(_participation2, src_ns.wf('participant'), me, padDoc), (0,external_$rdf_.st)(_participation2, src_ns.cal('dtstart'), new Date(), padDoc), (0,external_$rdf_.st)(_participation2, src_ns.ui('backgroundColor'), lightColorHash(me), padDoc)];
32654
+ var ins = [(0,external_rdflib_.st)(subject, src_ns.wf('participation'), _participation2, padDoc), (0,external_rdflib_.st)(_participation2, src_ns.wf('participant'), me, padDoc), (0,external_rdflib_.st)(_participation2, src_ns.cal('dtstart'), new Date(), padDoc), (0,external_rdflib_.st)(_participation2, src_ns.ui('backgroundColor'), lightColorHash(me), padDoc)];
32655
32655
  participation_store.updater.update([], ins, function (uri, ok, errorMessage) {
32656
32656
  if (!ok) {
32657
32657
  reject(new Error('Error recording your participation: ' + errorMessage));
@@ -32690,7 +32690,7 @@ function recordParticipation(subject, padDoc, refreshable) {
32690
32690
  return null;
32691
32691
  }
32692
32692
  var participation = newThing(padDoc);
32693
- var ins = [(0,external_$rdf_.st)(subject, src_ns.wf('participation'), participation, padDoc), (0,external_$rdf_.st)(participation, src_ns.wf('participant'), me, padDoc), (0,external_$rdf_.st)(participation, src_ns.cal('dtstart'), new Date(), padDoc), (0,external_$rdf_.st)(participation, src_ns.ui('backgroundColor'), lightColorHash(me), padDoc)];
32693
+ var ins = [(0,external_rdflib_.st)(subject, src_ns.wf('participation'), participation, padDoc), (0,external_rdflib_.st)(participation, src_ns.wf('participant'), me, padDoc), (0,external_rdflib_.st)(participation, src_ns.cal('dtstart'), new Date(), padDoc), (0,external_rdflib_.st)(participation, src_ns.ui('backgroundColor'), lightColorHash(me), padDoc)];
32694
32694
  participation_store.updater.update([], ins, function (uri, ok, errorMessage) {
32695
32695
  if (!ok) {
32696
32696
  throw new Error('Error recording your participation: ' + errorMessage);
@@ -32749,7 +32749,7 @@ function pad_isNativeReflectConstruct() { try { var t = !Boolean.prototype.value
32749
32749
 
32750
32750
 
32751
32751
  var pad_store = lib/* solidLogicSingleton */.hV.store;
32752
- var PAD = (0,external_$rdf_.Namespace)('http://www.w3.org/ns/pim/pad#');
32752
+ var PAD = (0,external_rdflib_.Namespace)('http://www.w3.org/ns/pim/pad#');
32753
32753
  /**
32754
32754
  * @ignore
32755
32755
  */
@@ -32802,7 +32802,7 @@ function notepad(dom, padDoc, subject, me, options) {
32802
32802
  var kb = pad_store;
32803
32803
  if (me && !me.uri) throw new Error('UI.pad.notepad: Invalid userid');
32804
32804
  var updater = pad_store.updater;
32805
- var PAD = (0,external_$rdf_.Namespace)('http://www.w3.org/ns/pim/pad#');
32805
+ var PAD = (0,external_rdflib_.Namespace)('http://www.w3.org/ns/pim/pad#');
32806
32806
  table.setAttribute('style', style.notepadStyle);
32807
32807
  var upstreamStatus = null;
32808
32808
  var downstreamStatus = null;
@@ -32867,11 +32867,11 @@ function notepad(dom, padDoc, subject, me, options) {
32867
32867
  return;
32868
32868
  }
32869
32869
  var del = kb.statementsMatching(chunk, undefined, undefined, padDoc).concat(kb.statementsMatching(undefined, undefined, chunk, padDoc));
32870
- var ins = [(0,external_$rdf_.st)(prev, PAD('next'), next, padDoc)];
32870
+ var ins = [(0,external_rdflib_.st)(prev, PAD('next'), next, padDoc)];
32871
32871
 
32872
32872
  // @@ TODO what should we do if chunk is not a NamedNode should we
32873
32873
  // assume then it is a string?
32874
- if (chunk instanceof external_$rdf_.NamedNode) {
32874
+ if (chunk instanceof external_rdflib_.NamedNode) {
32875
32875
  var label = chunk.uri.slice(-4);
32876
32876
  (0,src_debug/* log */.Rm)('Deleting line ' + label);
32877
32877
  }
@@ -32919,7 +32919,7 @@ function notepad(dom, padDoc, subject, me, options) {
32919
32919
  var current = del.length ? Number(del[0].object.value) : 0;
32920
32920
  if (current + delta < -3) return; // limit negative indent
32921
32921
  var newIndent = current + delta;
32922
- var ins = (0,external_$rdf_.st)(chunk, PAD('indent'), newIndent, padDoc);
32922
+ var ins = (0,external_rdflib_.st)(chunk, PAD('indent'), newIndent, padDoc);
32923
32923
  if (!updater) {
32924
32924
  throw new Error('no updater');
32925
32925
  }
@@ -33024,10 +33024,10 @@ function notepad(dom, padDoc, subject, me, options) {
33024
33024
  var chunk = part.subject;
33025
33025
  setPartStyle(part, undefined, true);
33026
33026
  var old = kb.any(chunk, src_ns.sioc('content')).value;
33027
- var del = [(0,external_$rdf_.st)(chunk, src_ns.sioc('content'), old, padDoc)];
33027
+ var del = [(0,external_rdflib_.st)(chunk, src_ns.sioc('content'), old, padDoc)];
33028
33028
  var ins;
33029
33029
  if (part.value) {
33030
- ins = [(0,external_$rdf_.st)(chunk, src_ns.sioc('content'), part.value, padDoc)];
33030
+ ins = [(0,external_rdflib_.st)(chunk, src_ns.sioc('content'), part.value, padDoc)];
33031
33031
  }
33032
33032
  var newOne = part.value;
33033
33033
 
@@ -33179,11 +33179,11 @@ function notepad(dom, padDoc, subject, me, options) {
33179
33179
  }
33180
33180
  var chunk = newThing(padDoc);
33181
33181
  var label = chunk.uri.slice(-4);
33182
- var del = [(0,external_$rdf_.st)(prev, PAD('next'), next, padDoc)];
33183
- var ins = [(0,external_$rdf_.st)(prev, PAD('next'), chunk, padDoc), (0,external_$rdf_.st)(chunk, PAD('next'), next, padDoc), (0,external_$rdf_.st)(chunk, src_ns.dc('author'), me, padDoc), (0,external_$rdf_.st)(chunk, src_ns.sioc('content'), '', padDoc)];
33182
+ var del = [(0,external_rdflib_.st)(prev, PAD('next'), next, padDoc)];
33183
+ var ins = [(0,external_rdflib_.st)(prev, PAD('next'), chunk, padDoc), (0,external_rdflib_.st)(chunk, PAD('next'), next, padDoc), (0,external_rdflib_.st)(chunk, src_ns.dc('author'), me, padDoc), (0,external_rdflib_.st)(chunk, src_ns.sioc('content'), '', padDoc)];
33184
33184
  if (indent > 0) {
33185
33185
  // Do not inherit
33186
- ins.push((0,external_$rdf_.st)(chunk, PAD('indent'), indent, padDoc));
33186
+ ins.push((0,external_rdflib_.st)(chunk, PAD('indent'), indent, padDoc));
33187
33187
  }
33188
33188
  (0,src_debug/* log */.Rm)(' Fresh chunk ' + label + ' proposed');
33189
33189
  if (!updater) {
@@ -33388,7 +33388,7 @@ function notepad(dom, padDoc, subject, me, options) {
33388
33388
  } else {
33389
33389
  // Make new pad
33390
33390
  (0,src_debug/* log */.Rm)('No pad exists - making new one.');
33391
- var insertables = [(0,external_$rdf_.st)(subject, src_ns.rdf('type'), PAD('Notepad'), padDoc), (0,external_$rdf_.st)(subject, src_ns.dc('author'), me, padDoc), (0,external_$rdf_.st)(subject, src_ns.dc('created'), new Date(), padDoc), (0,external_$rdf_.st)(subject, PAD('next'), subject, padDoc)];
33391
+ var insertables = [(0,external_rdflib_.st)(subject, src_ns.rdf('type'), PAD('Notepad'), padDoc), (0,external_rdflib_.st)(subject, src_ns.dc('author'), me, padDoc), (0,external_rdflib_.st)(subject, src_ns.dc('created'), new Date(), padDoc), (0,external_rdflib_.st)(subject, PAD('next'), subject, padDoc)];
33392
33392
  if (!updater) {
33393
33393
  throw new Error('no updater');
33394
33394
  }
@@ -33504,7 +33504,7 @@ var bookmarks_UI = {
33504
33504
  ns: src_ns,
33505
33505
  media: media,
33506
33506
  pad: pad_namespaceObject,
33507
- rdf: external_$rdf_,
33507
+ rdf: external_rdflib_,
33508
33508
  style: style,
33509
33509
  utils: utils_namespaceObject,
33510
33510
  widgets: widgets_namespaceObject
@@ -33996,7 +33996,7 @@ function _messageToolbar() {
33996
33996
  case 2:
33997
33997
  // no action
33998
33998
  action = newThing(doc);
33999
- insertMe = [external_$rdf_.st(action, src_ns.schema('agent'), context.me, doc), external_$rdf_.st(action, src_ns.rdf('type'), actionClass, doc), external_$rdf_.st(action, src_ns.schema('target'), target, doc)];
33999
+ insertMe = [external_rdflib_.st(action, src_ns.schema('agent'), context.me, doc), external_rdflib_.st(action, src_ns.rdf('type'), actionClass, doc), external_rdflib_.st(action, src_ns.schema('target'), target, doc)];
34000
34000
  _context4.next = 3;
34001
34001
  return lib/* store */.M_.updater.update([], insertMe);
34002
34002
  case 3:
@@ -35371,7 +35371,7 @@ function _infiniteMessageArea() {
35371
35371
  case 1:
35372
35372
  // Adding a link in the document will ping listeners to add the new block too
35373
35373
  if (!lib/* store */.M_.holds(oldChatDocument, src_ns.rdfs('seeAlso'), newChatDocument, oldChatDocument)) {
35374
- sts = [external_$rdf_.st(oldChatDocument, src_ns.rdfs('seeAlso'), newChatDocument, oldChatDocument)];
35374
+ sts = [external_rdflib_.st(oldChatDocument, src_ns.rdfs('seeAlso'), newChatDocument, oldChatDocument)];
35375
35375
  try {
35376
35376
  lib/* store */.M_.updater.update([], sts);
35377
35377
  } catch (err) {
@@ -36031,8 +36031,8 @@ function recordSharedPreferences(subject, context) {
36031
36031
  src_debug/* log */.Rm(" Cant make shared preferences, may not change ".concat(subject.doc));
36032
36032
  resolve(context);
36033
36033
  }
36034
- var sp = external_$rdf_.sym(subject.doc().uri + '#SharedPreferences');
36035
- var ins = [external_$rdf_.st(subject, src_ns.ui('sharedPreferences'), sp, subject.doc())];
36034
+ var sp = external_rdflib_.sym(subject.doc().uri + '#SharedPreferences');
36035
+ var ins = [external_rdflib_.st(subject, src_ns.ui('sharedPreferences'), sp, subject.doc())];
36036
36036
  src_debug/* log */.Rm('Creating shared preferences ' + sp);
36037
36037
  preferences_kb.updater.update([], ins, function (uri, ok, errorMessage) {
36038
36038
  if (!ok) {
@@ -36078,10 +36078,10 @@ function recordPersonalDefaults(theClass, context) {
36078
36078
  } else {
36079
36079
  // no regs fo class
36080
36080
  reg = newThing(context.preferencesFile);
36081
- ins = [external_$rdf_.st(reg, src_ns.rdf('type'), src_ns.solid('TypeRegistration'), context.preferencesFile), external_$rdf_.st(reg, src_ns.solid('forClass'), theClass, context.preferencesFile)];
36081
+ ins = [external_rdflib_.st(reg, src_ns.rdf('type'), src_ns.solid('TypeRegistration'), context.preferencesFile), external_rdflib_.st(reg, src_ns.solid('forClass'), theClass, context.preferencesFile)];
36082
36082
  }
36083
36083
  prefs = newThing(context.preferencesFile);
36084
- ins.push(external_$rdf_.st(reg, src_ns.solid('personalDefaults'), prefs, context.preferencesFile));
36084
+ ins.push(external_rdflib_.st(reg, src_ns.solid('personalDefaults'), prefs, context.preferencesFile));
36085
36085
  preferences_kb.updater.update([], ins, function (uri, ok, errm) {
36086
36086
  if (!ok) {
36087
36087
  reject(new Error('Setting preferences for ' + theClass + ': ' + errm));
@@ -36424,7 +36424,7 @@ function renderTableViewPane(doc, options) {
36424
36424
  // object.
36425
36425
 
36426
36426
  function generateQuery(type) {
36427
- var query = new external_$rdf_.Query();
36427
+ var query = new external_rdflib_.Query();
36428
36428
  var rowVar = kb.variable(keyVariable.slice(1)); // don't pass '?'
36429
36429
 
36430
36430
  addSelectToQuery(query, type);
@@ -38283,7 +38283,7 @@ var emptyProfile = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" hei
38283
38283
  */
38284
38284
  function getPod() {
38285
38285
  // @@ TODO: This is given that mashlib runs on NSS - might need to change when we want it to run on other Pod servers
38286
- return (0,external_$rdf_.sym)(document.location.origin).site();
38286
+ return (0,external_rdflib_.sym)(document.location.origin).site();
38287
38287
  }
38288
38288
  /**
38289
38289
  */
@@ -38313,7 +38313,7 @@ function _getPodOwner() {
38313
38313
  case 1:
38314
38314
  response = _context.sent;
38315
38315
  containerTurtle = response.responseText;
38316
- (0,external_$rdf_.parse)(containerTurtle, store, pod.uri, 'text/turtle');
38316
+ (0,external_rdflib_.parse)(containerTurtle, store, pod.uri, 'text/turtle');
38317
38317
  case 2:
38318
38318
  _context.next = 4;
38319
38319
  break;
@@ -38355,7 +38355,7 @@ function _getPodOwner() {
38355
38355
  // pod owner not declared in pod
38356
38356
  // @@ TODO: This is given the structure that NSS provides
38357
38357
  // This is a massive guess. For old pods which don't have owner link
38358
- guess = (0,external_$rdf_.sym)("".concat(pod.uri, "profile/card#me"));
38358
+ guess = (0,external_rdflib_.sym)("".concat(pod.uri, "profile/card#me"));
38359
38359
  _context.prev = 11;
38360
38360
  _context.next = 12;
38361
38361
  return store.fetcher.load(guess);
@@ -38979,7 +38979,7 @@ if (typeof window !== 'undefined') {
38979
38979
  authn: lib/* authn */.jO,
38980
38980
  store: lib/* store */.M_,
38981
38981
  ns: src_ns,
38982
- rdf: external_$rdf_,
38982
+ rdf: external_rdflib_,
38983
38983
  acl: acl,
38984
38984
  aclControl: aclControl,
38985
38985
  create: create,