@graphty/graph-io 0.3.29 → 0.3.31
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-DT5da6OC.js → choose-BJq_vp1b.js} +2 -2
- package/dist/chunks/{choose-DT5da6OC.js.map → choose-BJq_vp1b.js.map} +1 -1
- package/dist/chunks/{constants-DowRD9ai.js → constants-Bw-6JQuC.js} +2 -2
- package/dist/chunks/{constants-DowRD9ai.js.map → constants-Bw-6JQuC.js.map} +1 -1
- package/dist/chunks/{escape-DQC5HWqF.js → escape-CnTfa_y8.js} +2 -2
- package/dist/chunks/{escape-DQC5HWqF.js.map → escape-CnTfa_y8.js.map} +1 -1
- package/dist/chunks/{export-CVi12U7J.js → export-ZucVKiU4.js} +97 -91
- package/dist/chunks/{export-CVi12U7J.js.map → export-ZucVKiU4.js.map} +1 -1
- package/dist/chunks/{exporter-JubAlNWi.js → exporter-BOLJIzvA.js} +5 -5
- package/dist/chunks/exporter-BOLJIzvA.js.map +1 -0
- package/dist/chunks/{exporter-C3Pa2PSd.js → exporter-DRNkA2k0.js} +9 -10
- package/dist/chunks/exporter-DRNkA2k0.js.map +1 -0
- package/dist/chunks/{exporter-Cy_1da4c.js → exporter-DgDjwLOm.js} +7 -8
- package/dist/chunks/exporter-DgDjwLOm.js.map +1 -0
- package/dist/chunks/{exporter-CgsO2nSl.js → exporter-hc2ZuqVe.js} +8 -7
- package/dist/chunks/{exporter-CgsO2nSl.js.map → exporter-hc2ZuqVe.js.map} +1 -1
- package/dist/chunks/{importer-Dej72hIF.js → importer-BAlFKpHP.js} +10 -9
- package/dist/chunks/importer-BAlFKpHP.js.map +1 -0
- package/dist/chunks/{importer-CDXlxXlS.js → importer-ByCd2CAY.js} +11 -20
- package/dist/chunks/importer-ByCd2CAY.js.map +1 -0
- package/dist/chunks/{importer-lLH9gQF_.js → importer-CaLIrkjL.js} +10 -19
- package/dist/chunks/importer-CaLIrkjL.js.map +1 -0
- package/dist/chunks/{importer-q-R-Q98w.js → importer-D7xB8oVV.js} +4 -4
- package/dist/chunks/{importer-q-R-Q98w.js.map → importer-D7xB8oVV.js.map} +1 -1
- package/dist/chunks/{importer-DLz2Vb4q.js → importer-DsNj_zoG.js} +5 -5
- package/dist/chunks/importer-DsNj_zoG.js.map +1 -0
- package/dist/chunks/{importer-BA_hZKo7.js → importer-WPz-AUz8.js} +6 -6
- package/dist/chunks/importer-WPz-AUz8.js.map +1 -0
- package/dist/chunks/{importer-DVxzzibh.js → importer-rjFCmKfx.js} +5 -5
- package/dist/chunks/{importer-DVxzzibh.js.map → importer-rjFCmKfx.js.map} +1 -1
- package/dist/chunks/{json-elements-1IUzkRNy.js → json-elements-CkC87El2.js} +12 -16
- package/dist/chunks/{json-elements-1IUzkRNy.js.map → json-elements-CkC87El2.js.map} +1 -1
- package/dist/chunks/{ontology-export-b0GLNIj-.js → ontology-export-BRErBO6J.js} +11 -9
- package/dist/chunks/ontology-export-BRErBO6J.js.map +1 -0
- package/dist/chunks/{records-CdyqwXeY.js → records-DwfSjH8c.js} +2 -2
- package/dist/chunks/{records-CdyqwXeY.js.map → records-DwfSjH8c.js.map} +1 -1
- package/dist/chunks/{text-CDgjbkLC.js → text-BEEWD-G1.js} +2 -2
- package/dist/chunks/{text-CDgjbkLC.js.map → text-BEEWD-G1.js.map} +1 -1
- 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 +9 -8
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +3 -3
- package/dist/graph-io.js +69 -69
- 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/export.d.ts +6 -1
- package/dist/src/common/export.d.ts.map +1 -1
- package/dist/src/common/export.js +18 -2
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/format.d.ts +0 -8
- package/dist/src/common/format.d.ts.map +1 -1
- package/dist/src/common/format.js +0 -10
- package/dist/src/common/format.js.map +1 -1
- package/dist/src/common/json-elements.d.ts +1 -9
- package/dist/src/common/json-elements.d.ts.map +1 -1
- package/dist/src/common/json-elements.js +2 -12
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/common/ontology-export.d.ts.map +1 -1
- package/dist/src/common/ontology-export.js +11 -15
- package/dist/src/common/ontology-export.js.map +1 -1
- package/dist/src/formats/cx/importer.d.ts.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/exporter.d.ts.map +1 -1
- package/dist/src/formats/cx2/exporter.js +2 -4
- package/dist/src/formats/cx2/exporter.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +3 -3
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cys/exporter.d.ts.map +1 -1
- package/dist/src/formats/cys/exporter.js +4 -3
- package/dist/src/formats/cys/exporter.js.map +1 -1
- package/dist/src/formats/dot/exporter.js +1 -1
- package/dist/src/formats/dot/importer.d.ts +2 -2
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +7 -11
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/gexf/exporter.d.ts +2 -2
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +7 -5
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/schema.js +1 -1
- package/dist/src/formats/json/exporter.js +1 -1
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +4 -6
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/obo/exporter.d.ts +2 -2
- package/dist/src/formats/obo/exporter.js +2 -2
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +5 -4
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +3 -7
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts +1 -1
- package/dist/src/formats/pajek/syntax.js +1 -1
- package/dist/src/formats/xgmml/constants.d.ts +1 -1
- package/dist/src/formats/xgmml/constants.js +1 -1
- package/dist/src/formats/xgmml/emit.js +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +4 -3
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/package.json +2 -2
- package/src/common/export.ts +25 -3
- package/src/common/format.ts +0 -11
- package/src/common/json-elements.ts +2 -13
- package/src/common/ontology-export.ts +12 -17
- package/src/formats/cx/importer.ts +2 -3
- package/src/formats/cx2/exporter.ts +2 -4
- package/src/formats/cx2/importer.ts +2 -3
- package/src/formats/cys/exporter.ts +4 -3
- package/src/formats/dot/exporter.ts +1 -1
- package/src/formats/dot/importer.ts +7 -17
- package/src/formats/gexf/exporter.ts +7 -5
- package/src/formats/gexf/schema.ts +1 -1
- package/src/formats/json/exporter.ts +1 -1
- package/src/formats/json/importer.ts +4 -7
- package/src/formats/obo/exporter.ts +2 -2
- package/src/formats/pajek/exporter.ts +5 -4
- package/src/formats/pajek/importer.ts +3 -13
- package/src/formats/pajek/syntax.ts +1 -1
- package/src/formats/xgmml/constants.ts +1 -1
- package/src/formats/xgmml/emit.ts +1 -1
- package/src/formats/xgmml/exporter.ts +4 -3
- package/dist/chunks/exporter-C3Pa2PSd.js.map +0 -1
- package/dist/chunks/exporter-Cy_1da4c.js.map +0 -1
- package/dist/chunks/exporter-JubAlNWi.js.map +0 -1
- package/dist/chunks/importer-BA_hZKo7.js.map +0 -1
- package/dist/chunks/importer-CDXlxXlS.js.map +0 -1
- package/dist/chunks/importer-DLz2Vb4q.js.map +0 -1
- package/dist/chunks/importer-Dej72hIF.js.map +0 -1
- package/dist/chunks/importer-lLH9gQF_.js.map +0 -1
- package/dist/chunks/ontology-export-b0GLNIj-.js.map +0 -1
|
@@ -3257,9 +3257,6 @@ function formatF32(value) {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
return String(value);
|
|
3259
3259
|
}
|
|
3260
|
-
function survivesF32(value) {
|
|
3261
|
-
return Number(formatF32(Math.fround(value))) === value;
|
|
3262
|
-
}
|
|
3263
3260
|
function formatF64(value) {
|
|
3264
3261
|
return Object.is(value, -0) ? "-0" : String(value);
|
|
3265
3262
|
}
|
|
@@ -3785,6 +3782,15 @@ function charsetText(charset, n) {
|
|
|
3785
3782
|
return `cannot be written as ${charset} ids`;
|
|
3786
3783
|
}
|
|
3787
3784
|
}
|
|
3785
|
+
function roleNamesOf(domain, extras) {
|
|
3786
|
+
if (domain === "node") {
|
|
3787
|
+
return extras.nodeRoleNames ?? extras.roleNames;
|
|
3788
|
+
}
|
|
3789
|
+
if (domain === "edge") {
|
|
3790
|
+
return extras.edgeRoleNames ?? extras.roleNames;
|
|
3791
|
+
}
|
|
3792
|
+
return extras.roleNames;
|
|
3793
|
+
}
|
|
3788
3794
|
function writesAttributes(domain, extras) {
|
|
3789
3795
|
if (domain === "node") {
|
|
3790
3796
|
return extras.nodeAttributes ?? extras.attributes;
|
|
@@ -3819,8 +3825,9 @@ function checkColumns(table, domain, caps, extras, note) {
|
|
|
3819
3825
|
continue;
|
|
3820
3826
|
}
|
|
3821
3827
|
const label = `${domain} column "${name}"`;
|
|
3822
|
-
|
|
3823
|
-
|
|
3828
|
+
const roleNames = roleNamesOf(domain, extras);
|
|
3829
|
+
if (role !== null && roleNames !== void 0) {
|
|
3830
|
+
const fixed = roleNames[role];
|
|
3824
3831
|
if (fixed !== void 0 && fixed !== name) {
|
|
3825
3832
|
note(
|
|
3826
3833
|
LOSS.COLUMN_NAME_CHANGED,
|
|
@@ -4195,7 +4202,7 @@ export {
|
|
|
4195
4202
|
STATUS_FAILED_CODE as Z,
|
|
4196
4203
|
STATUS_WARNING_CODE as _,
|
|
4197
4204
|
checkCapabilities as a,
|
|
4198
|
-
|
|
4205
|
+
COLUMN_RENAMED_LOSS_CODE as a$,
|
|
4199
4206
|
uniqueColumnName as a0,
|
|
4200
4207
|
declareResolved as a1,
|
|
4201
4208
|
JSON_NONSTANDARD_NUMBER_CODE as a2,
|
|
@@ -4215,24 +4222,24 @@ export {
|
|
|
4215
4222
|
formatInteger as aG,
|
|
4216
4223
|
canonicalId as aH,
|
|
4217
4224
|
coerceIdText as aI,
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4225
|
+
isWeightField as aJ,
|
|
4226
|
+
parseWeightText as aK,
|
|
4227
|
+
isAbortError as aL,
|
|
4228
|
+
BAD_LINE_CODE as aM,
|
|
4229
|
+
messageOf as aN,
|
|
4230
|
+
describe as aO,
|
|
4231
|
+
UNKNOWN_OPTION_CODE as aP,
|
|
4232
|
+
normalizeInput as aQ,
|
|
4233
|
+
foreignKind as aR,
|
|
4234
|
+
ImportError as aS,
|
|
4235
|
+
FETCH_CODE as aT,
|
|
4236
|
+
EDGES_MERGED_CODE as aU,
|
|
4237
|
+
SELF_LOOPS_DROPPED_CODE as aV,
|
|
4238
|
+
WEIGHT_NOT_FOUND_CODE as aW,
|
|
4239
|
+
lockReader as aX,
|
|
4240
|
+
abortable as aY,
|
|
4241
|
+
BAD_OPTIONS_CODE as aZ,
|
|
4242
|
+
COLUMN_DROPPED_CODE as a_,
|
|
4236
4243
|
formatF32 as aa,
|
|
4237
4244
|
formatF64 as ab,
|
|
4238
4245
|
DictHeuristic as ac,
|
|
@@ -4260,73 +4267,72 @@ export {
|
|
|
4260
4267
|
RENAMED_CODE as ay,
|
|
4261
4268
|
LineReader as az,
|
|
4262
4269
|
plural as b,
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4270
|
+
readBytes as b$,
|
|
4271
|
+
CONTROL_CHARACTER_CODE as b0,
|
|
4272
|
+
DEFAULT_ERROR_LIMIT as b1,
|
|
4273
|
+
DIRECTED_COLUMN as b2,
|
|
4274
|
+
DIRECTION_DROPPED_CODE as b3,
|
|
4275
|
+
DUPLICATE_EDGE_CODE as b4,
|
|
4276
|
+
EMPTY_COLUMN_DROPPED_CODE as b5,
|
|
4277
|
+
EQUATION_AS_TEXT_CODE as b6,
|
|
4278
|
+
FOREIGN_FORMAT_CODE as b7,
|
|
4279
|
+
ID_TEXT_COLLISION_CODE as b8,
|
|
4280
|
+
INTEGRAL_F64_CODE as b9,
|
|
4281
|
+
mangleNmtoken as bA,
|
|
4282
|
+
readText as bB,
|
|
4283
|
+
refusedSave as bC,
|
|
4284
|
+
countMixedEdges as bD,
|
|
4285
|
+
canonicalEncoding as bE,
|
|
4286
|
+
TIME_TEXT_ROLE as bF,
|
|
4287
|
+
TIME_TEXT_SUFFIX as bG,
|
|
4288
|
+
declareAttribute as bH,
|
|
4289
|
+
overflowsToInfinity as bI,
|
|
4290
|
+
parseDeclaredTemporal as bJ,
|
|
4291
|
+
parseDeclaredValue as bK,
|
|
4292
|
+
losesPrecision as bL,
|
|
4293
|
+
parseTimeText as bM,
|
|
4294
|
+
splitListText as bN,
|
|
4295
|
+
timeTextCompanion as bO,
|
|
4296
|
+
parseDecimalText as bP,
|
|
4297
|
+
formatTimeValue as bQ,
|
|
4298
|
+
mapDeclaredType as bR,
|
|
4299
|
+
joinListText as bS,
|
|
4300
|
+
formatTemporal as bT,
|
|
4301
|
+
DICT_SAMPLE_ROWS as bU,
|
|
4302
|
+
reportWeightPrecision as bV,
|
|
4303
|
+
takenIn as bW,
|
|
4304
|
+
declareOn as bX,
|
|
4305
|
+
parseTemporal as bY,
|
|
4306
|
+
withArticle as bZ,
|
|
4307
|
+
otherFormatDialect as b_,
|
|
4308
|
+
ISSUES_SUPPRESSED_CODE as ba,
|
|
4309
|
+
MUTUAL_COLUMN as bb,
|
|
4310
|
+
MUTUAL_EXPANDED_CODE as bc,
|
|
4311
|
+
NONFINITE_AS_NULL_CODE as bd,
|
|
4312
|
+
NO_CAPABILITIES as be,
|
|
4313
|
+
OPTIONS_GAINED_CODE as bf,
|
|
4314
|
+
PAIR_COLUMN as bg,
|
|
4315
|
+
PARSE_ERROR_CODE as bh,
|
|
4316
|
+
SELF_LOOP_CODE as bi,
|
|
4317
|
+
STORAGE_CLASS_CODE as bj,
|
|
4318
|
+
TEMPORAL_DROPPED_CODE as bk,
|
|
4319
|
+
TEMPORAL_TEXT_DROPPED_CODE as bl,
|
|
4320
|
+
TEXT_INFERRED_CODE as bm,
|
|
4321
|
+
UNKNOWN_TYPE_CODE as bn,
|
|
4322
|
+
WEIGHTS_DROPPED_CODE as bo,
|
|
4323
|
+
WEIGHT_KEY_CLASH_CODE as bp,
|
|
4324
|
+
coerceId as bq,
|
|
4325
|
+
declareCompanion as br,
|
|
4326
|
+
decodeEntryName as bs,
|
|
4327
|
+
edgeWeights as bt,
|
|
4328
|
+
forDecodedText as bu,
|
|
4329
|
+
formatGmlReal as bv,
|
|
4330
|
+
inputLength as bw,
|
|
4331
|
+
isCanonicalIntegerText as bx,
|
|
4332
|
+
isImportInput as by,
|
|
4333
|
+
isNmtoken as bz,
|
|
4327
4334
|
capabilities as c,
|
|
4328
|
-
|
|
4329
|
-
elementCount as c1,
|
|
4335
|
+
elementCount as c0,
|
|
4330
4336
|
DIRECTION_REFUSED_CODE as d,
|
|
4331
4337
|
explicitWeights as e,
|
|
4332
4338
|
STRAY_TEXT_CODE as f,
|
|
@@ -4351,4 +4357,4 @@ export {
|
|
|
4351
4357
|
INVALID_ENCODING_CODE as y,
|
|
4352
4358
|
INVALID_UTF8_CODE as z
|
|
4353
4359
|
};
|
|
4354
|
-
//# sourceMappingURL=export-
|
|
4360
|
+
//# sourceMappingURL=export-ZucVKiU4.js.map
|