@graphty/graph-io 0.3.16 → 0.3.18

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 (111) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +29 -3
  3. package/dist/chunks/{escape-D1f9-cwf.js → escape-D-gZWO26.js} +3 -2
  4. package/dist/chunks/{escape-D1f9-cwf.js.map → escape-D-gZWO26.js.map} +1 -1
  5. package/dist/chunks/{importer-D7ZcGCeb.js → importer-Br_QeAeE.js} +4 -3
  6. package/dist/chunks/{importer-D7ZcGCeb.js.map → importer-Br_QeAeE.js.map} +1 -1
  7. package/dist/chunks/{importer-CXEiicAN.js → importer-DHagxvDD.js} +4 -3
  8. package/dist/chunks/{importer-CXEiicAN.js.map → importer-DHagxvDD.js.map} +1 -1
  9. package/dist/chunks/{importer-C7mnGdr_.js → importer-Du5crN9l.js} +510 -26
  10. package/dist/chunks/importer-Du5crN9l.js.map +1 -0
  11. package/dist/chunks/importer-aNJfe0qu.js +1614 -0
  12. package/dist/chunks/importer-aNJfe0qu.js.map +1 -0
  13. package/dist/chunks/{importer-B8lsjFWx.js → importer-d0uQxFp6.js} +4 -3
  14. package/dist/chunks/{importer-B8lsjFWx.js.map → importer-d0uQxFp6.js.map} +1 -1
  15. package/dist/chunks/ontology-BnrJ4I98.js +113 -0
  16. package/dist/chunks/ontology-BnrJ4I98.js.map +1 -0
  17. package/dist/chunks/{records-IHsCfv7s.js → records-Bk9jgodz.js} +2 -2
  18. package/dist/chunks/{records-IHsCfv7s.js.map → records-Bk9jgodz.js.map} +1 -1
  19. package/dist/chunks/{writer-BtWpUaiH.js → report-BOk0p5y8.js} +181 -912
  20. package/dist/chunks/report-BOk0p5y8.js.map +1 -0
  21. package/dist/chunks/writer-GAdltGmC.js +827 -0
  22. package/dist/chunks/writer-GAdltGmC.js.map +1 -0
  23. package/dist/csv.js +4 -3
  24. package/dist/csv.js.map +1 -1
  25. package/dist/dot.js +1 -1
  26. package/dist/gexf.js +3 -2
  27. package/dist/gexf.js.map +1 -1
  28. package/dist/gml.js +3 -2
  29. package/dist/gml.js.map +1 -1
  30. package/dist/graph-io.js +191 -134
  31. package/dist/graph-io.js.map +1 -1
  32. package/dist/graphml.js +1 -1
  33. package/dist/json.js +1 -1
  34. package/dist/neo4j.js +4 -3
  35. package/dist/neo4j.js.map +1 -1
  36. package/dist/obo.d.ts +1 -0
  37. package/dist/obo.js +6 -0
  38. package/dist/obo.js.map +1 -0
  39. package/dist/pajek.js +1 -1
  40. package/dist/src/common/codes.d.ts +43 -0
  41. package/dist/src/common/codes.d.ts.map +1 -1
  42. package/dist/src/common/codes.js +43 -0
  43. package/dist/src/common/codes.js.map +1 -1
  44. package/dist/src/common/input.d.ts +9 -0
  45. package/dist/src/common/input.d.ts.map +1 -1
  46. package/dist/src/common/input.js +16 -0
  47. package/dist/src/common/input.js.map +1 -1
  48. package/dist/src/common/ontology.d.ts +59 -0
  49. package/dist/src/common/ontology.d.ts.map +1 -0
  50. package/dist/src/common/ontology.js +147 -0
  51. package/dist/src/common/ontology.js.map +1 -0
  52. package/dist/src/common/options.d.ts +12 -1
  53. package/dist/src/common/options.d.ts.map +1 -1
  54. package/dist/src/common/options.js +51 -1
  55. package/dist/src/common/options.js.map +1 -1
  56. package/dist/src/formats/json/dialect.d.ts +8 -6
  57. package/dist/src/formats/json/dialect.d.ts.map +1 -1
  58. package/dist/src/formats/json/dialect.js +26 -3
  59. package/dist/src/formats/json/dialect.js.map +1 -1
  60. package/dist/src/formats/json/importer.d.ts +324 -7
  61. package/dist/src/formats/json/importer.d.ts.map +1 -1
  62. package/dist/src/formats/json/importer.js +154 -23
  63. package/dist/src/formats/json/importer.js.map +1 -1
  64. package/dist/src/formats/json/obographs.d.ts +21 -0
  65. package/dist/src/formats/json/obographs.d.ts.map +1 -0
  66. package/dist/src/formats/json/obographs.js +476 -0
  67. package/dist/src/formats/json/obographs.js.map +1 -0
  68. package/dist/src/formats/obo/importer.d.ts +90 -0
  69. package/dist/src/formats/obo/importer.d.ts.map +1 -0
  70. package/dist/src/formats/obo/importer.js +1248 -0
  71. package/dist/src/formats/obo/importer.js.map +1 -0
  72. package/dist/src/formats/obo/index.d.ts +7 -0
  73. package/dist/src/formats/obo/index.d.ts.map +1 -0
  74. package/dist/src/formats/obo/index.js +7 -0
  75. package/dist/src/formats/obo/index.js.map +1 -0
  76. package/dist/src/formats/obo/syntax.d.ts +121 -0
  77. package/dist/src/formats/obo/syntax.d.ts.map +1 -0
  78. package/dist/src/formats/obo/syntax.js +424 -0
  79. package/dist/src/formats/obo/syntax.js.map +1 -0
  80. package/dist/src/index.d.ts +5 -4
  81. package/dist/src/index.d.ts.map +1 -1
  82. package/dist/src/index.js +4 -3
  83. package/dist/src/index.js.map +1 -1
  84. package/dist/src/registry.d.ts +21 -3
  85. package/dist/src/registry.d.ts.map +1 -1
  86. package/dist/src/registry.js +32 -1
  87. package/dist/src/registry.js.map +1 -1
  88. package/dist/src/sniff.d.ts +1 -1
  89. package/dist/src/sniff.d.ts.map +1 -1
  90. package/dist/src/sniff.js +23 -3
  91. package/dist/src/sniff.js.map +1 -1
  92. package/dist/src/types.d.ts +31 -0
  93. package/dist/src/types.d.ts.map +1 -1
  94. package/dist/src/types.js.map +1 -1
  95. package/package.json +6 -1
  96. package/src/common/codes.ts +58 -0
  97. package/src/common/input.ts +16 -0
  98. package/src/common/ontology.ts +169 -0
  99. package/src/common/options.ts +78 -2
  100. package/src/formats/json/dialect.ts +37 -7
  101. package/src/formats/json/importer.ts +206 -28
  102. package/src/formats/json/obographs.ts +563 -0
  103. package/src/formats/obo/importer.ts +1695 -0
  104. package/src/formats/obo/index.ts +7 -0
  105. package/src/formats/obo/syntax.ts +466 -0
  106. package/src/index.ts +6 -0
  107. package/src/registry.ts +38 -3
  108. package/src/sniff.ts +35 -5
  109. package/src/types.ts +40 -1
  110. package/dist/chunks/importer-C7mnGdr_.js.map +0 -1
  111. package/dist/chunks/writer-BtWpUaiH.js.map +0 -1
package/dist/graph-io.js CHANGED
@@ -1,25 +1,28 @@
1
- import { I as ImportReportBuilder, a as throwIfAborted } from "./chunks/writer-BtWpUaiH.js";
2
- import { B, b, C, c, d, D, e, f, g, h, i, j, k, l, E, m, n, H, o, p, q, r, s, u, v, w, L, x, M, y, z, A, F, G, J, N, K, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, t, aH } from "./chunks/writer-BtWpUaiH.js";
1
+ import { I as ImportReportBuilder, a as throwIfAborted } from "./chunks/report-BOk0p5y8.js";
2
+ import { A, b, B, c, d, e, C, f, g, h, D, i, j, k, l, m, n, o, p, q, E, r, s, u, G, H, v, w, x, y, z, F, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, t } from "./chunks/report-BOk0p5y8.js";
3
3
  import { C as C2, c as c2, a } from "./chunks/children-CL3Cy0ez.js";
4
4
  import { GraphFormatError, GraphBuilder } from "@graphty/graph-format";
5
5
  import { csvImporter, csvExporter } from "./csv.js";
6
6
  import { CSV_CAPABILITIES, CSV_ISSUE, CSV_LOSS } from "./csv.js";
7
- import { b as dotImporter, d as dotExporter } from "./chunks/importer-D7ZcGCeb.js";
8
- import { D as D2, a as a10 } from "./chunks/importer-D7ZcGCeb.js";
7
+ import { b as dotImporter, d as dotExporter } from "./chunks/importer-Br_QeAeE.js";
8
+ import { D as D2, a as a10 } from "./chunks/importer-Br_QeAeE.js";
9
9
  import { gexfImporter, gexfExporter } from "./gexf.js";
10
10
  import { GEXF_1_2_CAPABILITIES, GEXF_ISSUE, GEXF_LOSS } from "./gexf.js";
11
11
  import { gmlImporter, gmlExporter } from "./gml.js";
12
12
  import { GML_ISSUE, GML_LOSS } from "./gml.js";
13
- import { b as graphmlImporter, g as graphmlExporter } from "./chunks/importer-CXEiicAN.js";
14
- import { G as G2, a as a11 } from "./chunks/importer-CXEiicAN.js";
15
- import { s as sniffJsonDialect, e as jsonImporter, c as jsonExporter } from "./chunks/importer-C7mnGdr_.js";
16
- import { J as J2, a as a12, b as b2, d as d2, j as j2 } from "./chunks/importer-C7mnGdr_.js";
13
+ import { b as graphmlImporter, g as graphmlExporter } from "./chunks/importer-DHagxvDD.js";
14
+ import { G as G2, a as a11 } from "./chunks/importer-DHagxvDD.js";
15
+ import { s as sniffJsonDialect, e as jsonImporter, c as jsonExporter } from "./chunks/importer-Du5crN9l.js";
16
+ import { J as J2, a as a12, b as b2, d as d2, j as j2 } from "./chunks/importer-Du5crN9l.js";
17
17
  import { neo4jImporter, neo4jExporter } from "./neo4j.js";
18
18
  import { ID_SPACE_COLUMN, LABELS_COLUMN, NEO4J_CAPABILITIES, NEO4J_ISSUE, NEO4J_LOSS, ORIGINAL_ID_COLUMN, TYPE_COLUMN } from "./neo4j.js";
19
- import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-B8lsjFWx.js";
20
- import { P as P2, a as a13 } from "./chunks/importer-B8lsjFWx.js";
21
- import { T as T2, W as W2, i as i2, a as a14, p as p2 } from "./chunks/text-Dr0Ifpag.js";
22
- import { X as X2, a as a15, h as h2, t as t2, x as x2 } from "./chunks/escape-D1f9-cwf.js";
19
+ import { o as oboImporter } from "./chunks/importer-aNJfe0qu.js";
20
+ import { O as O2 } from "./chunks/importer-aNJfe0qu.js";
21
+ import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-d0uQxFp6.js";
22
+ import { P as P2, a as a13 } from "./chunks/importer-d0uQxFp6.js";
23
+ import { D as D3, L as L2, N as N2, c as c3, a as a14, b as b3, d as d3, e as e2, f as f2, g as g2, h as h2, i as i2, j as j3, k as k2, l as l2, m as m2, n as n2, o as o2, p as p2, s as s2, t as t2 } from "./chunks/writer-GAdltGmC.js";
24
+ import { T as T2, W as W2, i as i3, a as a15, p as p3 } from "./chunks/text-Dr0Ifpag.js";
25
+ import { X as X2, a as a16, h as h3, t as t3, x as x2 } from "./chunks/escape-D-gZWO26.js";
23
26
  const GRAPH_FORMATS = Object.freeze([
24
27
  "json",
25
28
  "graphml",
@@ -28,7 +31,8 @@ const GRAPH_FORMATS = Object.freeze([
28
31
  "gml",
29
32
  "dot",
30
33
  "pajek",
31
- "neo4j"
34
+ "neo4j",
35
+ "obo"
32
36
  ]);
33
37
  const SNIFF_HEAD_BYTES = 8192;
34
38
  function extensionOf(filename) {
@@ -60,8 +64,8 @@ function rankFormats(hints, importers) {
60
64
  const candidates = [];
61
65
  let rank = 0;
62
66
  for (const importer of importers) {
63
- const extensionMatch = extension !== null && importer.extensions.some((e2) => e2.toLowerCase() === extension);
64
- const mimeMatch = mime !== null && importer.mimeTypes.some((m2) => m2.toLowerCase() === mime);
67
+ const extensionMatch = extension !== null && importer.extensions.some((e3) => e3.toLowerCase() === extension);
68
+ const mimeMatch = mime !== null && importer.mimeTypes.some((m3) => m3.toLowerCase() === mime);
65
69
  let content = 0;
66
70
  if (head !== null && head.byteLength > 0 && typeof importer.sniff === "function") {
67
71
  content = clamp(importer.sniff(head));
@@ -85,8 +89,8 @@ function rankFormats(hints, importers) {
85
89
  });
86
90
  candidates.push({ result: result2, rank: rank++ });
87
91
  }
88
- candidates.sort((a16, b3) => b3.result.confidence - a16.result.confidence || a16.rank - b3.rank);
89
- return candidates.map((c3) => c3.result);
92
+ candidates.sort((a17, b4) => b4.result.confidence - a17.result.confidence || a17.rank - b4.rank);
93
+ return candidates.map((c4) => c4.result);
90
94
  }
91
95
  function sniffFormat(hints, importers) {
92
96
  const ranked = rankFormats(hints, importers);
@@ -124,9 +128,19 @@ function skeletonOf(text) {
124
128
  case "options":
125
129
  root[key] = objectOf(keys.get(key));
126
130
  break;
127
- case "graphs":
128
- root[key] = [];
131
+ case "graphs": {
132
+ const nodes = keys.get("graphs[0].nodes[]");
133
+ const edges = keys.get("graphs[0].edges[]");
134
+ const graph = {};
135
+ if (nodes !== void 0) {
136
+ graph.nodes = [objectOf(nodes)];
137
+ }
138
+ if (edges !== void 0) {
139
+ graph.edges = [objectOf(edges)];
140
+ }
141
+ root[key] = nodes === void 0 && edges === void 0 ? [] : [graph];
129
142
  break;
143
+ }
130
144
  case "nodes":
131
145
  case "edges":
132
146
  case "links": {
@@ -168,6 +182,9 @@ function scanKeys(text) {
168
182
  if (depth === 2 && kinds[0] === "object" && kinds[1] === "object") {
169
183
  return labels[1] === "graph" || labels[1] === "options" ? labels[1] : null;
170
184
  }
185
+ if (depth === 5 && kinds.join() === "object,array,object,array,object" && labels[1] === "graphs" && labels[2] === "0" && (labels[3] === "nodes" || labels[3] === "edges")) {
186
+ return labels[3] === "nodes" ? "graphs[0].nodes[]" : "graphs[0].edges[]";
187
+ }
171
188
  if (depth === 3 && kinds[0] === "object" && kinds[1] === "array" && kinds[2] === "object") {
172
189
  const section = labels[1];
173
190
  if ((section === "nodes" || section === "edges" || section === "links") && labels[2] === "0") {
@@ -176,17 +193,17 @@ function scanKeys(text) {
176
193
  }
177
194
  return null;
178
195
  };
179
- let i3 = 0;
180
- const n2 = text.length;
181
- while (i3 < n2) {
182
- const ch = text[i3];
196
+ let i4 = 0;
197
+ const n3 = text.length;
198
+ while (i4 < n3) {
199
+ const ch = text[i4];
183
200
  if (ch === '"') {
184
- const end = scanString(text, i3 + 1);
201
+ const end = scanString(text, i4 + 1);
185
202
  if (end < 0) {
186
203
  break;
187
204
  }
188
- const literal = text.slice(i3 + 1, end);
189
- i3 = end + 1;
205
+ const literal = text.slice(i4 + 1, end);
206
+ i4 = end + 1;
190
207
  if (expectingKey) {
191
208
  pendingKey = decodeKey(literal);
192
209
  expectingKey = false;
@@ -229,22 +246,22 @@ function scanKeys(text) {
229
246
  }
230
247
  pendingKey = null;
231
248
  }
232
- i3++;
249
+ i4++;
233
250
  }
234
251
  return found;
235
252
  }
236
253
  function scanString(text, from) {
237
- let i3 = from;
238
- while (i3 < text.length) {
239
- const ch = text[i3];
254
+ let i4 = from;
255
+ while (i4 < text.length) {
256
+ const ch = text[i4];
240
257
  if (ch === "\\") {
241
- i3 += 2;
258
+ i4 += 2;
242
259
  continue;
243
260
  }
244
261
  if (ch === '"') {
245
- return i3;
262
+ return i4;
246
263
  }
247
- i3++;
264
+ i4++;
248
265
  }
249
266
  return -1;
250
267
  }
@@ -425,7 +442,24 @@ class FormatRegistry {
425
442
  await chosen.peeked?.close();
426
443
  throw err;
427
444
  }
428
- return reports.map((report, i3) => result(chosen, builders[i3], report, options));
445
+ return reports.map((report, i4) => result(chosen, builders[i4], report, options));
446
+ }
447
+ /**
448
+ * The graphs of an input that can hold several, without importing them (a Cytoscape session's
449
+ * networks, a JGF `graphs` array), so a caller can offer a choice and then pass `graphIndex`
450
+ * or `graphName` to importGraph(). The format is named or sniffed as by importGraph().
451
+ * @param input - the text, bytes, stream or chunks to read
452
+ * @param options - the format, hints, common and format-specific import options
453
+ * @returns one listing per graph, in document order; null when the format's importer does not
454
+ * list its graphs (importGraph() then reads the first)
455
+ */
456
+ async listGraphs(input, options = {}) {
457
+ const chosen = await this.choose(input, options);
458
+ try {
459
+ return chosen.importer.listGraphs === void 0 ? null : await chosen.importer.listGraphs(chosen.source, importerOptions(options));
460
+ } finally {
461
+ await chosen.peeked?.close();
462
+ }
429
463
  }
430
464
  /**
431
465
  * The importer for an input: the named format, or the sniffed one.
@@ -483,7 +517,7 @@ class FormatRegistry {
483
517
  }
484
518
  }
485
519
  function createRegistry() {
486
- return new FormatRegistry().registerImporter(jsonImporter).registerExporter(jsonExporter).registerImporter(graphmlImporter).registerExporter(graphmlExporter).registerImporter(gexfImporter).registerExporter(gexfExporter).registerImporter(csvImporter).registerExporter(csvExporter).registerImporter(gmlImporter).registerExporter(gmlExporter).registerImporter(dotImporter).registerExporter(dotExporter).registerImporter(pajekImporter).registerExporter(pajekExporter).registerImporter(neo4jImporter).registerExporter(neo4jExporter);
520
+ return new FormatRegistry().registerImporter(jsonImporter).registerExporter(jsonExporter).registerImporter(graphmlImporter).registerExporter(graphmlExporter).registerImporter(gexfImporter).registerExporter(gexfExporter).registerImporter(csvImporter).registerExporter(csvExporter).registerImporter(gmlImporter).registerExporter(gmlExporter).registerImporter(dotImporter).registerExporter(dotExporter).registerImporter(pajekImporter).registerExporter(pajekExporter).registerImporter(neo4jImporter).registerExporter(neo4jExporter).registerImporter(oboImporter);
487
521
  }
488
522
  const registry = createRegistry();
489
523
  function importGraph(input, options) {
@@ -492,6 +526,9 @@ function importGraph(input, options) {
492
526
  function importAllGraphs(input, options) {
493
527
  return registry.importAllGraphs(input, options);
494
528
  }
529
+ function listGraphs(input, options) {
530
+ return registry.listGraphs(input, options);
531
+ }
495
532
  function exportGraph(snapshot, format, options) {
496
533
  return registry.exportGraph(snapshot, format, options);
497
534
  }
@@ -584,10 +621,10 @@ async function peekHead(input, bytes, signal) {
584
621
  return { head: joinHead(buffered, bytes), input: replayed, close: () => replayed.close() };
585
622
  }
586
623
  function joinHead(chunks, bytes) {
587
- if (chunks.every((c3) => c3 instanceof Uint8Array)) {
624
+ if (chunks.every((c4) => c4 instanceof Uint8Array)) {
588
625
  const total = Math.min(
589
626
  bytes,
590
- chunks.reduce((sum, c3) => sum + c3.byteLength, 0)
627
+ chunks.reduce((sum, c4) => sum + c4.byteLength, 0)
591
628
  );
592
629
  const head = new Uint8Array(total);
593
630
  let offset = 0;
@@ -673,29 +710,37 @@ function readerIterator(stream) {
673
710
  };
674
711
  }
675
712
  export {
676
- B as BAD_DEFAULT_CODE,
677
- b as BAD_OPTIONS_CODE,
713
+ A as AMBIGUOUS_GRAPH_NAME_CODE,
714
+ b as ASPECT_ORDER_CODE,
715
+ B as BAD_ASPECT_BLOCK_CODE,
716
+ c as BAD_DEFAULT_CODE,
717
+ d as BAD_OPTIONS_CODE,
718
+ e as BAD_VALUE_CODE,
678
719
  C as COLUMN_RENAMED_CODE,
679
- c as COLUMN_RENAMED_LOSS_CODE,
680
- d as COUNT_HINT_CODE,
720
+ f as COLUMN_RENAMED_LOSS_CODE,
721
+ g as COUNT_HINT_CODE,
722
+ h as COUNT_MISMATCH_CODE,
681
723
  CSV_CAPABILITIES,
682
724
  CSV_ISSUE,
683
725
  CSV_LOSS,
684
726
  C2 as ChildrenCsr,
685
- D as DEFAULT_CHUNK_BYTES,
686
- e as DEFAULT_ERROR_LIMIT,
687
- f as DIRECTED_COLUMN,
688
- g as DIRECTION_FORCED_CODE,
689
- h as DIRECTION_REFUSED_CODE,
727
+ D as DANGLING_REFERENCE_CODE,
728
+ D3 as DEFAULT_CHUNK_BYTES,
729
+ i as DEFAULT_ERROR_LIMIT,
730
+ j as DIRECTED_COLUMN,
731
+ k as DIRECTION_FORCED_CODE,
732
+ l as DIRECTION_REFUSED_CODE,
690
733
  D2 as DOT_ISSUE,
691
734
  a10 as DOT_LOSS,
692
- i as DUPLICATE_EDGE_ID_CODE,
693
- j as DUPLICATE_KEY_CODE,
694
- k as DUPLICATE_NODE_CODE,
695
- l as DirectionResolver,
735
+ m as DUPLICATE_ATTRIBUTE_CODE,
736
+ n as DUPLICATE_EDGE_ID_CODE,
737
+ o as DUPLICATE_KEY_CODE,
738
+ p as DUPLICATE_NODE_CODE,
739
+ q as DirectionResolver,
696
740
  E as EMPTY_COLUMN_DROPPED_CODE,
697
- m as EMPTY_INPUT_CODE,
698
- n as ENCODING_FALLBACK_CODE,
741
+ r as EMPTY_INPUT_CODE,
742
+ s as ENCODING_FALLBACK_CODE,
743
+ u as EQUATION_AS_TEXT_CODE,
699
744
  FormatRegistry,
700
745
  GEXF_1_2_CAPABILITIES,
701
746
  GEXF_ISSUE,
@@ -705,144 +750,156 @@ export {
705
750
  G2 as GRAPHML_ISSUE,
706
751
  a11 as GRAPHML_LOSS,
707
752
  GRAPH_FORMATS,
753
+ G as GRAPH_NOT_FOUND_CODE,
708
754
  H as HYPEREDGE_CODE,
709
- o as ID_MERGED_CODE,
755
+ v as ID_MERGED_CODE,
710
756
  ID_SPACE_COLUMN,
711
- p as ID_TEXT_COLLISION_CODE,
712
- q as ID_TEXT_TYPE_CODE,
713
- r as INTEGRAL_F64_CODE,
714
- s as INVALID_ENCODING_CODE,
715
- u as INVALID_UTF8_CODE,
716
- v as IdCoercer,
717
- w as ImportError,
757
+ w as ID_TEXT_COLLISION_CODE,
758
+ x as ID_TEXT_TYPE_CODE,
759
+ y as INTEGRAL_F64_CODE,
760
+ z as INVALID_ENCODING_CODE,
761
+ F as INVALID_UTF8_CODE,
762
+ J as IdCoercer,
763
+ K as ImportError,
718
764
  ImportReportBuilder,
719
765
  J2 as JSON_DIALECTS,
720
766
  a12 as JSON_ISSUE,
721
767
  b2 as JSON_LOSS,
722
768
  LABELS_COLUMN,
723
- L as LOSS,
724
- x as LineReader,
769
+ L2 as LOSS,
770
+ L as LineReader,
725
771
  M as MISSING_ENDPOINT_CODE,
726
- y as MISSING_ID_CODE,
727
- z as MIXED_DIRECTION_CODE,
728
- A as MULTIPLE_GRAPHS_CODE,
729
- F as MUTUAL_AS_UNDIRECTED_CODE,
730
- G as MUTUAL_COLUMN,
731
- J as MUTUAL_EXPANDED_CODE,
772
+ N as MISSING_ID_CODE,
773
+ O as MIXED_DIRECTION_CODE,
774
+ P as MULTIPLE_GRAPHS_CODE,
775
+ Q as MUTUAL_AS_UNDIRECTED_CODE,
776
+ R as MUTUAL_COLUMN,
777
+ S as MUTUAL_EXPANDED_CODE,
732
778
  NEO4J_CAPABILITIES,
733
779
  NEO4J_ISSUE,
734
780
  NEO4J_LOSS,
735
- N as NO_CAPABILITIES,
736
- K as NO_GRAPH_CODE,
737
- O as OPTIONS_GAINED_CODE,
738
- P as OPTION_IGNORED_CODE,
781
+ N2 as NO_CAPABILITIES,
782
+ T as NO_GRAPH_CODE,
783
+ O2 as OBO_ISSUE,
784
+ U as OPTIONS_GAINED_CODE,
785
+ V as OPTION_IGNORED_CODE,
739
786
  ORIGINAL_ID_COLUMN,
740
- Q as PAIR_COLUMN,
787
+ W as PAIR_COLUMN,
741
788
  P2 as PAJEK_ISSUE,
742
789
  a13 as PAJEK_LOSS,
743
- R as PARENTS_DROPPED_CODE,
744
- S as PARSE_ERROR_CODE,
745
- T as PRECISION_CODE,
746
- U as RENAMED_CODE,
747
- V as ROLE_ASSUMED_CODE,
748
- W as ROLE_DROPPED_CODE,
749
- X as ROLE_TAKEN_CODE,
750
- Y as SINK_OPTION_CODE,
790
+ X as PARENTS_DROPPED_CODE,
791
+ Y as PARENT_CYCLE_CODE,
792
+ Z as PARSE_ERROR_CODE,
793
+ _ as PRECISION_CODE,
794
+ $ as RENAMED_CODE,
795
+ a0 as ROLE_ASSUMED_CODE,
796
+ a1 as ROLE_DROPPED_CODE,
797
+ a2 as ROLE_TAKEN_CODE,
798
+ a3 as SINK_OPTION_CODE,
751
799
  SNIFF_HEAD_BYTES,
752
- Z as STORAGE_CLASS_CODE,
753
- _ as STRAY_TEXT_CODE,
754
- $ as SYNTAX_CODE,
755
- a0 as TEMPORAL_DROPPED_CODE,
756
- a1 as TEMPORAL_TEXT_DROPPED_CODE,
757
- a2 as TEXT_INFERRED_CODE,
800
+ a4 as STATUS_FAILED_CODE,
801
+ a5 as STATUS_WARNING_CODE,
802
+ a6 as STORAGE_CLASS_CODE,
803
+ a7 as STRAY_TEXT_CODE,
804
+ a8 as STYLES_NOT_IMPORTED_CODE,
805
+ a9 as SYNTAX_CODE,
806
+ aa as TEMPORAL_DROPPED_CODE,
807
+ ab as TEMPORAL_TEXT_DROPPED_CODE,
808
+ ac as TEXT_INFERRED_CODE,
809
+ ad as TOO_LARGE_CODE,
758
810
  TYPE_COLUMN,
759
811
  T2 as TextCellWriter,
760
- a3 as UNKNOWN_ATTR_TYPE_CODE,
761
- a4 as UNKNOWN_ELEMENT_CODE,
762
- a5 as UNKNOWN_ENCODING_CODE,
812
+ ae as UNKNOWN_ATTR_TYPE_CODE,
813
+ af as UNKNOWN_ELEMENT_CODE,
814
+ ag as UNKNOWN_ENCODING_CODE,
763
815
  UNKNOWN_FORMAT_CODE,
764
- a6 as UNKNOWN_PARENT_CODE,
765
- a7 as UNKNOWN_TYPE_CODE,
766
- a8 as WEIGHT_KEY_CLASH_CODE,
816
+ ah as UNKNOWN_PARENT_CODE,
817
+ ai as UNKNOWN_TYPE_CODE,
818
+ aj as WEIGHT_KEY_CLASH_CODE,
819
+ ak as WIDENED_CODE,
767
820
  W2 as WIDENING_UNSUPPORTED_CODE,
768
- a9 as XML_ILLEGAL_CHAR_CODE,
769
- aa as XML_SYNTAX_CODE,
821
+ al as XML_ILLEGAL_CHAR_CODE,
822
+ am as XML_SYNTAX_CODE,
770
823
  X2 as XmlSyntaxError,
771
- a15 as XmlTokenizer,
772
- ab as canonicalId,
773
- ac as capabilities,
774
- ad as checkCapabilities,
824
+ a16 as XmlTokenizer,
825
+ an as canonicalId,
826
+ c3 as capabilities,
827
+ a14 as checkCapabilities,
775
828
  checkExport,
776
829
  c2 as childrenCsr,
777
830
  a as childrenFromColumn,
778
- ae as coerceId,
779
- af as coerceIdText,
780
- ag as collectBytes,
831
+ ao as chooseGraph,
832
+ ap as coerceId,
833
+ aq as coerceIdText,
834
+ b3 as collectBytes,
781
835
  createRegistry,
782
836
  csvExporter,
783
837
  csvImporter,
784
- ah as declareCompanion,
785
- ai as declareResolved,
786
- aj as decodeChunks,
838
+ ar as declareCompanion,
839
+ as as declareResolved,
840
+ d3 as decodeChunks,
841
+ at as decodeEntryName,
787
842
  d2 as dialectCapabilities,
788
843
  dotExporter,
789
844
  dotImporter,
790
- ak as encodeChunks,
791
- al as explicitWeights,
845
+ e2 as encodeChunks,
846
+ f2 as explicitWeights,
792
847
  exportGraph,
793
848
  exportGraphToString,
794
849
  extensionOf,
795
- am as formatDecimal,
796
- an as formatF32,
797
- ao as formatF64,
798
- ap as formatGmlReal,
799
- aq as formatInteger,
850
+ g2 as formatDecimal,
851
+ h2 as formatF32,
852
+ i2 as formatF64,
853
+ j3 as formatGmlReal,
854
+ k2 as formatInteger,
800
855
  gexfExporter,
801
856
  gexfImporter,
802
857
  gmlExporter,
803
858
  gmlImporter,
804
859
  graphmlExporter,
805
860
  graphmlImporter,
806
- h2 as hasIllegalXmlChar,
861
+ h3 as hasIllegalXmlChar,
807
862
  headBytes,
808
863
  importAllGraphs,
809
864
  importGraph,
810
- i2 as inferTextDtype,
811
- ar as inputLength,
812
- as as isAbortError,
813
- at as isCanonicalIntegerText,
814
- au as isImportInput,
815
- av as isNmtoken,
816
- a14 as isNumericText,
817
- aw as isWeightField,
818
- ax as joinText,
865
+ i3 as inferTextDtype,
866
+ au as inputLength,
867
+ av as isAbortError,
868
+ aw as isCanonicalIntegerText,
869
+ ax as isImportInput,
870
+ l2 as isNmtoken,
871
+ a15 as isNumericText,
872
+ m2 as isWeightField,
873
+ n2 as joinText,
819
874
  j2 as jsonCapabilities,
820
875
  jsonExporter,
821
876
  jsonImporter,
822
- ay as mangleNmtoken,
877
+ listGraphs,
878
+ o2 as mangleNmtoken,
823
879
  neo4jExporter,
824
880
  neo4jImporter,
825
881
  normalizeMimeType,
826
- az as pairFolding,
882
+ oboImporter,
883
+ ay as pairFolding,
827
884
  pajekExporter,
828
885
  pajekImporter,
829
- p2 as parseTextCell,
830
- aA as parseWeightText,
886
+ p3 as parseTextCell,
887
+ p2 as parseWeightText,
831
888
  rankFormats,
832
- aB as readText,
889
+ az as readText,
833
890
  registry,
834
- aC as reportSinkOptions,
835
- aD as reportUnusedOptions,
836
- aE as resolveExportOptions,
837
- aF as resolveImportOptions,
838
- aG as sanitizeIds,
891
+ aA as reportSinkOptions,
892
+ aB as reportUnusedOptions,
893
+ aC as resolveExportOptions,
894
+ aD as resolveImportOptions,
895
+ s2 as sanitizeIds,
839
896
  sniff,
840
897
  sniffFormat,
841
898
  sniffJsonDialectHead,
842
899
  t as textChunks,
843
900
  throwIfAborted,
844
- aH as toReadableStream,
845
- t2 as tokenizeXml,
901
+ t2 as toReadableStream,
902
+ t3 as tokenizeXml,
846
903
  x2 as xmlIllegalTextNotes
847
904
  };
848
905
  //# sourceMappingURL=graph-io.js.map