@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.
- package/LICENSE +1 -1
- package/README.md +29 -3
- package/dist/chunks/{escape-D1f9-cwf.js → escape-D-gZWO26.js} +3 -2
- package/dist/chunks/{escape-D1f9-cwf.js.map → escape-D-gZWO26.js.map} +1 -1
- package/dist/chunks/{importer-D7ZcGCeb.js → importer-Br_QeAeE.js} +4 -3
- package/dist/chunks/{importer-D7ZcGCeb.js.map → importer-Br_QeAeE.js.map} +1 -1
- package/dist/chunks/{importer-CXEiicAN.js → importer-DHagxvDD.js} +4 -3
- package/dist/chunks/{importer-CXEiicAN.js.map → importer-DHagxvDD.js.map} +1 -1
- package/dist/chunks/{importer-C7mnGdr_.js → importer-Du5crN9l.js} +510 -26
- package/dist/chunks/importer-Du5crN9l.js.map +1 -0
- package/dist/chunks/importer-aNJfe0qu.js +1614 -0
- package/dist/chunks/importer-aNJfe0qu.js.map +1 -0
- package/dist/chunks/{importer-B8lsjFWx.js → importer-d0uQxFp6.js} +4 -3
- package/dist/chunks/{importer-B8lsjFWx.js.map → importer-d0uQxFp6.js.map} +1 -1
- package/dist/chunks/ontology-BnrJ4I98.js +113 -0
- package/dist/chunks/ontology-BnrJ4I98.js.map +1 -0
- package/dist/chunks/{records-IHsCfv7s.js → records-Bk9jgodz.js} +2 -2
- package/dist/chunks/{records-IHsCfv7s.js.map → records-Bk9jgodz.js.map} +1 -1
- package/dist/chunks/{writer-BtWpUaiH.js → report-BOk0p5y8.js} +181 -912
- package/dist/chunks/report-BOk0p5y8.js.map +1 -0
- package/dist/chunks/writer-GAdltGmC.js +827 -0
- package/dist/chunks/writer-GAdltGmC.js.map +1 -0
- package/dist/csv.js +4 -3
- package/dist/csv.js.map +1 -1
- package/dist/dot.js +1 -1
- package/dist/gexf.js +3 -2
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +3 -2
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +191 -134
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +1 -1
- package/dist/json.js +1 -1
- package/dist/neo4j.js +4 -3
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.d.ts +1 -0
- package/dist/obo.js +6 -0
- package/dist/obo.js.map +1 -0
- package/dist/pajek.js +1 -1
- package/dist/src/common/codes.d.ts +43 -0
- package/dist/src/common/codes.d.ts.map +1 -1
- package/dist/src/common/codes.js +43 -0
- package/dist/src/common/codes.js.map +1 -1
- package/dist/src/common/input.d.ts +9 -0
- package/dist/src/common/input.d.ts.map +1 -1
- package/dist/src/common/input.js +16 -0
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/common/ontology.d.ts +59 -0
- package/dist/src/common/ontology.d.ts.map +1 -0
- package/dist/src/common/ontology.js +147 -0
- package/dist/src/common/ontology.js.map +1 -0
- package/dist/src/common/options.d.ts +12 -1
- package/dist/src/common/options.d.ts.map +1 -1
- package/dist/src/common/options.js +51 -1
- package/dist/src/common/options.js.map +1 -1
- package/dist/src/formats/json/dialect.d.ts +8 -6
- package/dist/src/formats/json/dialect.d.ts.map +1 -1
- package/dist/src/formats/json/dialect.js +26 -3
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts +324 -7
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +154 -23
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/obographs.d.ts +21 -0
- package/dist/src/formats/json/obographs.d.ts.map +1 -0
- package/dist/src/formats/json/obographs.js +476 -0
- package/dist/src/formats/json/obographs.js.map +1 -0
- package/dist/src/formats/obo/importer.d.ts +90 -0
- package/dist/src/formats/obo/importer.d.ts.map +1 -0
- package/dist/src/formats/obo/importer.js +1248 -0
- package/dist/src/formats/obo/importer.js.map +1 -0
- package/dist/src/formats/obo/index.d.ts +7 -0
- package/dist/src/formats/obo/index.d.ts.map +1 -0
- package/dist/src/formats/obo/index.js +7 -0
- package/dist/src/formats/obo/index.js.map +1 -0
- package/dist/src/formats/obo/syntax.d.ts +121 -0
- package/dist/src/formats/obo/syntax.d.ts.map +1 -0
- package/dist/src/formats/obo/syntax.js +424 -0
- package/dist/src/formats/obo/syntax.js.map +1 -0
- package/dist/src/index.d.ts +5 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/registry.d.ts +21 -3
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +32 -1
- package/dist/src/registry.js.map +1 -1
- package/dist/src/sniff.d.ts +1 -1
- package/dist/src/sniff.d.ts.map +1 -1
- package/dist/src/sniff.js +23 -3
- package/dist/src/sniff.js.map +1 -1
- package/dist/src/types.d.ts +31 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +6 -1
- package/src/common/codes.ts +58 -0
- package/src/common/input.ts +16 -0
- package/src/common/ontology.ts +169 -0
- package/src/common/options.ts +78 -2
- package/src/formats/json/dialect.ts +37 -7
- package/src/formats/json/importer.ts +206 -28
- package/src/formats/json/obographs.ts +563 -0
- package/src/formats/obo/importer.ts +1695 -0
- package/src/formats/obo/index.ts +7 -0
- package/src/formats/obo/syntax.ts +466 -0
- package/src/index.ts +6 -0
- package/src/registry.ts +38 -3
- package/src/sniff.ts +35 -5
- package/src/types.ts +40 -1
- package/dist/chunks/importer-C7mnGdr_.js.map +0 -1
- 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/
|
|
2
|
-
import {
|
|
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-
|
|
8
|
-
import { D as D2, a as a10 } from "./chunks/importer-
|
|
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-
|
|
14
|
-
import { G as G2, a as a11 } from "./chunks/importer-
|
|
15
|
-
import { s as sniffJsonDialect, e as jsonImporter, c as jsonExporter } from "./chunks/importer-
|
|
16
|
-
import { J as J2, a as a12, b as b2, d as d2, j as j2 } from "./chunks/importer-
|
|
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 {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
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((
|
|
64
|
-
const mimeMatch = mime !== null && importer.mimeTypes.some((
|
|
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((
|
|
89
|
-
return candidates.map((
|
|
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
|
-
|
|
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
|
|
180
|
-
const
|
|
181
|
-
while (
|
|
182
|
-
const ch = text[
|
|
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,
|
|
201
|
+
const end = scanString(text, i4 + 1);
|
|
185
202
|
if (end < 0) {
|
|
186
203
|
break;
|
|
187
204
|
}
|
|
188
|
-
const literal = text.slice(
|
|
189
|
-
|
|
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
|
-
|
|
249
|
+
i4++;
|
|
233
250
|
}
|
|
234
251
|
return found;
|
|
235
252
|
}
|
|
236
253
|
function scanString(text, from) {
|
|
237
|
-
let
|
|
238
|
-
while (
|
|
239
|
-
const ch = text[
|
|
254
|
+
let i4 = from;
|
|
255
|
+
while (i4 < text.length) {
|
|
256
|
+
const ch = text[i4];
|
|
240
257
|
if (ch === "\\") {
|
|
241
|
-
|
|
258
|
+
i4 += 2;
|
|
242
259
|
continue;
|
|
243
260
|
}
|
|
244
261
|
if (ch === '"') {
|
|
245
|
-
return
|
|
262
|
+
return i4;
|
|
246
263
|
}
|
|
247
|
-
|
|
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,
|
|
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((
|
|
624
|
+
if (chunks.every((c4) => c4 instanceof Uint8Array)) {
|
|
588
625
|
const total = Math.min(
|
|
589
626
|
bytes,
|
|
590
|
-
chunks.reduce((sum,
|
|
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
|
-
|
|
677
|
-
b as
|
|
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
|
-
|
|
680
|
-
|
|
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
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
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
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
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
|
-
|
|
698
|
-
|
|
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
|
-
|
|
755
|
+
v as ID_MERGED_CODE,
|
|
710
756
|
ID_SPACE_COLUMN,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
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
|
-
|
|
724
|
-
|
|
769
|
+
L2 as LOSS,
|
|
770
|
+
L as LineReader,
|
|
725
771
|
M as MISSING_ENDPOINT_CODE,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
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
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
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
|
-
|
|
787
|
+
W as PAIR_COLUMN,
|
|
741
788
|
P2 as PAJEK_ISSUE,
|
|
742
789
|
a13 as PAJEK_LOSS,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
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
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
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
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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
|
-
|
|
765
|
-
|
|
766
|
-
|
|
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
|
-
|
|
769
|
-
|
|
821
|
+
al as XML_ILLEGAL_CHAR_CODE,
|
|
822
|
+
am as XML_SYNTAX_CODE,
|
|
770
823
|
X2 as XmlSyntaxError,
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
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
|
-
|
|
779
|
-
|
|
780
|
-
|
|
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
|
-
|
|
785
|
-
|
|
786
|
-
|
|
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
|
-
|
|
791
|
-
|
|
845
|
+
e2 as encodeChunks,
|
|
846
|
+
f2 as explicitWeights,
|
|
792
847
|
exportGraph,
|
|
793
848
|
exportGraphToString,
|
|
794
849
|
extensionOf,
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
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
|
-
|
|
861
|
+
h3 as hasIllegalXmlChar,
|
|
807
862
|
headBytes,
|
|
808
863
|
importAllGraphs,
|
|
809
864
|
importGraph,
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
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
|
-
|
|
877
|
+
listGraphs,
|
|
878
|
+
o2 as mangleNmtoken,
|
|
823
879
|
neo4jExporter,
|
|
824
880
|
neo4jImporter,
|
|
825
881
|
normalizeMimeType,
|
|
826
|
-
|
|
882
|
+
oboImporter,
|
|
883
|
+
ay as pairFolding,
|
|
827
884
|
pajekExporter,
|
|
828
885
|
pajekImporter,
|
|
829
|
-
|
|
830
|
-
|
|
886
|
+
p3 as parseTextCell,
|
|
887
|
+
p2 as parseWeightText,
|
|
831
888
|
rankFormats,
|
|
832
|
-
|
|
889
|
+
az as readText,
|
|
833
890
|
registry,
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
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
|
-
|
|
845
|
-
|
|
901
|
+
t2 as toReadableStream,
|
|
902
|
+
t3 as tokenizeXml,
|
|
846
903
|
x2 as xmlIllegalTextNotes
|
|
847
904
|
};
|
|
848
905
|
//# sourceMappingURL=graph-io.js.map
|