@graphty/graph-io 0.3.32 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{choose-BJq_vp1b.js → choose-494CpuXQ.js} +2 -2
- package/dist/chunks/{choose-BJq_vp1b.js.map → choose-494CpuXQ.js.map} +1 -1
- package/dist/chunks/{constants-Bw-6JQuC.js → constants-BBK4rsQZ.js} +2 -2
- package/dist/chunks/{constants-Bw-6JQuC.js.map → constants-BBK4rsQZ.js.map} +1 -1
- package/dist/chunks/{escape-CnTfa_y8.js → escape-wVIEtLv6.js} +6 -6
- package/dist/chunks/escape-wVIEtLv6.js.map +1 -0
- package/dist/chunks/{export-ZucVKiU4.js → export-Cbt4h_0n.js} +8 -8
- package/dist/chunks/export-Cbt4h_0n.js.map +1 -0
- package/dist/chunks/{exporter-BOLJIzvA.js → exporter-CkPnJCXU.js} +36 -12
- package/dist/chunks/exporter-CkPnJCXU.js.map +1 -0
- package/dist/chunks/{exporter-hc2ZuqVe.js → exporter-CqnmKk-f.js} +4 -4
- package/dist/chunks/{exporter-hc2ZuqVe.js.map → exporter-CqnmKk-f.js.map} +1 -1
- package/dist/chunks/{exporter-DgDjwLOm.js → exporter-DMxRy-0l.js} +4 -4
- package/dist/chunks/{exporter-DgDjwLOm.js.map → exporter-DMxRy-0l.js.map} +1 -1
- package/dist/chunks/{exporter-DRNkA2k0.js → exporter-LZTIAzkS.js} +19 -7
- package/dist/chunks/{exporter-DRNkA2k0.js.map → exporter-LZTIAzkS.js.map} +1 -1
- package/dist/chunks/{importer-DsNj_zoG.js → importer-BTSvNJUB.js} +4 -4
- package/dist/chunks/importer-BTSvNJUB.js.map +1 -0
- package/dist/chunks/{importer-ByCd2CAY.js → importer-BTbjwN10.js} +5 -5
- package/dist/chunks/{importer-ByCd2CAY.js.map → importer-BTbjwN10.js.map} +1 -1
- package/dist/chunks/{importer-WPz-AUz8.js → importer-C1VMuEBQ.js} +8 -8
- package/dist/chunks/importer-C1VMuEBQ.js.map +1 -0
- package/dist/chunks/{importer-BAlFKpHP.js → importer-CSmH218L.js} +6 -6
- package/dist/chunks/{importer-BAlFKpHP.js.map → importer-CSmH218L.js.map} +1 -1
- package/dist/chunks/{importer-D7xB8oVV.js → importer-DMgcD1wI.js} +5 -5
- package/dist/chunks/{importer-D7xB8oVV.js.map → importer-DMgcD1wI.js.map} +1 -1
- package/dist/chunks/{importer-rjFCmKfx.js → importer-DtKPzhVp.js} +5 -5
- package/dist/chunks/importer-DtKPzhVp.js.map +1 -0
- package/dist/chunks/{importer-CaLIrkjL.js → importer-DvPvd4Yy.js} +22 -15
- package/dist/chunks/importer-DvPvd4Yy.js.map +1 -0
- package/dist/chunks/{json-elements-CkC87El2.js → json-elements-CxJF-Szz.js} +6 -6
- package/dist/chunks/json-elements-CxJF-Szz.js.map +1 -0
- package/dist/chunks/{ontology-export-BRErBO6J.js → ontology-export-p1PsPenq.js} +2 -2
- package/dist/chunks/{ontology-export-BRErBO6J.js.map → ontology-export-p1PsPenq.js.map} +1 -1
- package/dist/chunks/{records-DwfSjH8c.js → records-BrfHycmg.js} +2 -2
- package/dist/chunks/{records-DwfSjH8c.js.map → records-BrfHycmg.js.map} +1 -1
- package/dist/chunks/{text-BEEWD-G1.js → text-BD-TzLNm.js} +4 -4
- package/dist/chunks/text-BD-TzLNm.js.map +1 -0
- package/dist/csv.js +4 -4
- package/dist/cx.js +1 -1
- package/dist/cx2.js +2 -2
- package/dist/cys.js +1 -1
- package/dist/dot.js +1 -1
- package/dist/gexf.js +2 -2
- package/dist/gml.js +10 -10
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +26 -26
- package/dist/graphml.js +2 -2
- package/dist/json.js +1 -1
- package/dist/neo4j.js +3 -3
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/src/common/attributes.js +1 -1
- package/dist/src/common/attributes.js.map +1 -1
- package/dist/src/common/declared-types.js +2 -2
- package/dist/src/common/declared-types.js.map +1 -1
- package/dist/src/common/escape.js +2 -2
- package/dist/src/common/escape.js.map +1 -1
- package/dist/src/common/ids.js +1 -1
- package/dist/src/common/ids.js.map +1 -1
- package/dist/src/common/json-elements.d.ts.map +1 -1
- package/dist/src/common/json-elements.js +3 -3
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/common/temporal.js +3 -3
- package/dist/src/common/temporal.js.map +1 -1
- package/dist/src/common/text.js +2 -2
- package/dist/src/common/text.js.map +1 -1
- package/dist/src/common/xml.js +2 -2
- package/dist/src/common/xml.js.map +1 -1
- package/dist/src/formats/cx/exporter.js +1 -1
- package/dist/src/formats/cx/exporter.js.map +1 -1
- package/dist/src/formats/cx/importer.js +3 -3
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx2/importer.js +1 -1
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/gml/exporter.js +1 -1
- package/dist/src/formats/gml/exporter.js.map +1 -1
- package/dist/src/formats/gml/importer.js +2 -2
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/syntax.js +4 -4
- package/dist/src/formats/gml/syntax.js.map +1 -1
- package/dist/src/formats/graphml/importer.js +1 -1
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/json/exporter.d.ts +2 -0
- package/dist/src/formats/json/exporter.d.ts.map +1 -1
- package/dist/src/formats/json/exporter.js +3 -1
- package/dist/src/formats/json/exporter.js.map +1 -1
- package/dist/src/formats/json/obographs-export.d.ts +2 -0
- package/dist/src/formats/json/obographs-export.d.ts.map +1 -1
- package/dist/src/formats/json/obographs-export.js +5 -0
- package/dist/src/formats/json/obographs-export.js.map +1 -1
- package/dist/src/formats/obo/exporter.d.ts +2 -0
- package/dist/src/formats/obo/exporter.d.ts.map +1 -1
- package/dist/src/formats/obo/exporter.js +5 -0
- package/dist/src/formats/obo/exporter.js.map +1 -1
- package/dist/src/formats/obo/syntax.d.ts.map +1 -1
- package/dist/src/formats/obo/syntax.js +39 -10
- package/dist/src/formats/obo/syntax.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +2 -4
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.js +2 -2
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +14 -4
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/values.js +1 -1
- package/dist/src/formats/xgmml/values.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/package.json +2 -2
- package/src/common/attributes.ts +1 -1
- package/src/common/declared-types.ts +2 -2
- package/src/common/escape.ts +2 -2
- package/src/common/ids.ts +1 -1
- package/src/common/json-elements.ts +3 -3
- package/src/common/temporal.ts +3 -3
- package/src/common/text.ts +2 -2
- package/src/common/xml.ts +2 -2
- package/src/formats/cx/exporter.ts +1 -1
- package/src/formats/cx/importer.ts +3 -3
- package/src/formats/cx2/importer.ts +1 -1
- package/src/formats/gml/exporter.ts +1 -1
- package/src/formats/gml/importer.ts +2 -2
- package/src/formats/gml/syntax.ts +4 -4
- package/src/formats/graphml/importer.ts +1 -1
- package/src/formats/json/exporter.ts +3 -1
- package/src/formats/json/obographs-export.ts +10 -0
- package/src/formats/obo/exporter.ts +10 -0
- package/src/formats/obo/syntax.ts +42 -9
- package/src/formats/pajek/exporter.ts +2 -4
- package/src/formats/pajek/importer.ts +2 -2
- package/src/formats/pajek/syntax.ts +14 -5
- package/src/formats/xgmml/values.ts +1 -1
- package/dist/chunks/escape-CnTfa_y8.js.map +0 -1
- package/dist/chunks/export-ZucVKiU4.js.map +0 -1
- package/dist/chunks/exporter-BOLJIzvA.js.map +0 -1
- package/dist/chunks/importer-CaLIrkjL.js.map +0 -1
- package/dist/chunks/importer-DsNj_zoG.js.map +0 -1
- package/dist/chunks/importer-WPz-AUz8.js.map +0 -1
- package/dist/chunks/importer-rjFCmKfx.js.map +0 -1
- package/dist/chunks/json-elements-CkC87El2.js.map +0 -1
- package/dist/chunks/text-BEEWD-G1.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphFormatError, INVALID_INDEX } from "@graphty/graph-format";
|
|
2
2
|
import { c as childrenCsr } from "./children-CL3Cy0ez.js";
|
|
3
|
-
import { s as stringify, f as aspectBlock, d as directionNotes, p as planNodeIds, b as planEdgeIds, O as ORIGINAL_ID_ATTRIBUTE, h as nextNodeId, i as noteList, g as declaredType, z as zAsOption } from "./importer-
|
|
4
|
-
import { c as capabilities, L as LOSS, r as resolveExportOptions, p as pairFolding, a as checkCapabilities, e as explicitWeights, b as plural, ad as TOO_LARGE_CODE, S as SINK_OPTION_CODE, O as OPTION_IGNORED_CODE, D as DIRECTION_FORCED_CODE, d as DIRECTION_REFUSED_CODE, R as ROLE_TAKEN_CODE, C as COLUMN_RENAMED_CODE, N as NO_GRAPH_CODE, ae as AMBIGUOUS_GRAPH_NAME_CODE, af as GRAPH_NOT_FOUND_CODE, l as MULTIPLE_GRAPHS_CODE, I as ID_MERGED_CODE, P as PRECISION_CODE, J as ID_TEXT_TYPE_CODE, a2 as JSON_NONSTANDARD_NUMBER_CODE, ag as SINGLE_OBJECT_ASPECT_CODE, W as MULTI_ASPECT_FRAGMENT_CODE, g as UNKNOWN_ELEMENT_CODE, m as DUPLICATE_EDGE_ID_CODE, n as DUPLICATE_NODE_CODE, s as MISSING_ENDPOINT_CODE, t as MISSING_ID_CODE, ah as STYLES_NOT_IMPORTED_CODE, ai as PARENT_CYCLE_CODE, q as UNKNOWN_PARENT_CODE, o as DUPLICATE_ATTRIBUTE_CODE, i as DANGLING_REFERENCE_CODE, U as UNKNOWN_ATTR_TYPE_CODE, aj as WIDENED_CODE, a3 as BAD_VALUE_CODE, j as COUNT_MISMATCH_CODE, Y as ASPECT_ORDER_CODE, V as BAD_ASPECT_BLOCK_CODE, _ as STATUS_WARNING_CODE, Z as STATUS_FAILED_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, y as INVALID_ENCODING_CODE, z as INVALID_UTF8_CODE, ak as SYNTAX_CODE, E as EMPTY_INPUT_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, al as resolveImportOptions, a8 as ImportReportBuilder, a4 as textChunks, am as throwIfAborted, an as reportUnusedOptions, ao as reportSinkOptions, a7 as chooseGraph, ap as graphChosen, aq as DirectionResolver, ar as IdCoercer, $ as agree, a1 as declareResolved, a0 as uniqueColumnName, as as weightFromValue } from "./export-
|
|
5
|
-
import { i as isRecord, P as POSITION_COLUMN, h as headText, s as scanAspects, r as reportTooDeep, a as reportSharedBlock, C as CxStructure, J as JsonScanError, E as ExactInteger, c as cxId, p as plainJson, f as flipY, z as zDecl, b as positionDecl, d as declareFresh, e as inexactLiteral, k as keptPrecision } from "./json-elements-
|
|
3
|
+
import { s as stringify, f as aspectBlock, d as directionNotes, p as planNodeIds, b as planEdgeIds, O as ORIGINAL_ID_ATTRIBUTE, h as nextNodeId, i as noteList, g as declaredType, z as zAsOption } from "./importer-BTSvNJUB.js";
|
|
4
|
+
import { c as capabilities, L as LOSS, r as resolveExportOptions, p as pairFolding, a as checkCapabilities, e as explicitWeights, b as plural, ad as TOO_LARGE_CODE, S as SINK_OPTION_CODE, O as OPTION_IGNORED_CODE, D as DIRECTION_FORCED_CODE, d as DIRECTION_REFUSED_CODE, R as ROLE_TAKEN_CODE, C as COLUMN_RENAMED_CODE, N as NO_GRAPH_CODE, ae as AMBIGUOUS_GRAPH_NAME_CODE, af as GRAPH_NOT_FOUND_CODE, l as MULTIPLE_GRAPHS_CODE, I as ID_MERGED_CODE, P as PRECISION_CODE, J as ID_TEXT_TYPE_CODE, a2 as JSON_NONSTANDARD_NUMBER_CODE, ag as SINGLE_OBJECT_ASPECT_CODE, W as MULTI_ASPECT_FRAGMENT_CODE, g as UNKNOWN_ELEMENT_CODE, m as DUPLICATE_EDGE_ID_CODE, n as DUPLICATE_NODE_CODE, s as MISSING_ENDPOINT_CODE, t as MISSING_ID_CODE, ah as STYLES_NOT_IMPORTED_CODE, ai as PARENT_CYCLE_CODE, q as UNKNOWN_PARENT_CODE, o as DUPLICATE_ATTRIBUTE_CODE, i as DANGLING_REFERENCE_CODE, U as UNKNOWN_ATTR_TYPE_CODE, aj as WIDENED_CODE, a3 as BAD_VALUE_CODE, j as COUNT_MISMATCH_CODE, Y as ASPECT_ORDER_CODE, V as BAD_ASPECT_BLOCK_CODE, _ as STATUS_WARNING_CODE, Z as STATUS_FAILED_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, y as INVALID_ENCODING_CODE, z as INVALID_UTF8_CODE, ak as SYNTAX_CODE, E as EMPTY_INPUT_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, al as resolveImportOptions, a8 as ImportReportBuilder, a4 as textChunks, am as throwIfAborted, an as reportUnusedOptions, ao as reportSinkOptions, a7 as chooseGraph, ap as graphChosen, aq as DirectionResolver, ar as IdCoercer, $ as agree, a1 as declareResolved, a0 as uniqueColumnName, as as weightFromValue } from "./export-Cbt4h_0n.js";
|
|
5
|
+
import { i as isRecord, P as POSITION_COLUMN, h as headText, s as scanAspects, r as reportTooDeep, a as reportSharedBlock, C as CxStructure, J as JsonScanError, E as ExactInteger, c as cxId, p as plainJson, f as flipY, z as zDecl, b as positionDecl, d as declareFresh, e as inexactLiteral, k as keptPrecision } from "./json-elements-CxJF-Szz.js";
|
|
6
6
|
import { j as joinText, e as encodeChunks } from "./writer-DxjgHwSe.js";
|
|
7
7
|
const CX_FORMAT$1 = "cx";
|
|
8
8
|
const CX_LOSS = Object.freeze({
|
|
@@ -293,7 +293,7 @@ function plan(snapshot, common) {
|
|
|
293
293
|
if (renamedName !== null) {
|
|
294
294
|
note(
|
|
295
295
|
LOSS.COLUMN_NAME_CHANGED,
|
|
296
|
-
`node column "name" is written as the attribute "name#2"
|
|
296
|
+
`node column "name" is written as the attribute "name#2" and reads back as "name#2", because the label column "${label?.meta.name ?? ""}" is written as n and takes the name "name"`,
|
|
297
297
|
"name",
|
|
298
298
|
renamedName.length - renamedName.nullCount
|
|
299
299
|
);
|
|
@@ -1222,8 +1222,8 @@ const BAD = /* @__PURE__ */ Symbol("bad");
|
|
|
1222
1222
|
const UNSET = /* @__PURE__ */ Symbol("unset");
|
|
1223
1223
|
const I32_MIN = -2147483648;
|
|
1224
1224
|
const I32_MAX = 2147483647;
|
|
1225
|
-
const INTEGER_TEXT =
|
|
1226
|
-
const DECIMAL_TEXT = /^-?(
|
|
1225
|
+
const INTEGER_TEXT = /^-?\d+$/;
|
|
1226
|
+
const DECIMAL_TEXT = /^-?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/;
|
|
1227
1227
|
function isNullText(text) {
|
|
1228
1228
|
return text === "" || text.toLowerCase() === "null";
|
|
1229
1229
|
}
|
|
@@ -1374,7 +1374,7 @@ function aspect(doc, name) {
|
|
|
1374
1374
|
return doc.aspects.get(name) ?? [];
|
|
1375
1375
|
}
|
|
1376
1376
|
function inexactBits(text, keys, depth = 1) {
|
|
1377
|
-
if (
|
|
1377
|
+
if (!/\d[.eE]/.test(text)) {
|
|
1378
1378
|
return 0;
|
|
1379
1379
|
}
|
|
1380
1380
|
let bits = 0;
|
|
@@ -3578,4 +3578,4 @@ export {
|
|
|
3578
3578
|
cxExporter as c,
|
|
3579
3579
|
cxImporter as d
|
|
3580
3580
|
};
|
|
3581
|
-
//# sourceMappingURL=importer-
|
|
3581
|
+
//# sourceMappingURL=importer-C1VMuEBQ.js.map
|