@pod-os/elements 0.41.0-rc.932c90a.0 → 0.41.0-rc.bfc85d6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/cjs/{index-Bc4gZgPG.js → index-BK2Q5l1p.js} +262 -83
  2. package/dist/cjs/{jsonld-V2RB47OZ-JAbnY92y.js → jsonld-V2RB47OZ-CFDz64pR.js} +1 -1
  3. package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +1 -1
  4. package/dist/cjs/pos-add-new-thing_32.cjs.entry.js +1 -1
  5. package/dist/cjs/pos-add-relation.cjs.entry.js +1 -1
  6. package/dist/cjs/pos-container-contents.cjs.entry.js +1 -1
  7. package/dist/cjs/pos-markdown-document.cjs.entry.js +410 -120
  8. package/dist/cjs/pos-subjects.cjs.entry.js +1 -1
  9. package/dist/components/index2.js +1 -1
  10. package/dist/components/pos-markdown-document2.js +1 -1
  11. package/dist/elements/elements.esm.js +1 -1
  12. package/dist/elements/{p-f6da714c.entry.js → p-00f8d4ed.entry.js} +1 -1
  13. package/dist/elements/p-05d22c0b.entry.js +1 -0
  14. package/dist/elements/{p-2ee1efdb.entry.js → p-33dde993.entry.js} +1 -1
  15. package/dist/elements/{p-DuW6UWKz.js → p-C4h87eQU.js} +1 -1
  16. package/dist/elements/p-QvyFA_FG.js +67 -0
  17. package/dist/elements/{p-ed1d9d77.entry.js → p-bf331b7e.entry.js} +1 -1
  18. package/dist/elements/{p-57d32176.entry.js → p-f836f544.entry.js} +1 -1
  19. package/dist/elements/{p-a8628eb4.entry.js → p-fad783a9.entry.js} +1 -1
  20. package/dist/esm/{index-LnGgDqFG.js → index-UpPIXo80.js} +262 -83
  21. package/dist/esm/{jsonld-V2RB47OZ-DFmZ008Y.js → jsonld-V2RB47OZ-D-RJLZDt.js} +1 -1
  22. package/dist/esm/pos-add-literal-value_3.entry.js +1 -1
  23. package/dist/esm/pos-add-new-thing_32.entry.js +1 -1
  24. package/dist/esm/pos-add-relation.entry.js +1 -1
  25. package/dist/esm/pos-container-contents.entry.js +1 -1
  26. package/dist/esm/pos-markdown-document.entry.js +410 -120
  27. package/dist/esm/pos-subjects.entry.js +1 -1
  28. package/dist/jest-setup.js +20 -0
  29. package/package.json +10 -10
  30. package/dist/elements/p-BXBNVUZ5.js +0 -67
  31. package/dist/elements/p-d6e9d178.entry.js +0 -1
@@ -13771,8 +13771,8 @@ function __generator(thisArg, body) {
13771
13771
  var _ = { label: 0, sent: function() {
13772
13772
  if (t[0] & 1) throw t[1];
13773
13773
  return t[1];
13774
- }, trys: [], ops: [] }, f, y, t, g;
13775
- return g = { next: verb2(0), "throw": verb2(1), "return": verb2(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
13774
+ }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13775
+ return g.next = verb2(0), g["throw"] = verb2(1), g["return"] = verb2(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
13776
13776
  return this;
13777
13777
  }), g;
13778
13778
  function verb2(n2) {
@@ -13879,16 +13879,24 @@ function __await(v2) {
13879
13879
  function __asyncGenerator(thisArg, _arguments, generator3) {
13880
13880
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
13881
13881
  var g = generator3.apply(thisArg, _arguments || []), i, q = [];
13882
- return i = {}, verb2("next"), verb2("throw"), verb2("return"), i[Symbol.asyncIterator] = function() {
13882
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb2("next"), verb2("throw"), verb2("return", awaitReturn), i[Symbol.asyncIterator] = function() {
13883
13883
  return this;
13884
13884
  }, i;
13885
- function verb2(n2) {
13886
- if (g[n2]) i[n2] = function(v2) {
13887
- return new Promise(function(a, b) {
13888
- q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
13889
- });
13885
+ function awaitReturn(f) {
13886
+ return function(v2) {
13887
+ return Promise.resolve(v2).then(f, reject);
13890
13888
  };
13891
13889
  }
13890
+ function verb2(n2, f) {
13891
+ if (g[n2]) {
13892
+ i[n2] = function(v2) {
13893
+ return new Promise(function(a, b) {
13894
+ q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
13895
+ });
13896
+ };
13897
+ if (f) i[n2] = f(i[n2]);
13898
+ }
13899
+ }
13892
13900
  function resume(n2, v2) {
13893
13901
  try {
13894
13902
  step4(g[n2](v2));
@@ -22140,7 +22148,7 @@ function listToCollection(kb, obj) {
22140
22148
  }
22141
22149
  async function jsonldParser(str, kb, base2) {
22142
22150
  const baseString = base2 && Object.prototype.hasOwnProperty.call(base2, "termType") ? base2.value : base2;
22143
- const jsonld = await Promise.resolve().then(function () { return require('./jsonld-V2RB47OZ-JAbnY92y.js'); });
22151
+ const jsonld = await Promise.resolve().then(function () { return require('./jsonld-V2RB47OZ-CFDz64pR.js'); });
22144
22152
  const flattened = await jsonld.default.flatten(JSON.parse(str), null, {
22145
22153
  base: baseString
22146
22154
  });
@@ -22188,10 +22196,10 @@ function createStatement(kb, id4, property4, value7, base2) {
22188
22196
  return kb.rdfFactory.quad(id4, predicate4, object8, kb.rdfFactory.namedNode(base2));
22189
22197
  }
22190
22198
 
22191
- // ../node_modules/n3/src/N3Lexer.js
22199
+ // node_modules/n3/src/N3Lexer.js
22192
22200
  var import_buffer = __toESM(require_buffer());
22193
22201
 
22194
- // ../node_modules/n3/src/IRIs.js
22202
+ // node_modules/n3/src/IRIs.js
22195
22203
  var RDF2 = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
22196
22204
  var XSD = "http://www.w3.org/2001/XMLSchema#";
22197
22205
  var SWAP = "http://www.w3.org/2000/10/swap/";
@@ -22208,7 +22216,9 @@ var IRIs_default = {
22208
22216
  nil: `${RDF2}nil`,
22209
22217
  first: `${RDF2}first`,
22210
22218
  rest: `${RDF2}rest`,
22211
- langString: `${RDF2}langString`
22219
+ langString: `${RDF2}langString`,
22220
+ dirLangString: `${RDF2}dirLangString`,
22221
+ reifies: `${RDF2}reifies`
22212
22222
  },
22213
22223
  owl: {
22214
22224
  sameAs: "http://www.w3.org/2002/07/owl#sameAs"
@@ -22223,7 +22233,7 @@ var IRIs_default = {
22223
22233
  }
22224
22234
  };
22225
22235
 
22226
- // ../node_modules/n3/src/N3Lexer.js
22236
+ // node_modules/n3/src/N3Lexer.js
22227
22237
  var { xsd } = IRIs_default;
22228
22238
  var escapeSequence = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g;
22229
22239
  var escapeReplacements = {
@@ -22261,6 +22271,7 @@ var lineModeRegExps = {
22261
22271
  _unescapedIri: true,
22262
22272
  _simpleQuotedString: true,
22263
22273
  _langcode: true,
22274
+ _dircode: true,
22264
22275
  _blank: true,
22265
22276
  _newline: true,
22266
22277
  _comment: true,
@@ -22274,15 +22285,16 @@ var N3Lexer = class {
22274
22285
  this._unescapedIri = /^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/;
22275
22286
  this._simpleQuotedString = /^"([^"\\\r\n]*)"(?=[^"])/;
22276
22287
  this._simpleApostropheString = /^'([^'\\\r\n]*)'(?=[^'])/;
22277
- this._langcode = /^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i;
22288
+ this._langcode = /^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9])/i;
22289
+ this._dircode = /^--(ltr)|(rtl)/;
22278
22290
  this._prefix = /^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/;
22279
22291
  this._prefixed = /^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/;
22280
22292
  this._variable = /^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/;
22281
22293
  this._blank = /^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/;
22282
22294
  this._number = /^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/;
22283
22295
  this._boolean = /^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/;
22284
- this._keyword = /^@[a-z]+(?=[\s#<:])/i;
22285
- this._sparqlKeyword = /^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i;
22296
+ this._atKeyword = /^@[a-z]+(?=[\s#<:])/i;
22297
+ this._keyword = /^(?:PREFIX|BASE|VERSION|GRAPH)(?=[\s#<])/i;
22286
22298
  this._shortPredicates = /^a(?=[\s#()\[\]\{\}"'<>])/;
22287
22299
  this._newline = /^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/;
22288
22300
  this._comment = /#([^\n\r]*)/;
@@ -22356,7 +22368,9 @@ var N3Lexer = class {
22356
22368
  if (value7 === null || illegalIriChars.test(value7))
22357
22369
  return reportSyntaxError(this);
22358
22370
  type5 = "IRI";
22359
- } else if (input2.length > 1 && input2[1] === "<")
22371
+ } else if (input2.length > 2 && input2[1] === "<" && input2[2] === "(")
22372
+ type5 = "<<(", matchLength = 3;
22373
+ else if (!this._lineMode && input2.length > (inputFinished ? 1 : 2) && input2[1] === "<")
22360
22374
  type5 = "<<", matchLength = 2;
22361
22375
  else if (this._n3Mode && input2.length > 1 && input2[1] === "=") {
22362
22376
  matchLength = 2;
@@ -22405,9 +22419,9 @@ var N3Lexer = class {
22405
22419
  type5 = "var", value7 = match[0];
22406
22420
  break;
22407
22421
  case "@":
22408
- if (this._previousMarker === "literal" && (match = this._langcode.exec(input2)))
22422
+ if (this._previousMarker === "literal" && (match = this._langcode.exec(input2)) && match[1] !== "version")
22409
22423
  type5 = "langcode", value7 = match[1];
22410
- else if (match = this._keyword.exec(input2))
22424
+ else if (match = this._atKeyword.exec(input2))
22411
22425
  type5 = match[0];
22412
22426
  break;
22413
22427
  case ".":
@@ -22429,6 +22443,11 @@ var N3Lexer = class {
22429
22443
  case "9":
22430
22444
  case "+":
22431
22445
  case "-":
22446
+ if (input2[1] === "-") {
22447
+ if (this._previousMarker === "langcode" && (match = this._dircode.exec(input2)))
22448
+ type5 = "dircode", matchLength = 2, value7 = match[1] || match[2], matchLength = value7.length + 2;
22449
+ break;
22450
+ }
22432
22451
  if (match = this._number.exec(input2) || inputFinished && (match = this._number.exec(`${input2} `))) {
22433
22452
  type5 = "literal", value7 = match[0];
22434
22453
  prefix3 = typeof match[1] === "string" ? xsd.double : typeof match[2] === "string" ? xsd.decimal : xsd.integer;
@@ -22440,7 +22459,9 @@ var N3Lexer = class {
22440
22459
  case "P":
22441
22460
  case "G":
22442
22461
  case "g":
22443
- if (match = this._sparqlKeyword.exec(input2))
22462
+ case "V":
22463
+ case "v":
22464
+ if (match = this._keyword.exec(input2))
22444
22465
  type5 = match[0].toUpperCase();
22445
22466
  else
22446
22467
  inconclusive = true;
@@ -22470,13 +22491,21 @@ var N3Lexer = class {
22470
22491
  case "!":
22471
22492
  if (!this._n3Mode)
22472
22493
  break;
22494
+ case ")":
22495
+ if (!inputFinished && (input2.length === 1 || input2.length === 2 && input2[1] === ">")) {
22496
+ break;
22497
+ }
22498
+ if (input2.length > 2 && input2[1] === ">" && input2[2] === ">") {
22499
+ type5 = ")>>", matchLength = 3;
22500
+ break;
22501
+ }
22473
22502
  case ",":
22474
22503
  case ";":
22475
22504
  case "[":
22476
22505
  case "]":
22477
22506
  case "(":
22478
- case ")":
22479
22507
  case "}":
22508
+ case "~":
22480
22509
  if (!this._lineMode) {
22481
22510
  matchLength = 1;
22482
22511
  type5 = firstChar;
@@ -22641,7 +22670,7 @@ var N3Lexer = class {
22641
22670
  }
22642
22671
  };
22643
22672
 
22644
- // ../node_modules/n3/src/N3DataFactory.js
22673
+ // node_modules/n3/src/N3DataFactory.js
22645
22674
  var { rdf: rdf2, xsd: xsd2 } = IRIs_default;
22646
22675
  var DEFAULTGRAPH;
22647
22676
  var _blankNodeCounter = 0;
@@ -22703,7 +22732,15 @@ var Literal2 = class _Literal extends Term {
22703
22732
  get language() {
22704
22733
  const id4 = this.id;
22705
22734
  let atPos = id4.lastIndexOf('"') + 1;
22706
- return atPos < id4.length && id4[atPos++] === "@" ? id4.substr(atPos).toLowerCase() : "";
22735
+ const dirPos = id4.lastIndexOf("--");
22736
+ return atPos < id4.length && id4[atPos++] === "@" ? (dirPos > atPos ? id4.substr(0, dirPos) : id4).substr(atPos).toLowerCase() : "";
22737
+ }
22738
+ // ### The direction of this literal
22739
+ get direction() {
22740
+ const id4 = this.id;
22741
+ const endPos = id4.lastIndexOf('"');
22742
+ const dirPos = id4.lastIndexOf("--");
22743
+ return dirPos > endPos && dirPos + 2 < id4.length ? id4.substr(dirPos + 2).toLowerCase() : "";
22707
22744
  }
22708
22745
  // ### The datatype IRI of this literal
22709
22746
  get datatype() {
@@ -22714,21 +22751,22 @@ var Literal2 = class _Literal extends Term {
22714
22751
  const id4 = this.id, dtPos = id4.lastIndexOf('"') + 1;
22715
22752
  const char = dtPos < id4.length ? id4[dtPos] : "";
22716
22753
  return char === "^" ? id4.substr(dtPos + 2) : (
22717
- // If "@" follows, return rdf:langString; xsd:string otherwise
22718
- char !== "@" ? xsd2.string : rdf2.langString
22754
+ // If "@" follows, return rdf:langString or rdf:dirLangString; xsd:string otherwise
22755
+ char !== "@" ? xsd2.string : id4.indexOf("--", dtPos) > 0 ? rdf2.dirLangString : rdf2.langString
22719
22756
  );
22720
22757
  }
22721
22758
  // ### Returns whether this object represents the same term as the other
22722
22759
  equals(other2) {
22723
22760
  if (other2 instanceof _Literal)
22724
22761
  return this.id === other2.id;
22725
- return !!other2 && !!other2.datatype && this.termType === other2.termType && this.value === other2.value && this.language === other2.language && this.datatype.value === other2.datatype.value;
22762
+ return !!other2 && !!other2.datatype && this.termType === other2.termType && this.value === other2.value && this.language === other2.language && (this.direction === other2.direction || this.direction === "" && !other2.direction) && this.datatype.value === other2.datatype.value;
22726
22763
  }
22727
22764
  toJSON() {
22728
22765
  return {
22729
22766
  termType: this.termType,
22730
22767
  value: this.value,
22731
22768
  language: this.language,
22769
+ direction: this.direction,
22732
22770
  datatype: { termType: "NamedNode", value: this.datatypeString }
22733
22771
  };
22734
22772
  }
@@ -22822,6 +22860,9 @@ function blankNode(name9) {
22822
22860
  function literal(value7, languageOrDataType) {
22823
22861
  if (typeof languageOrDataType === "string")
22824
22862
  return new Literal2(`"${value7}"@${languageOrDataType.toLowerCase()}`);
22863
+ if (languageOrDataType !== void 0 && !("termType" in languageOrDataType)) {
22864
+ return new Literal2(`"${value7}"@${languageOrDataType.language.toLowerCase()}${languageOrDataType.direction ? `--${languageOrDataType.direction.toLowerCase()}` : ""}`);
22865
+ }
22825
22866
  let datatype3 = languageOrDataType ? languageOrDataType.value : "";
22826
22867
  if (datatype3 === "") {
22827
22868
  if (typeof value7 === "boolean")
@@ -22875,9 +22916,9 @@ function fromQuad(inQuad) {
22875
22916
  return quad(fromTerm(inQuad.subject), fromTerm(inQuad.predicate), fromTerm(inQuad.object), fromTerm(inQuad.graph));
22876
22917
  }
22877
22918
 
22878
- // ../node_modules/n3/src/N3Parser.js
22919
+ // node_modules/n3/src/N3Parser.js
22879
22920
  var blankNodePrefix = 0;
22880
- var N3Parser = class {
22921
+ var N3Parser = class _N3Parser {
22881
22922
  constructor(options) {
22882
22923
  this._contextStack = [];
22883
22924
  this._graph = null;
@@ -22889,7 +22930,6 @@ var N3Parser = class {
22889
22930
  this._readPredicateOrNamedGraph = this._readPredicate;
22890
22931
  this._supportsQuads = !(isTurtle || isTriG || isNTriples || isN3);
22891
22932
  this._isImpliedBy = options.isImpliedBy;
22892
- this._supportsRDFStar = format4 === "" || /star|\*$/.test(format4);
22893
22933
  if (isLineMode)
22894
22934
  this._resolveRelativeIRI = (iri) => {
22895
22935
  return null;
@@ -22897,6 +22937,8 @@ var N3Parser = class {
22897
22937
  this._blankNodePrefix = typeof options.blankNodePrefix !== "string" ? "" : options.blankNodePrefix.replace(/^(?!_:)/, "_:");
22898
22938
  this._lexer = options.lexer || new N3Lexer({ lineMode: isLineMode, n3: isN3, isImpliedBy: this._isImpliedBy });
22899
22939
  this._explicitQuantifiers = !!options.explicitQuantifiers;
22940
+ this._parseUnsupportedVersions = !!options.parseUnsupportedVersions;
22941
+ this._version = options.version;
22900
22942
  }
22901
22943
  // ## Static class methods
22902
22944
  // ### `_resetBlankNodePrefix` restarts blank node prefix identification
@@ -22956,6 +22998,12 @@ var N3Parser = class {
22956
22998
  this._quantified = context4.quantified;
22957
22999
  }
22958
23000
  }
23001
+ // ### `_readBeforeTopContext` is called once only at the start of parsing.
23002
+ _readBeforeTopContext(token2) {
23003
+ if (this._version && !this._isValidVersion(this._version))
23004
+ return this._error(`Detected unsupported version as media type parameter: "${this._version}"`, token2);
23005
+ return this._readInTopContext(token2);
23006
+ }
22959
23007
  // ### `_readInTopContext` reads a token when in the top context
22960
23008
  _readInTopContext(token2) {
22961
23009
  switch (token2.type) {
@@ -22975,6 +23023,11 @@ var N3Parser = class {
22975
23023
  this._sparqlStyle = true;
22976
23024
  case "@base":
22977
23025
  return this._readBaseIRI;
23026
+ // It could be a version declaration
23027
+ case "VERSION":
23028
+ this._sparqlStyle = true;
23029
+ case "@version":
23030
+ return this._readVersion;
22978
23031
  // It could be a graph
22979
23032
  case "{":
22980
23033
  if (this._supportsNamedGraphs) {
@@ -23040,6 +23093,10 @@ var N3Parser = class {
23040
23093
  );
23041
23094
  return this._readBlankNodeHead;
23042
23095
  case "(":
23096
+ const stack = this._contextStack, parent4 = stack.length && stack[stack.length - 1];
23097
+ if (parent4.type === "<<") {
23098
+ return this._error("Unexpected list in reified triple", token2);
23099
+ }
23043
23100
  this._saveContext("list", this._graph, this.RDF_NIL, null, null);
23044
23101
  this._subject = null;
23045
23102
  return this._readListItem;
@@ -23079,9 +23136,13 @@ var N3Parser = class {
23079
23136
  } else
23080
23137
  this._subject = this._factory.literal(token2.value, this._factory.namedNode(token2.prefix));
23081
23138
  break;
23139
+ case "<<(":
23140
+ if (!this._n3Mode)
23141
+ return this._error("Disallowed triple term as subject", token2);
23142
+ this._saveContext("<<(", this._graph, null, null, null);
23143
+ this._graph = null;
23144
+ return this._readSubject;
23082
23145
  case "<<":
23083
- if (!this._supportsRDFStar)
23084
- return this._error("Unexpected RDF-star syntax", token2);
23085
23146
  this._saveContext("<<", this._graph, null, null, null);
23086
23147
  this._graph = null;
23087
23148
  return this._readSubject;
@@ -23105,6 +23166,7 @@ var N3Parser = class {
23105
23166
  case ".":
23106
23167
  case "]":
23107
23168
  case "}":
23169
+ case "|}":
23108
23170
  if (this._predicate === null)
23109
23171
  return this._error(`Unexpected ${type5}`, token2);
23110
23172
  this._subject = null;
@@ -23129,6 +23191,7 @@ var N3Parser = class {
23129
23191
  if ((this._predicate = this._readEntity(token2)) === void 0)
23130
23192
  return;
23131
23193
  }
23194
+ this._validAnnotation = true;
23132
23195
  return this._readObject;
23133
23196
  }
23134
23197
  // ### `_readObject` reads a quad's object
@@ -23151,6 +23214,10 @@ var N3Parser = class {
23151
23214
  );
23152
23215
  return this._readBlankNodeHead;
23153
23216
  case "(":
23217
+ const stack = this._contextStack, parent4 = stack.length && stack[stack.length - 1];
23218
+ if (parent4.type === "<<") {
23219
+ return this._error("Unexpected list in reified triple", token2);
23220
+ }
23154
23221
  this._saveContext("list", this._graph, this._subject, this._predicate, this.RDF_NIL);
23155
23222
  this._subject = null;
23156
23223
  return this._readListItem;
@@ -23165,9 +23232,11 @@ var N3Parser = class {
23165
23232
  this._graph = this._factory.blankNode()
23166
23233
  );
23167
23234
  return this._readSubject;
23235
+ case "<<(":
23236
+ this._saveContext("<<(", this._graph, this._subject, this._predicate, null);
23237
+ this._graph = null;
23238
+ return this._readSubject;
23168
23239
  case "<<":
23169
- if (!this._supportsRDFStar)
23170
- return this._error("Unexpected RDF-star syntax", token2);
23171
23240
  this._saveContext("<<", this._graph, this._subject, this._predicate, null);
23172
23241
  this._graph = null;
23173
23242
  return this._readSubject;
@@ -23196,6 +23265,10 @@ var N3Parser = class {
23196
23265
  this._subject = null;
23197
23266
  return this._readBlankNodeTail(token2);
23198
23267
  } else {
23268
+ const stack = this._contextStack, parentParent = stack.length > 1 && stack[stack.length - 2];
23269
+ if (parentParent.type === "<<") {
23270
+ return this._error("Unexpected compound blank node expression in reified triple", token2);
23271
+ }
23199
23272
  this._predicate = null;
23200
23273
  return this._readPredicate(token2);
23201
23274
  }
@@ -23286,12 +23359,19 @@ var N3Parser = class {
23286
23359
  this._graph = this._factory.blankNode()
23287
23360
  );
23288
23361
  return this._readSubject;
23362
+ case "<<":
23363
+ this._saveContext("<<", this._graph, null, null, null);
23364
+ this._graph = null;
23365
+ next4 = this._readSubject;
23366
+ break;
23289
23367
  default:
23290
23368
  if ((item4 = this._readEntity(token2)) === void 0)
23291
23369
  return;
23292
23370
  }
23293
23371
  if (list === null)
23294
23372
  this._subject = list = this._factory.blankNode();
23373
+ if (token2.type === "<<")
23374
+ stack[stack.length - 1].subject = this._subject;
23295
23375
  if (previousList === null) {
23296
23376
  if (parent4.predicate === null)
23297
23377
  parent4.subject = list;
@@ -23319,43 +23399,73 @@ var N3Parser = class {
23319
23399
  return this._completeObjectLiteral(token2, true);
23320
23400
  }
23321
23401
  // ### `_completeLiteral` completes a literal with an optional datatype or language
23322
- _completeLiteral(token2) {
23402
+ _completeLiteral(token2, component2) {
23323
23403
  let literal4 = this._factory.literal(this._literalValue);
23404
+ let readCb;
23324
23405
  switch (token2.type) {
23325
23406
  // Create a datatyped literal
23326
23407
  case "type":
23327
23408
  case "typeIRI":
23328
23409
  const datatype3 = this._readEntity(token2);
23329
23410
  if (datatype3 === void 0) return;
23411
+ if (datatype3.value === IRIs_default.rdf.langString || datatype3.value === IRIs_default.rdf.dirLangString) {
23412
+ return this._error("Detected illegal (directional) languaged-tagged string with explicit datatype", token2);
23413
+ }
23330
23414
  literal4 = this._factory.literal(this._literalValue, datatype3);
23331
23415
  token2 = null;
23332
23416
  break;
23333
23417
  // Create a language-tagged string
23334
23418
  case "langcode":
23419
+ if (token2.value.split("-").some((t) => t.length > 8))
23420
+ return this._error("Detected language tag with subtag longer than 8 characters", token2);
23335
23421
  literal4 = this._factory.literal(this._literalValue, token2.value);
23422
+ this._literalLanguage = token2.value;
23336
23423
  token2 = null;
23424
+ readCb = this._readDirCode.bind(this, component2);
23337
23425
  break;
23338
23426
  }
23339
- return { token: token2, literal: literal4 };
23427
+ return { token: token2, literal: literal4, readCb };
23428
+ }
23429
+ _readDirCode(component2, listItem, token2) {
23430
+ if (token2.type === "dircode") {
23431
+ const term3 = this._factory.literal(this._literalValue, { language: this._literalLanguage, direction: token2.value });
23432
+ if (component2 === "subject")
23433
+ this._subject = term3;
23434
+ else
23435
+ this._object = term3;
23436
+ this._literalLanguage = void 0;
23437
+ token2 = null;
23438
+ }
23439
+ if (component2 === "subject")
23440
+ return token2 === null ? this._readPredicateOrNamedGraph : this._readPredicateOrNamedGraph(token2);
23441
+ return this._completeObjectLiteralPost(token2, listItem);
23340
23442
  }
23341
23443
  // Completes a literal in subject position
23342
23444
  _completeSubjectLiteral(token2) {
23343
- this._subject = this._completeLiteral(token2).literal;
23445
+ const completed2 = this._completeLiteral(token2, "subject");
23446
+ this._subject = completed2.literal;
23447
+ if (completed2.readCb)
23448
+ return completed2.readCb.bind(this, false);
23344
23449
  return this._readPredicateOrNamedGraph;
23345
23450
  }
23346
23451
  // Completes a literal in object position
23347
23452
  _completeObjectLiteral(token2, listItem) {
23348
- const completed2 = this._completeLiteral(token2);
23453
+ const completed2 = this._completeLiteral(token2, "object");
23349
23454
  if (!completed2)
23350
23455
  return;
23351
23456
  this._object = completed2.literal;
23457
+ if (completed2.readCb)
23458
+ return completed2.readCb.bind(this, listItem);
23459
+ return this._completeObjectLiteralPost(completed2.token, listItem);
23460
+ }
23461
+ _completeObjectLiteralPost(token2, listItem) {
23352
23462
  if (listItem)
23353
23463
  this._emit(this._subject, this.RDF_FIRST, this._object, this._graph);
23354
- if (completed2.token === null)
23464
+ if (token2 === null)
23355
23465
  return this._getContextEndReader();
23356
23466
  else {
23357
23467
  this._readCallback = this._getContextEndReader();
23358
- return this._readCallback(completed2.token);
23468
+ return this._readCallback(token2);
23359
23469
  }
23360
23470
  }
23361
23471
  // ### `_readFormulaTail` reads the end of a formula
@@ -23369,7 +23479,7 @@ var N3Parser = class {
23369
23479
  }
23370
23480
  // ### `_readPunctuation` reads punctuation between quads or quad parts
23371
23481
  _readPunctuation(token2) {
23372
- let next4, graph3 = this._graph;
23482
+ let next4, graph3 = this._graph, startingAnnotation = false;
23373
23483
  const subject8 = this._subject, inversePredicate = this._inversePredicate;
23374
23484
  switch (token2.type) {
23375
23485
  // A closing brace ends a graph
@@ -23382,6 +23492,7 @@ var N3Parser = class {
23382
23492
  // A dot just ends the statement, without sharing anything with the next
23383
23493
  case ".":
23384
23494
  this._subject = null;
23495
+ this._tripleTerm = null;
23385
23496
  next4 = this._contextStack.length ? this._readSubject : this._readInTopContext;
23386
23497
  if (inversePredicate) this._inversePredicate = false;
23387
23498
  break;
@@ -23393,19 +23504,26 @@ var N3Parser = class {
23393
23504
  case ",":
23394
23505
  next4 = this._readObject;
23395
23506
  break;
23507
+ // ~ is allowed in the annotation syntax
23508
+ case "~":
23509
+ next4 = this._readReifierInAnnotation;
23510
+ startingAnnotation = true;
23511
+ break;
23396
23512
  // {| means that the current triple is annotated with predicate-object pairs.
23397
23513
  case "{|":
23398
- if (!this._supportsRDFStar)
23399
- return this._error("Unexpected RDF-star syntax", token2);
23400
- const predicate4 = this._predicate, object8 = this._object;
23401
- this._subject = this._factory.quad(subject8, predicate4, object8, this.DEFAULTGRAPH);
23514
+ this._subject = this._readTripleTerm();
23515
+ this._validAnnotation = false;
23516
+ startingAnnotation = true;
23402
23517
  next4 = this._readPredicate;
23403
23518
  break;
23404
- // |} means that the current quoted triple in annotation syntax is finalized.
23519
+ // |} means that the current reified triple in annotation syntax is finalized.
23405
23520
  case "|}":
23406
- if (this._subject.termType !== "Quad")
23407
- return this._error("Unexpected asserted triple closing", token2);
23521
+ if (!this._annotation)
23522
+ return this._error("Unexpected annotation syntax closing", token2);
23523
+ if (!this._validAnnotation)
23524
+ return this._error("Annotation block can not be empty", token2);
23408
23525
  this._subject = null;
23526
+ this._annotation = false;
23409
23527
  next4 = this._readPunctuation;
23410
23528
  break;
23411
23529
  default:
@@ -23415,13 +23533,16 @@ var N3Parser = class {
23415
23533
  }
23416
23534
  return this._error(`Expected punctuation to follow "${this._object.id}"`, token2);
23417
23535
  }
23418
- if (subject8 !== null) {
23536
+ if (subject8 !== null && (!startingAnnotation || startingAnnotation && !this._annotation)) {
23419
23537
  const predicate4 = this._predicate, object8 = this._object;
23420
23538
  if (!inversePredicate)
23421
23539
  this._emit(subject8, predicate4, object8, graph3);
23422
23540
  else
23423
23541
  this._emit(object8, predicate4, subject8, graph3);
23424
23542
  }
23543
+ if (startingAnnotation) {
23544
+ this._annotation = true;
23545
+ }
23425
23546
  return next4;
23426
23547
  }
23427
23548
  // ### `_readBlankNodePunctuation` reads punctuation in a blank node
@@ -23472,6 +23593,21 @@ var N3Parser = class {
23472
23593
  this._setBase(iri);
23473
23594
  return this._readDeclarationPunctuation;
23474
23595
  }
23596
+ // ### `_isValidVersion` checks if the given version is valid for this parser to handle.
23597
+ _isValidVersion(version6) {
23598
+ return this._parseUnsupportedVersions || _N3Parser.SUPPORTED_VERSIONS.includes(version6);
23599
+ }
23600
+ // ### `_readVersion` reads version string declaration
23601
+ _readVersion(token2) {
23602
+ if (token2.type !== "literal")
23603
+ return this._error("Expected literal to follow version declaration", token2);
23604
+ if (token2.end - token2.start !== token2.value.length + 2)
23605
+ return this._error("Version declarations must use single quotes", token2);
23606
+ this._versionCallback(token2.value);
23607
+ if (!this._isValidVersion(token2.value))
23608
+ return this._error(`Detected unsupported version: "${token2.value}"`, token2);
23609
+ return this._readDeclarationPunctuation;
23610
+ }
23475
23611
  // ### `_readNamedGraphLabel` reads the label of a named graph
23476
23612
  _readNamedGraphLabel(token2) {
23477
23613
  switch (token2.type) {
@@ -23598,26 +23734,17 @@ var N3Parser = class {
23598
23734
  this._emit(subject8, predicate4, object8, this._graph);
23599
23735
  return this._readPath;
23600
23736
  }
23601
- // ### `_readRDFStarTailOrGraph` reads the graph of a nested RDF-star quad or the end of a nested RDF-star triple
23602
- _readRDFStarTailOrGraph(token2) {
23603
- if (token2.type !== ">>") {
23604
- if (this._supportsQuads && this._graph === null && (this._graph = this._readEntity(token2)) !== void 0)
23605
- return this._readRDFStarTail;
23606
- return this._error(`Expected >> to follow "${this._object.id}"`, token2);
23607
- }
23608
- return this._readRDFStarTail(token2);
23609
- }
23610
- // ### `_readRDFStarTail` reads the end of a nested RDF-star triple
23611
- _readRDFStarTail(token2) {
23612
- if (token2.type !== ">>")
23613
- return this._error(`Expected >> but got ${token2.type}`, token2);
23737
+ // ### `_readTripleTermTail` reads the end of a triple term
23738
+ _readTripleTermTail(token2) {
23739
+ if (token2.type !== ")>>")
23740
+ return this._error(`Expected )>> but got ${token2.type}`, token2);
23614
23741
  const quad3 = this._factory.quad(
23615
23742
  this._subject,
23616
23743
  this._predicate,
23617
23744
  this._object,
23618
23745
  this._graph || this.DEFAULTGRAPH
23619
23746
  );
23620
- this._restoreContext("<<", token2);
23747
+ this._restoreContext("<<(", token2);
23621
23748
  if (this._subject === null) {
23622
23749
  this._subject = quad3;
23623
23750
  return this._readPredicate;
@@ -23626,6 +23753,63 @@ var N3Parser = class {
23626
23753
  return this._getContextEndReader();
23627
23754
  }
23628
23755
  }
23756
+ // ### `_readReifiedTripleTailOrReifier` reads a reifier or the end of a nested reified triple
23757
+ _readReifiedTripleTailOrReifier(token2) {
23758
+ if (token2.type === "~") {
23759
+ return this._readReifier;
23760
+ }
23761
+ return this._readReifiedTripleTail(token2);
23762
+ }
23763
+ // ### `_readReifiedTripleTail` reads the end of a nested reified triple
23764
+ _readReifiedTripleTail(token2) {
23765
+ if (token2.type !== ">>")
23766
+ return this._error(`Expected >> but got ${token2.type}`, token2);
23767
+ this._tripleTerm = null;
23768
+ const reifier = this._readTripleTerm();
23769
+ this._restoreContext("<<", token2);
23770
+ const stack = this._contextStack, parent4 = stack.length && stack[stack.length - 1];
23771
+ if (parent4 && parent4.type === "list") {
23772
+ this._emit(this._subject, this.RDF_FIRST, reifier, this._graph);
23773
+ return this._getContextEndReader();
23774
+ } else if (this._subject === null) {
23775
+ this._subject = reifier;
23776
+ return this._readPredicateOrReifierTripleEnd;
23777
+ } else {
23778
+ this._object = reifier;
23779
+ return this._getContextEndReader();
23780
+ }
23781
+ }
23782
+ _readPredicateOrReifierTripleEnd(token2) {
23783
+ if (token2.type === ".") {
23784
+ this._subject = null;
23785
+ return this._readPunctuation(token2);
23786
+ }
23787
+ return this._readPredicate(token2);
23788
+ }
23789
+ // ### `_readReifier` reads the triple term identifier after a tilde when in a reifying triple.
23790
+ _readReifier(token2) {
23791
+ this._reifier = this._readEntity(token2);
23792
+ return this._readReifiedTripleTail;
23793
+ }
23794
+ // ### `_readReifier` reads the optional triple term identifier after a tilde when in annotation syntax.
23795
+ _readReifierInAnnotation(token2) {
23796
+ if (token2.type === "IRI" || token2.type === "typeIRI" || token2.type === "type" || token2.type === "prefixed" || token2.type === "blank" || token2.type === "var") {
23797
+ this._reifier = this._readEntity(token2);
23798
+ return this._readPunctuation;
23799
+ }
23800
+ this._readTripleTerm();
23801
+ this._subject = null;
23802
+ return this._readPunctuation(token2);
23803
+ }
23804
+ _readTripleTerm() {
23805
+ const stack = this._contextStack, parent4 = stack.length && stack[stack.length - 1];
23806
+ const parentGraph = parent4 ? parent4.graph : void 0;
23807
+ const reifier = this._reifier || this._factory.blankNode();
23808
+ this._reifier = null;
23809
+ this._tripleTerm = this._tripleTerm || this._factory.quad(this._subject, this._predicate, this._object);
23810
+ this._emit(reifier, this.RDF_REIFIES, this._tripleTerm, parentGraph || this.DEFAULTGRAPH);
23811
+ return reifier;
23812
+ }
23629
23813
  // ### `_getContextEndReader` gets the next reader function at the end of a context
23630
23814
  _getContextEndReader() {
23631
23815
  const contextStack = this._contextStack;
@@ -23638,8 +23822,10 @@ var N3Parser = class {
23638
23822
  return this._readListItem;
23639
23823
  case "formula":
23640
23824
  return this._readFormulaTail;
23825
+ case "<<(":
23826
+ return this._readTripleTermTail;
23641
23827
  case "<<":
23642
- return this._readRDFStarTailOrGraph;
23828
+ return this._readReifiedTripleTailOrReifier;
23643
23829
  }
23644
23830
  }
23645
23831
  // ### `_emit` sends a quad through the callback
@@ -23737,21 +23923,24 @@ var N3Parser = class {
23737
23923
  }
23738
23924
  // ## Public methods
23739
23925
  // ### `parse` parses the N3 input and emits each parsed quad through the onQuad callback.
23740
- parse(input2, quadCallback, prefixCallback) {
23741
- let onQuad, onPrefix, onComment;
23742
- if (quadCallback && (quadCallback.onQuad || quadCallback.onPrefix || quadCallback.onComment)) {
23926
+ parse(input2, quadCallback, prefixCallback, versionCallback) {
23927
+ let onQuad, onPrefix, onComment, onVersion;
23928
+ if (quadCallback && (quadCallback.onQuad || quadCallback.onPrefix || quadCallback.onComment || quadCallback.onVersion)) {
23743
23929
  onQuad = quadCallback.onQuad;
23744
23930
  onPrefix = quadCallback.onPrefix;
23745
23931
  onComment = quadCallback.onComment;
23932
+ onVersion = quadCallback.onVersion;
23746
23933
  } else {
23747
23934
  onQuad = quadCallback;
23748
23935
  onPrefix = prefixCallback;
23936
+ onVersion = versionCallback;
23749
23937
  }
23750
- this._readCallback = this._readInTopContext;
23938
+ this._readCallback = this._readBeforeTopContext;
23751
23939
  this._sparqlStyle = false;
23752
23940
  this._prefixes = /* @__PURE__ */ Object.create(null);
23753
23941
  this._prefixes._ = this._blankNodePrefix ? this._blankNodePrefix.substr(2) : `b${blankNodePrefix++}_`;
23754
23942
  this._prefixCallback = onPrefix || noop2;
23943
+ this._versionCallback = onVersion || noop2;
23755
23944
  this._inversePredicate = false;
23756
23945
  this._quantified = /* @__PURE__ */ Object.create(null);
23757
23946
  if (!onQuad) {
@@ -23797,6 +23986,7 @@ function initDataFactory(parser, factory) {
23797
23986
  parser.RDF_FIRST = factory.namedNode(IRIs_default.rdf.first);
23798
23987
  parser.RDF_REST = factory.namedNode(IRIs_default.rdf.rest);
23799
23988
  parser.RDF_NIL = factory.namedNode(IRIs_default.rdf.nil);
23989
+ parser.RDF_REIFIES = factory.namedNode(IRIs_default.rdf.reifies);
23800
23990
  parser.N3_FORALL = factory.namedNode(IRIs_default.r.forAll);
23801
23991
  parser.N3_FORSOME = factory.namedNode(IRIs_default.r.forSome);
23802
23992
  parser.ABBREVIATIONS = {
@@ -23807,6 +23997,11 @@ function initDataFactory(parser, factory) {
23807
23997
  };
23808
23998
  parser.QUANTIFIERS_GRAPH = factory.namedNode("urn:n3:quantifiers");
23809
23999
  }
24000
+ N3Parser.SUPPORTED_VERSIONS = [
24001
+ "1.2",
24002
+ "1.2-basic",
24003
+ "1.1"
24004
+ ];
23810
24005
  initDataFactory(N3Parser.prototype, N3DataFactory_default);
23811
24006
 
23812
24007
  // node_modules/rdflib/esm/rdfaparser.js
@@ -27941,9 +28136,6 @@ var Thing = class {
27941
28136
  var LdpContainer = class extends Thing {
27942
28137
  constructor(uri6, store, editable = false) {
27943
28138
  super(uri6, store, editable);
27944
- this.uri = uri6;
27945
- this.store = store;
27946
- this.editable = editable;
27947
28139
  }
27948
28140
  /**
27949
28141
  * Resources that the LDP Container contains
@@ -28081,8 +28273,6 @@ var WebIdProfile = class extends Thing {
28081
28273
  constructor(webId, store, editable = false) {
28082
28274
  super(webId, store, editable);
28083
28275
  this.webId = webId;
28084
- this.store = store;
28085
- this.editable = editable;
28086
28276
  this.profileQuery = this.store.profileQuery(this.webId);
28087
28277
  }
28088
28278
  /**
@@ -28223,9 +28413,6 @@ var SearchIndex = class {
28223
28413
  var RdfDocument = class extends Thing {
28224
28414
  constructor(uri6, store, editable = false) {
28225
28415
  super(uri6, store, editable);
28226
- this.uri = uri6;
28227
- this.store = store;
28228
- this.editable = editable;
28229
28416
  }
28230
28417
  subjects() {
28231
28418
  const matches = this.store.statementsMatching(
@@ -28247,9 +28434,6 @@ var RdfDocument = class extends Thing {
28247
28434
  var LabelIndex = class extends RdfDocument {
28248
28435
  constructor(uri6, store, editable = false) {
28249
28436
  super(uri6, store, editable);
28250
- this.uri = uri6;
28251
- this.store = store;
28252
- this.editable = editable;
28253
28437
  }
28254
28438
  /**
28255
28439
  * Returns the URIs and labels for all the things listed in the document.
@@ -50086,8 +50270,6 @@ function listKnownTerms() {
50086
50270
  // src/uri/UriService.ts
50087
50271
  var import_slugify = __toESM(require_slugify(), 1);
50088
50272
  var UriService = class {
50089
- // We expect to use the store for calculating the uris for things
50090
- // e.g. looking up locations in type index
50091
50273
  constructor(store) {
50092
50274
  this.store = store;
50093
50275
  }
@@ -50290,9 +50472,6 @@ function proposeAppsFor(thing) {
50290
50472
  var TypeIndex2 = class extends Thing {
50291
50473
  constructor(uri6, store, editable = false) {
50292
50474
  super(uri6, store, editable);
50293
- this.uri = uri6;
50294
- this.store = store;
50295
- this.editable = editable;
50296
50475
  }
50297
50476
  listAll() {
50298
50477
  const forClassStatements = this.store.statementsMatching(