@graphty/graph-io 0.3.25 → 0.3.27
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/README.md +49 -414
- package/dist/chunks/children-CL3Cy0ez.js.map +1 -1
- package/dist/chunks/choose-DrXtu_96.js +56 -0
- package/dist/chunks/choose-DrXtu_96.js.map +1 -0
- package/dist/chunks/constants-ikG85dT8.js +231 -0
- package/dist/chunks/constants-ikG85dT8.js.map +1 -0
- package/dist/chunks/{escape-B-tkk_Cl.js → escape-D1HPTUrP.js} +390 -99
- package/dist/chunks/escape-D1HPTUrP.js.map +1 -0
- package/dist/chunks/export-CHd4tQE2.js +4333 -0
- package/dist/chunks/export-CHd4tQE2.js.map +1 -0
- package/dist/chunks/{importer-eUREhBGj.js → exporter-D23CKNqF.js} +4969 -3201
- package/dist/chunks/exporter-D23CKNqF.js.map +1 -0
- package/dist/chunks/{exporter-DIeGJXAZ.js → exporter-DfWTgrti.js} +23 -21
- package/dist/chunks/exporter-DfWTgrti.js.map +1 -0
- package/dist/chunks/exporter-DhtW6FxK.js +3465 -0
- package/dist/chunks/exporter-DhtW6FxK.js.map +1 -0
- package/dist/chunks/{exporter-BGrsWamJ.js → exporter-IHv4nkCm.js} +38 -229
- package/dist/chunks/exporter-IHv4nkCm.js.map +1 -0
- package/dist/chunks/{importer-BWY2FFc5.js → importer-B1wmPQjr.js} +255 -77
- package/dist/chunks/importer-B1wmPQjr.js.map +1 -0
- package/dist/chunks/{importer-D_e7e7LX.js → importer-B2W_58pz.js} +399 -146
- package/dist/chunks/importer-B2W_58pz.js.map +1 -0
- package/dist/chunks/importer-BSALvkui.js +2811 -0
- package/dist/chunks/importer-BSALvkui.js.map +1 -0
- package/dist/chunks/{importer-vi3bSdtw.js → importer-BVRE--Un.js} +510 -77
- package/dist/chunks/importer-BVRE--Un.js.map +1 -0
- package/dist/chunks/{importer-DET1tg6s.js → importer-CIAzt-wo.js} +1689 -312
- package/dist/chunks/importer-CIAzt-wo.js.map +1 -0
- package/dist/chunks/{importer-DIrbbnAf.js → importer-DpEW5zeG.js} +585 -226
- package/dist/chunks/importer-DpEW5zeG.js.map +1 -0
- package/dist/chunks/{importer-zGLo8Dg_.js → importer-z_FL4VMb.js} +488 -161
- package/dist/chunks/importer-z_FL4VMb.js.map +1 -0
- package/dist/chunks/json-elements-BAmNBZok.js +1225 -0
- package/dist/chunks/json-elements-BAmNBZok.js.map +1 -0
- package/dist/chunks/ontology-export-Bab4eUA8.js +357 -0
- package/dist/chunks/ontology-export-Bab4eUA8.js.map +1 -0
- package/dist/chunks/{records-dbRkxwaq.js → records-CdlvL4RO.js} +298 -114
- package/dist/chunks/records-CdlvL4RO.js.map +1 -0
- package/dist/chunks/{text-Dr0Ifpag.js → text-DzXjAiTl.js} +29 -11
- package/dist/chunks/text-DzXjAiTl.js.map +1 -0
- package/dist/chunks/{writer-C7flM-Ih.js → writer-DxjgHwSe.js} +19 -1
- package/dist/chunks/writer-DxjgHwSe.js.map +1 -0
- package/dist/csv.js +952 -262
- package/dist/csv.js.map +1 -1
- package/dist/cx.js +6 -3
- package/dist/cx2.js +2 -2
- package/dist/cys.js +6 -3
- package/dist/dot.js +1 -1
- package/dist/gexf.js +554 -122
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +344 -87
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +1105 -213
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +3 -2
- package/dist/graphml.js.map +1 -1
- package/dist/json.js +3 -2
- package/dist/neo4j.js +565 -158
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +6 -3
- package/dist/pajek.js +1 -1
- package/dist/src/children.d.ts +18 -6
- package/dist/src/children.d.ts.map +1 -1
- package/dist/src/children.js +6 -3
- package/dist/src/children.js.map +1 -1
- package/dist/src/common/attributes.d.ts +29 -11
- package/dist/src/common/attributes.d.ts.map +1 -1
- package/dist/src/common/attributes.js +25 -7
- package/dist/src/common/attributes.js.map +1 -1
- package/dist/src/common/cell-budget.d.ts +9 -2
- package/dist/src/common/cell-budget.d.ts.map +1 -1
- package/dist/src/common/cell-budget.js +11 -3
- package/dist/src/common/cell-budget.js.map +1 -1
- package/dist/src/common/choose.d.ts +19 -0
- package/dist/src/common/choose.d.ts.map +1 -0
- package/dist/src/common/choose.js +72 -0
- package/dist/src/common/choose.js.map +1 -0
- package/dist/src/common/codes.d.ts +456 -66
- package/dist/src/common/codes.d.ts.map +1 -1
- package/dist/src/common/codes.js +458 -66
- package/dist/src/common/codes.js.map +1 -1
- package/dist/src/common/compare.d.ts +81 -0
- package/dist/src/common/compare.d.ts.map +1 -0
- package/dist/src/common/compare.js +394 -0
- package/dist/src/common/compare.js.map +1 -0
- package/dist/src/common/cx-export.d.ts +123 -0
- package/dist/src/common/cx-export.d.ts.map +1 -0
- package/dist/src/common/cx-export.js +334 -0
- package/dist/src/common/cx-export.js.map +1 -0
- package/dist/src/common/declared-types.d.ts +22 -2
- package/dist/src/common/declared-types.d.ts.map +1 -1
- package/dist/src/common/declared-types.js +21 -3
- package/dist/src/common/declared-types.js.map +1 -1
- package/dist/src/common/direction.d.ts +74 -50
- package/dist/src/common/direction.d.ts.map +1 -1
- package/dist/src/common/direction.js +47 -27
- package/dist/src/common/direction.js.map +1 -1
- package/dist/src/common/escape.d.ts +21 -9
- package/dist/src/common/escape.d.ts.map +1 -1
- package/dist/src/common/escape.js +39 -22
- package/dist/src/common/escape.js.map +1 -1
- package/dist/src/common/export.d.ts +144 -32
- package/dist/src/common/export.d.ts.map +1 -1
- package/dist/src/common/export.js +216 -42
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/format.d.ts +23 -1
- package/dist/src/common/format.d.ts.map +1 -1
- package/dist/src/common/format.js +26 -1
- package/dist/src/common/format.js.map +1 -1
- package/dist/src/common/ids.d.ts +9 -2
- package/dist/src/common/ids.d.ts.map +1 -1
- package/dist/src/common/ids.js +6 -2
- package/dist/src/common/ids.js.map +1 -1
- package/dist/src/common/input.d.ts +122 -28
- package/dist/src/common/input.d.ts.map +1 -1
- package/dist/src/common/input.js +890 -124
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/common/json-elements.d.ts +144 -20
- package/dist/src/common/json-elements.d.ts.map +1 -1
- package/dist/src/common/json-elements.js +869 -189
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/common/line-format.d.ts +90 -0
- package/dist/src/common/line-format.d.ts.map +1 -0
- package/dist/src/common/line-format.js +185 -0
- package/dist/src/common/line-format.js.map +1 -0
- package/dist/src/common/lists.d.ts +6 -1
- package/dist/src/common/lists.d.ts.map +1 -1
- package/dist/src/common/lists.js +3 -1
- package/dist/src/common/lists.js.map +1 -1
- package/dist/src/common/ontology-export.d.ts +167 -0
- package/dist/src/common/ontology-export.d.ts.map +1 -0
- package/dist/src/common/ontology-export.js +359 -0
- package/dist/src/common/ontology-export.js.map +1 -0
- package/dist/src/common/ontology.d.ts +25 -3
- package/dist/src/common/ontology.d.ts.map +1 -1
- package/dist/src/common/ontology.js +30 -9
- package/dist/src/common/ontology.js.map +1 -1
- package/dist/src/common/options.d.ts +62 -12
- package/dist/src/common/options.d.ts.map +1 -1
- package/dist/src/common/options.js +89 -11
- package/dist/src/common/options.js.map +1 -1
- package/dist/src/common/plural.d.ts +31 -0
- package/dist/src/common/plural.d.ts.map +1 -0
- package/dist/src/common/plural.js +46 -0
- package/dist/src/common/plural.js.map +1 -0
- package/dist/src/common/report.d.ts +72 -14
- package/dist/src/common/report.d.ts.map +1 -1
- package/dist/src/common/report.js +146 -22
- package/dist/src/common/report.js.map +1 -1
- package/dist/src/common/temporal.d.ts +22 -5
- package/dist/src/common/temporal.d.ts.map +1 -1
- package/dist/src/common/temporal.js +13 -2
- package/dist/src/common/temporal.js.map +1 -1
- package/dist/src/common/text.d.ts +39 -23
- package/dist/src/common/text.d.ts.map +1 -1
- package/dist/src/common/text.js +51 -21
- package/dist/src/common/text.js.map +1 -1
- package/dist/src/common/weights.d.ts +37 -4
- package/dist/src/common/weights.d.ts.map +1 -1
- package/dist/src/common/weights.js +61 -2
- package/dist/src/common/weights.js.map +1 -1
- package/dist/src/common/writer.d.ts +19 -3
- package/dist/src/common/writer.d.ts.map +1 -1
- package/dist/src/common/writer.js +30 -2
- package/dist/src/common/writer.js.map +1 -1
- package/dist/src/common/xml.d.ts +125 -9
- package/dist/src/common/xml.d.ts.map +1 -1
- package/dist/src/common/xml.js +402 -85
- package/dist/src/common/xml.js.map +1 -1
- package/dist/src/common/zip.d.ts +44 -4
- package/dist/src/common/zip.d.ts.map +1 -1
- package/dist/src/common/zip.js +134 -5
- package/dist/src/common/zip.js.map +1 -1
- package/dist/src/formats/csv/exporter.d.ts +80 -24
- package/dist/src/formats/csv/exporter.d.ts.map +1 -1
- package/dist/src/formats/csv/exporter.js +146 -33
- package/dist/src/formats/csv/exporter.js.map +1 -1
- package/dist/src/formats/csv/header.d.ts +38 -9
- package/dist/src/formats/csv/header.d.ts.map +1 -1
- package/dist/src/formats/csv/header.js +46 -10
- package/dist/src/formats/csv/header.js.map +1 -1
- package/dist/src/formats/csv/importer.d.ts +187 -37
- package/dist/src/formats/csv/importer.d.ts.map +1 -1
- package/dist/src/formats/csv/importer.js +835 -204
- package/dist/src/formats/csv/importer.js.map +1 -1
- package/dist/src/formats/csv/index.d.ts +100 -19
- package/dist/src/formats/csv/index.d.ts.map +1 -1
- package/dist/src/formats/csv/index.js +94 -21
- package/dist/src/formats/csv/index.js.map +1 -1
- package/dist/src/formats/csv/records.d.ts +95 -10
- package/dist/src/formats/csv/records.d.ts.map +1 -1
- package/dist/src/formats/csv/records.js +333 -122
- package/dist/src/formats/csv/records.js.map +1 -1
- package/dist/src/formats/csv/values.d.ts +1 -0
- package/dist/src/formats/csv/values.d.ts.map +1 -1
- package/dist/src/formats/csv/values.js +1 -0
- package/dist/src/formats/csv/values.js.map +1 -1
- package/dist/src/formats/cx/exporter.d.ts +102 -0
- package/dist/src/formats/cx/exporter.d.ts.map +1 -0
- package/dist/src/formats/cx/exporter.js +1217 -0
- package/dist/src/formats/cx/exporter.js.map +1 -0
- package/dist/src/formats/cx/importer.d.ts +79 -32
- package/dist/src/formats/cx/importer.d.ts.map +1 -1
- package/dist/src/formats/cx/importer.js +682 -287
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx/index.d.ts +4 -3
- package/dist/src/formats/cx/index.d.ts.map +1 -1
- package/dist/src/formats/cx/index.js +4 -3
- package/dist/src/formats/cx/index.js.map +1 -1
- package/dist/src/formats/cx2/exporter.d.ts +29 -11
- package/dist/src/formats/cx2/exporter.d.ts.map +1 -1
- package/dist/src/formats/cx2/exporter.js +39 -268
- package/dist/src/formats/cx2/exporter.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts +78 -28
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +227 -80
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cx2/index.d.ts +2 -1
- package/dist/src/formats/cx2/index.d.ts.map +1 -1
- package/dist/src/formats/cx2/index.js +2 -1
- package/dist/src/formats/cx2/index.js.map +1 -1
- package/dist/src/formats/cys/constants.d.ts +66 -17
- package/dist/src/formats/cys/constants.d.ts.map +1 -1
- package/dist/src/formats/cys/constants.js +59 -18
- package/dist/src/formats/cys/constants.js.map +1 -1
- package/dist/src/formats/cys/exporter.d.ts +118 -0
- package/dist/src/formats/cys/exporter.d.ts.map +1 -0
- package/dist/src/formats/cys/exporter.js +1072 -0
- package/dist/src/formats/cys/exporter.js.map +1 -0
- package/dist/src/formats/cys/importer.d.ts +22 -8
- package/dist/src/formats/cys/importer.d.ts.map +1 -1
- package/dist/src/formats/cys/importer.js +510 -149
- package/dist/src/formats/cys/importer.js.map +1 -1
- package/dist/src/formats/cys/index.d.ts +4 -2
- package/dist/src/formats/cys/index.d.ts.map +1 -1
- package/dist/src/formats/cys/index.js +4 -2
- package/dist/src/formats/cys/index.js.map +1 -1
- package/dist/src/formats/cys/session.d.ts +46 -7
- package/dist/src/formats/cys/session.d.ts.map +1 -1
- package/dist/src/formats/cys/session.js +101 -27
- package/dist/src/formats/cys/session.js.map +1 -1
- package/dist/src/formats/cys/tables.d.ts +9 -2
- package/dist/src/formats/cys/tables.d.ts.map +1 -1
- package/dist/src/formats/cys/tables.js +29 -7
- package/dist/src/formats/cys/tables.js.map +1 -1
- package/dist/src/formats/dot/exporter.d.ts +42 -14
- package/dist/src/formats/dot/exporter.d.ts.map +1 -1
- package/dist/src/formats/dot/exporter.js +56 -29
- package/dist/src/formats/dot/exporter.js.map +1 -1
- package/dist/src/formats/dot/importer.d.ts +91 -29
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +190 -39
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/dot/index.d.ts +2 -1
- package/dist/src/formats/dot/index.d.ts.map +1 -1
- package/dist/src/formats/dot/index.js +2 -1
- package/dist/src/formats/dot/index.js.map +1 -1
- package/dist/src/formats/dot/names.d.ts +44 -11
- package/dist/src/formats/dot/names.d.ts.map +1 -1
- package/dist/src/formats/dot/names.js +44 -11
- package/dist/src/formats/dot/names.js.map +1 -1
- package/dist/src/formats/dot/tokenizer.d.ts +9 -2
- package/dist/src/formats/dot/tokenizer.d.ts.map +1 -1
- package/dist/src/formats/dot/tokenizer.js +20 -5
- package/dist/src/formats/dot/tokenizer.js.map +1 -1
- package/dist/src/formats/gexf/exporter.d.ts +46 -15
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +45 -15
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/importer.d.ts +87 -23
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +471 -90
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gexf/index.d.ts +84 -21
- package/dist/src/formats/gexf/index.d.ts.map +1 -1
- package/dist/src/formats/gexf/index.js +80 -23
- package/dist/src/formats/gexf/index.js.map +1 -1
- package/dist/src/formats/gexf/schema.d.ts +67 -15
- package/dist/src/formats/gexf/schema.d.ts.map +1 -1
- package/dist/src/formats/gexf/schema.js +59 -13
- package/dist/src/formats/gexf/schema.js.map +1 -1
- package/dist/src/formats/gml/exporter.d.ts +69 -21
- package/dist/src/formats/gml/exporter.d.ts.map +1 -1
- package/dist/src/formats/gml/exporter.js +74 -29
- package/dist/src/formats/gml/exporter.js.map +1 -1
- package/dist/src/formats/gml/importer.d.ts +116 -25
- package/dist/src/formats/gml/importer.d.ts.map +1 -1
- package/dist/src/formats/gml/importer.js +290 -61
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/index.d.ts +87 -24
- package/dist/src/formats/gml/index.d.ts.map +1 -1
- package/dist/src/formats/gml/index.js +79 -26
- package/dist/src/formats/gml/index.js.map +1 -1
- package/dist/src/formats/gml/syntax.d.ts +67 -18
- package/dist/src/formats/gml/syntax.d.ts.map +1 -1
- package/dist/src/formats/gml/syntax.js +110 -28
- package/dist/src/formats/gml/syntax.js.map +1 -1
- package/dist/src/formats/graphml/constants.d.ts +174 -44
- package/dist/src/formats/graphml/constants.d.ts.map +1 -1
- package/dist/src/formats/graphml/constants.js +165 -44
- package/dist/src/formats/graphml/constants.js.map +1 -1
- package/dist/src/formats/graphml/exporter.d.ts +17 -9
- package/dist/src/formats/graphml/exporter.d.ts.map +1 -1
- package/dist/src/formats/graphml/exporter.js +33 -12
- package/dist/src/formats/graphml/exporter.js.map +1 -1
- package/dist/src/formats/graphml/importer.d.ts +19 -7
- package/dist/src/formats/graphml/importer.d.ts.map +1 -1
- package/dist/src/formats/graphml/importer.js +466 -39
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/graphml/index.d.ts +2 -1
- package/dist/src/formats/graphml/index.d.ts.map +1 -1
- package/dist/src/formats/graphml/index.js +2 -1
- package/dist/src/formats/graphml/index.js.map +1 -1
- package/dist/src/formats/graphml/tree.d.ts +6 -2
- package/dist/src/formats/graphml/tree.d.ts.map +1 -1
- package/dist/src/formats/graphml/tree.js +6 -2
- package/dist/src/formats/graphml/tree.js.map +1 -1
- package/dist/src/formats/graphml/yfiles.d.ts +8 -3
- package/dist/src/formats/graphml/yfiles.d.ts.map +1 -1
- package/dist/src/formats/graphml/yfiles.js +36 -15
- package/dist/src/formats/graphml/yfiles.js.map +1 -1
- package/dist/src/formats/json/dialect.d.ts +88 -24
- package/dist/src/formats/json/dialect.d.ts.map +1 -1
- package/dist/src/formats/json/dialect.js +109 -19
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/json/exporter.d.ts +134 -22
- package/dist/src/formats/json/exporter.d.ts.map +1 -1
- package/dist/src/formats/json/exporter.js +135 -54
- package/dist/src/formats/json/exporter.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts +173 -52
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +899 -220
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/index.d.ts +3 -2
- package/dist/src/formats/json/index.d.ts.map +1 -1
- package/dist/src/formats/json/index.js +3 -2
- package/dist/src/formats/json/index.js.map +1 -1
- package/dist/src/formats/json/obographs-export.d.ts +68 -0
- package/dist/src/formats/json/obographs-export.d.ts.map +1 -0
- package/dist/src/formats/json/obographs-export.js +941 -0
- package/dist/src/formats/json/obographs-export.js.map +1 -0
- package/dist/src/formats/json/obographs.d.ts +26 -0
- package/dist/src/formats/json/obographs.d.ts.map +1 -1
- package/dist/src/formats/json/obographs.js +297 -80
- package/dist/src/formats/json/obographs.js.map +1 -1
- package/dist/src/formats/neo4j/exporter.d.ts +109 -21
- package/dist/src/formats/neo4j/exporter.d.ts.map +1 -1
- package/dist/src/formats/neo4j/exporter.js +239 -86
- package/dist/src/formats/neo4j/exporter.js.map +1 -1
- package/dist/src/formats/neo4j/header.d.ts +17 -4
- package/dist/src/formats/neo4j/header.d.ts.map +1 -1
- package/dist/src/formats/neo4j/header.js +36 -4
- package/dist/src/formats/neo4j/header.js.map +1 -1
- package/dist/src/formats/neo4j/importer.d.ts +107 -27
- package/dist/src/formats/neo4j/importer.d.ts.map +1 -1
- package/dist/src/formats/neo4j/importer.js +415 -63
- package/dist/src/formats/neo4j/importer.js.map +1 -1
- package/dist/src/formats/neo4j/index.d.ts +73 -23
- package/dist/src/formats/neo4j/index.d.ts.map +1 -1
- package/dist/src/formats/neo4j/index.js +65 -25
- package/dist/src/formats/neo4j/index.js.map +1 -1
- package/dist/src/formats/obo/exporter.d.ts +150 -0
- package/dist/src/formats/obo/exporter.d.ts.map +1 -0
- package/dist/src/formats/obo/exporter.js +1736 -0
- package/dist/src/formats/obo/exporter.js.map +1 -0
- package/dist/src/formats/obo/importer.d.ts +95 -19
- package/dist/src/formats/obo/importer.d.ts.map +1 -1
- package/dist/src/formats/obo/importer.js +475 -104
- package/dist/src/formats/obo/importer.js.map +1 -1
- package/dist/src/formats/obo/index.d.ts +6 -3
- package/dist/src/formats/obo/index.d.ts.map +1 -1
- package/dist/src/formats/obo/index.js +6 -3
- package/dist/src/formats/obo/index.js.map +1 -1
- package/dist/src/formats/obo/syntax.d.ts +108 -4
- package/dist/src/formats/obo/syntax.d.ts.map +1 -1
- package/dist/src/formats/obo/syntax.js +211 -34
- package/dist/src/formats/obo/syntax.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts +54 -16
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +67 -35
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts +84 -22
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +303 -83
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/index.d.ts +2 -1
- package/dist/src/formats/pajek/index.d.ts.map +1 -1
- package/dist/src/formats/pajek/index.js +2 -1
- package/dist/src/formats/pajek/index.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts +77 -14
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +186 -54
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/columns.d.ts +1 -0
- package/dist/src/formats/xgmml/columns.d.ts.map +1 -1
- package/dist/src/formats/xgmml/columns.js +4 -0
- package/dist/src/formats/xgmml/columns.js.map +1 -1
- package/dist/src/formats/xgmml/constants.d.ts +186 -56
- package/dist/src/formats/xgmml/constants.d.ts.map +1 -1
- package/dist/src/formats/xgmml/constants.js +181 -57
- package/dist/src/formats/xgmml/constants.js.map +1 -1
- package/dist/src/formats/xgmml/document.d.ts +65 -11
- package/dist/src/formats/xgmml/document.d.ts.map +1 -1
- package/dist/src/formats/xgmml/document.js +157 -28
- package/dist/src/formats/xgmml/document.js.map +1 -1
- package/dist/src/formats/xgmml/emit.d.ts +61 -3
- package/dist/src/formats/xgmml/emit.d.ts.map +1 -1
- package/dist/src/formats/xgmml/emit.js +129 -26
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts +13 -6
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +21 -22
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/importer.d.ts +33 -12
- package/dist/src/formats/xgmml/importer.d.ts.map +1 -1
- package/dist/src/formats/xgmml/importer.js +35 -72
- package/dist/src/formats/xgmml/importer.js.map +1 -1
- package/dist/src/formats/xgmml/index.d.ts +1 -0
- package/dist/src/formats/xgmml/index.d.ts.map +1 -1
- package/dist/src/formats/xgmml/index.js +1 -0
- package/dist/src/formats/xgmml/index.js.map +1 -1
- package/dist/src/formats/xgmml/values.d.ts +8 -1
- package/dist/src/formats/xgmml/values.d.ts.map +1 -1
- package/dist/src/formats/xgmml/values.js +8 -3
- package/dist/src/formats/xgmml/values.js.map +1 -1
- package/dist/src/index.d.ts +23 -18
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +28 -16
- package/dist/src/index.js.map +1 -1
- package/dist/src/registry.d.ts +478 -92
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +807 -88
- package/dist/src/registry.js.map +1 -1
- package/dist/src/sniff.d.ts +61 -19
- package/dist/src/sniff.d.ts.map +1 -1
- package/dist/src/sniff.js +121 -29
- package/dist/src/sniff.js.map +1 -1
- package/dist/src/types.d.ts +362 -112
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +28 -7
- package/dist/src/types.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/docs/samples/README.md +25 -0
- package/docs/samples/got-edges.csv +353 -0
- package/docs/samples/got-network.graphml +1384 -0
- package/docs/samples/got-nodes.csv +108 -0
- package/docs/samples/got.cx +930 -0
- package/docs/samples/got.cx2 +465 -0
- package/docs/samples/got.gexf +471 -0
- package/docs/samples/got.gml +2650 -0
- package/docs/samples/got.json +2546 -0
- package/docs/samples/got.net +461 -0
- package/docs/samples/movies-nodes.csv +9 -0
- package/docs/samples/movies-rels.csv +8 -0
- package/docs/samples/networks.cys +0 -0
- package/docs/samples/proteins.xgmml +9 -0
- package/docs/samples/teams.gv +24 -0
- package/docs/samples/vehicles.obo +25 -0
- package/package.json +9 -4
- package/src/children.ts +18 -6
- package/src/common/attributes.ts +29 -11
- package/src/common/cell-budget.ts +11 -3
- package/src/common/choose.ts +89 -0
- package/src/common/codes.ts +490 -66
- package/src/common/compare.ts +472 -0
- package/src/common/cx-export.ts +432 -0
- package/src/common/declared-types.ts +40 -6
- package/src/common/direction.ts +78 -51
- package/src/common/escape.ts +39 -22
- package/src/common/export.ts +284 -47
- package/src/common/format.ts +30 -1
- package/src/common/ids.ts +14 -3
- package/src/common/input.ts +1057 -134
- package/src/common/json-elements.ts +1035 -199
- package/src/common/line-format.ts +249 -0
- package/src/common/lists.ts +7 -2
- package/src/common/ontology-export.ts +461 -0
- package/src/common/ontology.ts +31 -9
- package/src/common/options.ts +110 -15
- package/src/common/plural.ts +49 -0
- package/src/common/report.ts +168 -25
- package/src/common/temporal.ts +22 -5
- package/src/common/text.ts +62 -23
- package/src/common/weights.ts +74 -4
- package/src/common/writer.ts +37 -3
- package/src/common/xml.ts +479 -90
- package/src/common/zip.ts +169 -7
- package/src/formats/csv/exporter.ts +202 -47
- package/src/formats/csv/header.ts +50 -11
- package/src/formats/csv/importer.ts +1133 -245
- package/src/formats/csv/index.ts +106 -19
- package/src/formats/csv/records.ts +396 -122
- package/src/formats/csv/values.ts +1 -0
- package/src/formats/cx/exporter.ts +1483 -0
- package/src/formats/cx/importer.ts +890 -302
- package/src/formats/cx/index.ts +4 -3
- package/src/formats/cx2/exporter.ts +62 -339
- package/src/formats/cx2/importer.ts +318 -87
- package/src/formats/cx2/index.ts +2 -1
- package/src/formats/cys/constants.ts +62 -17
- package/src/formats/cys/exporter.ts +1368 -0
- package/src/formats/cys/importer.ts +659 -157
- package/src/formats/cys/index.ts +4 -2
- package/src/formats/cys/session.ts +142 -34
- package/src/formats/cys/tables.ts +47 -9
- package/src/formats/dot/exporter.ts +83 -37
- package/src/formats/dot/importer.ts +248 -54
- package/src/formats/dot/index.ts +2 -1
- package/src/formats/dot/names.ts +44 -11
- package/src/formats/dot/tokenizer.ts +25 -6
- package/src/formats/gexf/exporter.ts +57 -18
- package/src/formats/gexf/importer.ts +636 -105
- package/src/formats/gexf/index.ts +90 -21
- package/src/formats/gexf/schema.ts +67 -15
- package/src/formats/gml/exporter.ts +90 -36
- package/src/formats/gml/importer.ts +388 -67
- package/src/formats/gml/index.ts +85 -24
- package/src/formats/gml/syntax.ts +113 -28
- package/src/formats/graphml/constants.ts +178 -44
- package/src/formats/graphml/exporter.ts +52 -18
- package/src/formats/graphml/importer.ts +640 -60
- package/src/formats/graphml/index.ts +2 -1
- package/src/formats/graphml/tree.ts +6 -2
- package/src/formats/graphml/yfiles.ts +37 -15
- package/src/formats/json/dialect.ts +128 -29
- package/src/formats/json/exporter.ts +205 -68
- package/src/formats/json/importer.ts +1163 -253
- package/src/formats/json/index.ts +3 -1
- package/src/formats/json/obographs-export.ts +1197 -0
- package/src/formats/json/obographs.ts +353 -92
- package/src/formats/neo4j/exporter.ts +321 -102
- package/src/formats/neo4j/header.ts +44 -6
- package/src/formats/neo4j/importer.ts +512 -73
- package/src/formats/neo4j/index.ts +75 -23
- package/src/formats/obo/exporter.ts +2210 -0
- package/src/formats/obo/importer.ts +622 -109
- package/src/formats/obo/index.ts +6 -3
- package/src/formats/obo/syntax.ts +232 -37
- package/src/formats/pajek/exporter.ts +90 -42
- package/src/formats/pajek/importer.ts +407 -93
- package/src/formats/pajek/index.ts +2 -1
- package/src/formats/pajek/syntax.ts +216 -55
- package/src/formats/xgmml/columns.ts +10 -0
- package/src/formats/xgmml/constants.ts +183 -56
- package/src/formats/xgmml/document.ts +212 -34
- package/src/formats/xgmml/emit.ts +175 -34
- package/src/formats/xgmml/exporter.ts +36 -28
- package/src/formats/xgmml/importer.ts +64 -86
- package/src/formats/xgmml/index.ts +1 -0
- package/src/formats/xgmml/values.ts +12 -4
- package/src/index.ts +81 -11
- package/src/registry.ts +1121 -135
- package/src/sniff.ts +163 -32
- package/src/types.ts +385 -114
- package/dist/chunks/escape-B-tkk_Cl.js.map +0 -1
- package/dist/chunks/export-Bh60Dv-n.js +0 -582
- package/dist/chunks/export-Bh60Dv-n.js.map +0 -1
- package/dist/chunks/exporter-BGrsWamJ.js.map +0 -1
- package/dist/chunks/exporter-DIeGJXAZ.js.map +0 -1
- package/dist/chunks/importer-BWY2FFc5.js.map +0 -1
- package/dist/chunks/importer-DD-xv9_Y.js +0 -1471
- package/dist/chunks/importer-DD-xv9_Y.js.map +0 -1
- package/dist/chunks/importer-DET1tg6s.js.map +0 -1
- package/dist/chunks/importer-DEcKhsmQ.js +0 -1614
- package/dist/chunks/importer-DEcKhsmQ.js.map +0 -1
- package/dist/chunks/importer-DIrbbnAf.js.map +0 -1
- package/dist/chunks/importer-D_e7e7LX.js.map +0 -1
- package/dist/chunks/importer-eUREhBGj.js.map +0 -1
- package/dist/chunks/importer-vi3bSdtw.js.map +0 -1
- package/dist/chunks/importer-zGLo8Dg_.js.map +0 -1
- package/dist/chunks/json-elements-DDS8N2Dd.js +0 -779
- package/dist/chunks/json-elements-DDS8N2Dd.js.map +0 -1
- package/dist/chunks/ontology-BnrJ4I98.js +0 -113
- package/dist/chunks/ontology-BnrJ4I98.js.map +0 -1
- package/dist/chunks/records-dbRkxwaq.js.map +0 -1
- package/dist/chunks/report-B1z4WT9e.js +0 -2372
- package/dist/chunks/report-B1z4WT9e.js.map +0 -1
- package/dist/chunks/text-Dr0Ifpag.js.map +0 -1
- package/dist/chunks/weights-Dzba96G3.js +0 -176
- package/dist/chunks/weights-Dzba96G3.js.map +0 -1
- package/dist/chunks/writer-C7flM-Ih.js.map +0 -1
|
@@ -1,50 +1,85 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The GEXF subpath entry (`@graphty/graph-io/gexf
|
|
2
|
+
* The GEXF subpath entry (`@graphty/graph-io/gexf`): the importer and exporter
|
|
3
3
|
* objects with their format-specific option types, the exporter's loss-note codes and the
|
|
4
4
|
* importer's issue codes grouped in one table.
|
|
5
|
+
* @module @graphty/graph-io/gexf
|
|
5
6
|
*/
|
|
6
|
-
import { BAD_DEFAULT_CODE, BAD_OPTIONS_CODE, COLUMN_RENAMED_CODE, COUNT_HINT_CODE, DIRECTION_FORCED_CODE, DIRECTION_REFUSED_CODE, DUPLICATE_ATTRIBUTE_CODE, DUPLICATE_EDGE_ID_CODE, DUPLICATE_NODE_CODE, ENCODING_FALLBACK_CODE, ID_MERGED_CODE, INVALID_ENCODING_CODE, INVALID_UTF8_CODE, MISSING_ENDPOINT_CODE, MISSING_ID_CODE, MIXED_DIRECTION_CODE, NO_GRAPH_CODE, OPTION_IGNORED_CODE, PRECISION_CODE, ROLE_TAKEN_CODE, SINK_OPTION_CODE, STRAY_TEXT_CODE, UNKNOWN_ATTR_TYPE_CODE, UNKNOWN_ELEMENT_CODE, UNKNOWN_ENCODING_CODE, UNKNOWN_PARENT_CODE, XML_SYNTAX_CODE, } from "../../common/codes.js";
|
|
7
|
-
import { ATTRIBUTE_ID_CODE, ATTRIBUTE_TYPE_CODE, ATTRIBUTES_CLASS_CODE, ATTVALUE_SHAPE_CODE, EDGE_TYPE_CODE, HEADER_VALUE_CODE, MISSING_NODES_CODE, NOT_GEXF_CODE, OPEN_BOUND_CONFLICT_CODE, SPELL_OPEN_CODE, TIMED_STATIC_CODE, UNKNOWN_ATTRIBUTE_CODE, VIZ_DYNAMIC_CODE, VIZ_SKIPPED_CODE, VIZ_VALUE_CODE, WEIGHT_IGNORED_CODE, } from "./importer.js";
|
|
7
|
+
import { BAD_DEFAULT_CODE, BAD_OPTIONS_CODE, BAD_VALUE_CODE, COLUMN_RENAMED_CODE, COLUMN_TYPE_CODE, COUNT_HINT_CODE, COUNT_MISMATCH_CODE, DIRECTION_FORCED_CODE, DIRECTION_REFUSED_CODE, DUPLICATE_ATTRIBUTE_CODE, DUPLICATE_EDGE_ID_CODE, DUPLICATE_NODE_CODE, ELEMENT_ISSUE, EMPTY_INPUT_CODE, ENCODING_CONFLICT_CODE, ENCODING_FALLBACK_CODE, ID_MERGED_CODE, INPUT_ISSUE, INVALID_ENCODING_CODE, INVALID_UTF8_CODE, MISSING_ENDPOINT_CODE, MISSING_ID_CODE, MIXED_DIRECTION_CODE, MULTIPLE_GRAPHS_CODE, NO_GRAPH_CODE, OPTION_IGNORED_CODE, PARENT_CYCLE_CODE, PRECISION_CODE, ROLE_TAKEN_CODE, SINK_OPTION_CODE, STRAY_TEXT_CODE, UNKNOWN_ATTR_TYPE_CODE, UNKNOWN_ELEMENT_CODE, UNKNOWN_ENCODING_CODE, UNKNOWN_PARENT_CODE, UNKNOWN_XML_ATTRIBUTE_CODE, XML_SYNTAX_CODE, } from "../../common/codes.js";
|
|
8
|
+
import { ATTRIBUTE_ID_CODE, ATTRIBUTE_TYPE_CODE, ATTRIBUTES_CLASS_CODE, ATTVALUE_SHAPE_CODE, EDGE_TYPE_CODE, HEADER_VALUE_CODE, MISSING_NODES_CODE, NOT_GEXF_CODE, OPEN_BOUND_CONFLICT_CODE, SPELL_OPEN_CODE, TIMED_STATIC_CODE, TIMESTAMP_CONFLICT_CODE, UNKNOWN_ATTRIBUTE_CODE, VALUE_OUTSIDE_OPTIONS_CODE, VIZ_DYNAMIC_CODE, VIZ_SKIPPED_CODE, VIZ_VALUE_CODE, WEIGHT_IGNORED_CODE, } from "./importer.js";
|
|
8
9
|
export { GEXF_1_2_CAPABILITIES, GEXF_LOSS, gexfExporter } from "./exporter.js";
|
|
9
10
|
export { gexfImporter } from "./importer.js";
|
|
10
11
|
/**
|
|
11
|
-
* The issue codes the GEXF importer records
|
|
12
|
-
* the other importers
|
|
12
|
+
* The issue codes the GEXF importer records, by name: the codes shared with
|
|
13
|
+
* the other importers and the GEXF-specific ones. A key is the code without
|
|
13
14
|
* its severity and format prefixes.
|
|
15
|
+
* @category Built-in formats
|
|
14
16
|
*/
|
|
15
17
|
export const GEXF_ISSUE = Object.freeze({
|
|
16
|
-
|
|
18
|
+
...INPUT_ISSUE,
|
|
19
|
+
...ELEMENT_ISSUE,
|
|
20
|
+
/**
|
|
21
|
+
* A value that does not parse as the type its attribute declares ("x" in an integer attribute). The value is
|
|
22
|
+
* left unset; the node or edge is kept.
|
|
23
|
+
*/
|
|
24
|
+
COLUMN_TYPE: COLUMN_TYPE_CODE,
|
|
25
|
+
/** The XML is not well-formed. The import stops. */
|
|
17
26
|
XML_SYNTAX: XML_SYNTAX_CODE,
|
|
18
|
-
/** The input
|
|
27
|
+
/** The input is not valid UTF-8. The import stops. */
|
|
19
28
|
INVALID_UTF8: INVALID_UTF8_CODE,
|
|
20
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Some bytes are not valid in the encoding that was chosen (by a byte order mark, the file's declaration or the
|
|
31
|
+
* `encoding` option). The import stops.
|
|
32
|
+
*/
|
|
21
33
|
INVALID_ENCODING: INVALID_ENCODING_CODE,
|
|
22
34
|
/** Bytes that are not UTF-8 and declare no encoding were read as windows-1252. */
|
|
23
35
|
ENCODING_FALLBACK: ENCODING_FALLBACK_CODE,
|
|
24
36
|
/** A declared encoding the platform cannot decode was ignored. */
|
|
25
37
|
UNKNOWN_ENCODING: UNKNOWN_ENCODING_CODE,
|
|
26
|
-
/**
|
|
38
|
+
/** A declared encoding the byte order mark contradicts (the mark wins). */
|
|
39
|
+
ENCODING_CONFLICT: ENCODING_CONFLICT_CODE,
|
|
40
|
+
/** The input holds no XML at all: it is empty, whitespace or a byte order mark only. The import stops. */
|
|
41
|
+
EMPTY_INPUT: EMPTY_INPUT_CODE,
|
|
42
|
+
/** The root element is not `<gexf>`. The import stops. */
|
|
27
43
|
NOT_GEXF: NOT_GEXF_CODE,
|
|
28
|
-
/** The document has no `<graph
|
|
44
|
+
/** The document has no `<graph>`. The import stops. */
|
|
29
45
|
NO_GRAPH: NO_GRAPH_CODE,
|
|
46
|
+
/**
|
|
47
|
+
* The file holds more than one `<graph>` element; their nodes and edges are merged into one graph.
|
|
48
|
+
* `importAllGraphs()` reads every one.
|
|
49
|
+
*/
|
|
50
|
+
MULTIPLE_GRAPHS: MULTIPLE_GRAPHS_CODE,
|
|
30
51
|
/** `<edges>` without `<nodes>`. */
|
|
31
52
|
MISSING_NODES: MISSING_NODES_CODE,
|
|
32
53
|
/** A node without an id. */
|
|
33
54
|
MISSING_ID: MISSING_ID_CODE,
|
|
34
55
|
/** An edge without a source or target. */
|
|
35
56
|
MISSING_ENDPOINT: MISSING_ENDPOINT_CODE,
|
|
57
|
+
/** An edge endpoint that names no declared node (addMissingNodes false, the GEXF default). */
|
|
58
|
+
UNKNOWN_NODE: "E_UNKNOWN_NODE",
|
|
36
59
|
/** An edge `type` outside directed / undirected / mutual. */
|
|
37
60
|
EDGE_TYPE: EDGE_TYPE_CODE,
|
|
38
|
-
/** A `pid` / `<parent for>` naming an unknown node. */
|
|
61
|
+
/** A `pid` / `<parent for>` naming an unknown node, a `<parent>` without for, or the children of a skipped node. */
|
|
39
62
|
UNKNOWN_PARENT: UNKNOWN_PARENT_CODE,
|
|
63
|
+
/** A `pid` / nested containment that would close a parent cycle; that link is dropped. */
|
|
64
|
+
PARENT_CYCLE: PARENT_CYCLE_CODE,
|
|
65
|
+
/** An inverted interval (start after end) of an element, a spell or a value; it is not kept. */
|
|
66
|
+
BAD_VALUE: BAD_VALUE_CODE,
|
|
40
67
|
/** An `<attributes class>` outside node / edge. */
|
|
41
68
|
ATTRIBUTES_CLASS: ATTRIBUTES_CLASS_CODE,
|
|
42
69
|
/** An `<attribute>` without an id. */
|
|
43
70
|
ATTRIBUTE_ID: ATTRIBUTE_ID_CODE,
|
|
44
71
|
/** A `<graph>` header attribute with an unknown value. */
|
|
45
72
|
HEADER_VALUE: HEADER_VALUE_CODE,
|
|
46
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* A node or edge count the file announces is too large to reserve room for; it is ignored and the elements are
|
|
75
|
+
* read as they come.
|
|
76
|
+
*/
|
|
47
77
|
COUNT_HINT: COUNT_HINT_CODE,
|
|
78
|
+
/**
|
|
79
|
+
* A `count` attribute disagrees with the number of nodes or edges actually in its section. The elements are read
|
|
80
|
+
* as they are.
|
|
81
|
+
*/
|
|
82
|
+
COUNT_MISMATCH: COUNT_MISMATCH_CODE,
|
|
48
83
|
/** A node id declared twice. */
|
|
49
84
|
DUPLICATE_NODE: DUPLICATE_NODE_CODE,
|
|
50
85
|
/** An edge id declared twice (the second edge is skipped). */
|
|
@@ -59,9 +94,15 @@ export const GEXF_ISSUE = Object.freeze({
|
|
|
59
94
|
BAD_DEFAULT: BAD_DEFAULT_CODE,
|
|
60
95
|
/** Options that do not parse as the declared type. */
|
|
61
96
|
BAD_OPTIONS: BAD_OPTIONS_CODE,
|
|
62
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* An attribute was renamed `<name>#<suffix>` because another attribute already has its name, for example
|
|
99
|
+
* two attributes declared with the same name.
|
|
100
|
+
*/
|
|
63
101
|
COLUMN_RENAMED: COLUMN_RENAMED_CODE,
|
|
64
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* You read into a graph builder that already has an id, label or position attribute, so this file's one is kept as
|
|
104
|
+
* a plain attribute.
|
|
105
|
+
*/
|
|
65
106
|
ROLE_TAKEN: ROLE_TAKEN_CODE,
|
|
66
107
|
/** An `<attvalue for>` naming an undeclared attribute. */
|
|
67
108
|
UNKNOWN_ATTRIBUTE: UNKNOWN_ATTRIBUTE_CODE,
|
|
@@ -69,13 +110,13 @@ export const GEXF_ISSUE = Object.freeze({
|
|
|
69
110
|
ATTVALUE_SHAPE: ATTVALUE_SHAPE_CODE,
|
|
70
111
|
/** A timed value on an attribute of a static group. */
|
|
71
112
|
TIMED_VALUE_ON_STATIC: TIMED_STATIC_CODE,
|
|
72
|
-
/**
|
|
113
|
+
/** An integer beyond 2^53 was stored as the nearest 64-bit float; pass `long: "string"` to keep every digit. */
|
|
73
114
|
PRECISION: PRECISION_CODE,
|
|
74
|
-
/** Two id texts
|
|
115
|
+
/** Two different id texts became the same number because `ids` is "number", so their nodes were merged. */
|
|
75
116
|
ID_MERGED: ID_MERGED_CODE,
|
|
76
117
|
/** The XML weight attribute ignored under weightFrom null. */
|
|
77
118
|
WEIGHT_IGNORED: WEIGHT_IGNORED_CODE,
|
|
78
|
-
/**
|
|
119
|
+
/** Viz elements skipped under viz: false. */
|
|
79
120
|
VIZ_SKIPPED: VIZ_SKIPPED_CODE,
|
|
80
121
|
/** A 1.2 dynamic viz element whose bounds were dropped. */
|
|
81
122
|
VIZ_DYNAMIC_DROPPED: VIZ_DYNAMIC_CODE,
|
|
@@ -85,19 +126,35 @@ export const GEXF_ISSUE = Object.freeze({
|
|
|
85
126
|
VIZ_VALUE: VIZ_VALUE_CODE,
|
|
86
127
|
/** Both `start` and `startopen` (or `end` and `endopen`) on one element. */
|
|
87
128
|
OPEN_BOUND_CONFLICT: OPEN_BOUND_CONFLICT_CODE,
|
|
88
|
-
/**
|
|
129
|
+
/** Both `timestamp` and `start` / `end` on one element or value. */
|
|
130
|
+
TIMESTAMP_CONFLICT: TIMESTAMP_CONFLICT_CODE,
|
|
131
|
+
/** A value outside the declared `<options>` (kept). */
|
|
132
|
+
VALUE_OUTSIDE_OPTIONS: VALUE_OUTSIDE_OPTIONS_CODE,
|
|
133
|
+
/** An element GEXF does not define at that place was skipped. */
|
|
89
134
|
UNKNOWN_ELEMENT: UNKNOWN_ELEMENT_CODE,
|
|
135
|
+
/** An XML attribute GEXF does not define on that element was ignored. */
|
|
136
|
+
UNKNOWN_XML_ATTRIBUTE: UNKNOWN_XML_ATTRIBUTE_CODE,
|
|
90
137
|
/** Text where GEXF allows only elements was ignored. */
|
|
91
138
|
STRAY_TEXT: STRAY_TEXT_CODE,
|
|
92
|
-
/**
|
|
139
|
+
/** You set an option this format does not use; it had no effect. The message names the option. */
|
|
93
140
|
OPTION_IGNORED: OPTION_IGNORED_CODE,
|
|
94
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* You read into your own graph builder, which was created with a different `addMissingNodes`, `duplicateEdges`,
|
|
143
|
+
* `selfLoops` or `weightDtype` than the option you passed; the builder's setting applies.
|
|
144
|
+
*/
|
|
95
145
|
SINK_OPTION: SINK_OPTION_CODE,
|
|
96
|
-
/**
|
|
146
|
+
/**
|
|
147
|
+
* You read into a graph builder whose direction is already set, or which already holds edges, so the file is read
|
|
148
|
+
* with the builder's direction instead of its own.
|
|
149
|
+
*/
|
|
97
150
|
DIRECTION_REFUSED: DIRECTION_REFUSED_CODE,
|
|
98
|
-
/** Edges
|
|
151
|
+
/** Edges of the other direction were read with the direction `onMixedDirection` chose. */
|
|
99
152
|
DIRECTION_FORCED: DIRECTION_FORCED_CODE,
|
|
100
|
-
/**
|
|
153
|
+
/**
|
|
154
|
+
* The graph has both directed and undirected edges and `onMixedDirection` is "error". An import stops; a save to a
|
|
155
|
+
* format that holds one direction per file fails with E_DIRECTED. Pass "directed" or "undirected" to read or write
|
|
156
|
+
* it anyway.
|
|
157
|
+
*/
|
|
101
158
|
MIXED_DIRECTION: MIXED_DIRECTION_CODE,
|
|
102
159
|
});
|
|
103
160
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/formats/gexf/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/formats/gexf/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,GACtB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,qBAAqB,EAA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oB;CACxC,CAAC,CAAC"}
|
|
@@ -7,28 +7,53 @@
|
|
|
7
7
|
* declared-type table of each version for the exporter.
|
|
8
8
|
*/
|
|
9
9
|
import { type ColumnDecl, type Dtype } from "@graphty/graph-format";
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The GEXF versions the exporter writes.
|
|
12
|
+
* @category Built-in formats
|
|
13
|
+
*/
|
|
11
14
|
export type GexfVersion = "1.2" | "1.3";
|
|
12
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The format name.
|
|
17
|
+
* @category Plugin helpers
|
|
18
|
+
*/
|
|
13
19
|
export declare const GEXF_FORMAT = "gexf";
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The namespace URIs of each version.
|
|
22
|
+
* @category Plugin helpers
|
|
23
|
+
*/
|
|
15
24
|
export declare const GEXF_NAMESPACES: Readonly<Record<GexfVersion, {
|
|
16
25
|
readonly gexf: string;
|
|
17
26
|
readonly viz: string;
|
|
18
27
|
}>>;
|
|
19
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The default edge type values of `<graph defaultedgetype>` and `<edge type>`.
|
|
30
|
+
* @category Plugin helpers
|
|
31
|
+
*/
|
|
20
32
|
export type GexfEdgeType = "directed" | "undirected" | "mutual";
|
|
21
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* The GEXF `timeformat` values.
|
|
35
|
+
* @category Plugin helpers
|
|
36
|
+
*/
|
|
22
37
|
export declare const TIME_FORMATS: ReadonlySet<string>;
|
|
23
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* The GEXF graph `mode` values.
|
|
40
|
+
* @category Plugin helpers
|
|
41
|
+
*/
|
|
24
42
|
export declare const GRAPH_MODES: ReadonlySet<string>;
|
|
25
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* The GEXF 1.3 `timerepresentation` values.
|
|
45
|
+
* @category Plugin helpers
|
|
46
|
+
*/
|
|
26
47
|
export declare const TIME_REPRESENTATIONS: ReadonlySet<string>;
|
|
27
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* The `origin.namespace` of viz-derived columns.
|
|
50
|
+
* @category Plugin helpers
|
|
51
|
+
*/
|
|
28
52
|
export declare const VIZ_NAMESPACE = "viz";
|
|
29
53
|
/**
|
|
30
54
|
* The fixed node column names the importer owns (design section 5.6): a declared attribute with
|
|
31
55
|
* one of these titles is renamed `<title>#<id>` so the XML-derived column keeps its name and role.
|
|
56
|
+
* @category Plugin helpers
|
|
32
57
|
*/
|
|
33
58
|
export declare const NODE_COLUMNS: Readonly<{
|
|
34
59
|
label: "label";
|
|
@@ -63,19 +88,40 @@ declare const EDGE_COLUMNS: Readonly<{
|
|
|
63
88
|
thickness: "thickness";
|
|
64
89
|
shape: "shape";
|
|
65
90
|
}>;
|
|
66
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Every reserved node column name, including the temporal companions.
|
|
93
|
+
* @category Plugin helpers
|
|
94
|
+
*/
|
|
67
95
|
export declare const RESERVED_NODE_NAMES: ReadonlySet<string>;
|
|
68
|
-
/**
|
|
96
|
+
/**
|
|
97
|
+
* Every reserved edge column name, including the temporal companions.
|
|
98
|
+
* @category Plugin helpers
|
|
99
|
+
*/
|
|
69
100
|
export declare const RESERVED_EDGE_NAMES: ReadonlySet<string>;
|
|
70
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* The declarations of the XML-derived node columns, keyed as NODE_COLUMNS.
|
|
103
|
+
* @category Plugin helpers
|
|
104
|
+
*/
|
|
71
105
|
export declare const NODE_DECLS: Readonly<Record<keyof typeof NODE_COLUMNS, ColumnDecl>>;
|
|
72
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* The declarations of the XML-derived edge columns, keyed as EDGE_COLUMNS.
|
|
108
|
+
* @category Plugin helpers
|
|
109
|
+
*/
|
|
73
110
|
export declare const EDGE_DECLS: Readonly<Record<keyof typeof EDGE_COLUMNS, ColumnDecl>>;
|
|
74
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* The bit of the `open` column marking an open start (design section 5.1).
|
|
113
|
+
* @category Plugin helpers
|
|
114
|
+
*/
|
|
75
115
|
export declare const OPEN_START = 1;
|
|
76
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* The bit of the `open` column marking an open end.
|
|
118
|
+
* @category Plugin helpers
|
|
119
|
+
*/
|
|
77
120
|
export declare const OPEN_END = 2;
|
|
78
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* The column names of a temporal extension table (design section 5.10).
|
|
123
|
+
* @category Plugin helpers
|
|
124
|
+
*/
|
|
79
125
|
export declare const TEMPORAL_COLUMNS: Readonly<{
|
|
80
126
|
element: "element";
|
|
81
127
|
start: "start";
|
|
@@ -91,12 +137,14 @@ export declare const TEMPORAL_COLUMNS: Readonly<{
|
|
|
91
137
|
* @param domain - node or edge
|
|
92
138
|
* @param column - the static column's name
|
|
93
139
|
* @returns `temporal:<domain>:<column>`
|
|
140
|
+
* @category Plugin helpers
|
|
94
141
|
*/
|
|
95
142
|
export declare function temporalTableName(domain: "node" | "edge", column: string): string;
|
|
96
143
|
/**
|
|
97
144
|
* Split a temporal table name into its domain and column.
|
|
98
145
|
* @param name - the table name
|
|
99
146
|
* @returns the parts, or null when the name is not a temporal table's
|
|
147
|
+
* @category Plugin helpers
|
|
100
148
|
*/
|
|
101
149
|
export declare function parseTemporalTableName(name: string): {
|
|
102
150
|
domain: "node" | "edge";
|
|
@@ -110,6 +158,7 @@ export declare function parseTemporalTableName(name: string): {
|
|
|
110
158
|
* @param value - the value column's declaration fields (dtype, itemDtype, options...)
|
|
111
159
|
* @param temporalValue - whether the value is itself a temporal type needing a text companion
|
|
112
160
|
* @returns the declarations in table order
|
|
161
|
+
* @category Plugin helpers
|
|
113
162
|
*/
|
|
114
163
|
export declare function temporalTableDecls(domain: "node" | "edge", value: Pick<ColumnDecl, "dtype" | "itemDtype" | "options" | "origin">, temporalValue: boolean): ColumnDecl[];
|
|
115
164
|
/**
|
|
@@ -118,6 +167,7 @@ export declare function temporalTableDecls(domain: "node" | "edge", value: Pick<
|
|
|
118
167
|
* @param type - the type text
|
|
119
168
|
* @param version - the target version
|
|
120
169
|
* @returns true when the version declares it
|
|
170
|
+
* @category Plugin helpers
|
|
121
171
|
*/
|
|
122
172
|
export declare function isScalarType(type: string, version: GexfVersion): boolean;
|
|
123
173
|
/**
|
|
@@ -125,12 +175,14 @@ export declare function isScalarType(type: string, version: GexfVersion): boolea
|
|
|
125
175
|
* @param type - the type text
|
|
126
176
|
* @param version - the target version
|
|
127
177
|
* @returns true when the version declares it
|
|
178
|
+
* @category Plugin helpers
|
|
128
179
|
*/
|
|
129
180
|
export declare function isListType(type: string, version: GexfVersion): boolean;
|
|
130
181
|
/**
|
|
131
182
|
* The canonical GEXF scalar type of a column dtype (design section 5.1 reversed).
|
|
132
183
|
* @param dtype - a scalar dtype
|
|
133
184
|
* @returns the type text; u32 becomes `long` (its range exceeds `integer`), u8 `integer`, json `string`
|
|
185
|
+
* @category Plugin helpers
|
|
134
186
|
*/
|
|
135
187
|
export declare function canonicalScalarType(dtype: Dtype): string;
|
|
136
188
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/formats/gexf/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIpE
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/formats/gexf/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAIpE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,WAAW,SAAS,CAAC;AAElC;;;GAGG;AACH,eAA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;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAcvG;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC,EACrE,aAAa,EAAE,OAAO,GACvB,UAAU,EAAE,CAyBd;AAiBD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAKtE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAuBxD"}
|
|
@@ -7,20 +7,38 @@
|
|
|
7
7
|
* declared-type table of each version for the exporter.
|
|
8
8
|
*/
|
|
9
9
|
import { TIME_TEXT_ROLE, TIME_TEXT_SUFFIX } from "../../common/temporal.js";
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The format name.
|
|
12
|
+
* @category Plugin helpers
|
|
13
|
+
*/
|
|
11
14
|
export const GEXF_FORMAT = "gexf";
|
|
12
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The namespace URIs of each version.
|
|
17
|
+
* @category Plugin helpers
|
|
18
|
+
*/
|
|
13
19
|
export const GEXF_NAMESPACES = {
|
|
14
20
|
"1.2": { gexf: "http://www.gexf.net/1.2draft", viz: "http://www.gexf.net/1.2draft/viz" },
|
|
15
21
|
"1.3": { gexf: "http://gexf.net/1.3", viz: "http://gexf.net/1.3/viz" },
|
|
16
22
|
};
|
|
17
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* The GEXF `timeformat` values.
|
|
25
|
+
* @category Plugin helpers
|
|
26
|
+
*/
|
|
18
27
|
export const TIME_FORMATS = new Set(["integer", "double", "date", "dateTime"]);
|
|
19
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The GEXF graph `mode` values.
|
|
30
|
+
* @category Plugin helpers
|
|
31
|
+
*/
|
|
20
32
|
export const GRAPH_MODES = new Set(["static", "dynamic", "slice"]);
|
|
21
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* The GEXF 1.3 `timerepresentation` values.
|
|
35
|
+
* @category Plugin helpers
|
|
36
|
+
*/
|
|
22
37
|
export const TIME_REPRESENTATIONS = new Set(["interval", "timestamp"]);
|
|
23
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* The `origin.namespace` of viz-derived columns.
|
|
40
|
+
* @category Plugin helpers
|
|
41
|
+
*/
|
|
24
42
|
export const VIZ_NAMESPACE = "viz";
|
|
25
43
|
/** The origin every XML-derived column declares. */
|
|
26
44
|
const XML_ORIGIN = { format: GEXF_FORMAT };
|
|
@@ -29,6 +47,7 @@ const VIZ_ORIGIN = { format: GEXF_FORMAT, namespace: VIZ_NAMESPACE };
|
|
|
29
47
|
/**
|
|
30
48
|
* The fixed node column names the importer owns (design section 5.6): a declared attribute with
|
|
31
49
|
* one of these titles is renamed `<title>#<id>` so the XML-derived column keeps its name and role.
|
|
50
|
+
* @category Plugin helpers
|
|
32
51
|
*/
|
|
33
52
|
export const NODE_COLUMNS = Object.freeze({
|
|
34
53
|
label: "label",
|
|
@@ -63,21 +82,30 @@ const EDGE_COLUMNS = Object.freeze({
|
|
|
63
82
|
thickness: "thickness",
|
|
64
83
|
shape: "shape",
|
|
65
84
|
});
|
|
66
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Every reserved node column name, including the temporal companions.
|
|
87
|
+
* @category Plugin helpers
|
|
88
|
+
*/
|
|
67
89
|
export const RESERVED_NODE_NAMES = new Set([
|
|
68
90
|
...Object.values(NODE_COLUMNS),
|
|
69
91
|
NODE_COLUMNS.start + TIME_TEXT_SUFFIX,
|
|
70
92
|
NODE_COLUMNS.end + TIME_TEXT_SUFFIX,
|
|
71
93
|
NODE_COLUMNS.timestamp + TIME_TEXT_SUFFIX,
|
|
72
94
|
]);
|
|
73
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Every reserved edge column name, including the temporal companions.
|
|
97
|
+
* @category Plugin helpers
|
|
98
|
+
*/
|
|
74
99
|
export const RESERVED_EDGE_NAMES = new Set([
|
|
75
100
|
...Object.values(EDGE_COLUMNS),
|
|
76
101
|
EDGE_COLUMNS.start + TIME_TEXT_SUFFIX,
|
|
77
102
|
EDGE_COLUMNS.end + TIME_TEXT_SUFFIX,
|
|
78
103
|
EDGE_COLUMNS.timestamp + TIME_TEXT_SUFFIX,
|
|
79
104
|
]);
|
|
80
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* The declarations of the XML-derived node columns, keyed as NODE_COLUMNS.
|
|
107
|
+
* @category Plugin helpers
|
|
108
|
+
*/
|
|
81
109
|
export const NODE_DECLS = {
|
|
82
110
|
label: { name: NODE_COLUMNS.label, dtype: "string", role: "label", nullable: true, origin: XML_ORIGIN },
|
|
83
111
|
parent: {
|
|
@@ -148,7 +176,10 @@ export const NODE_DECLS = {
|
|
|
148
176
|
shape: { name: NODE_COLUMNS.shape, dtype: "dict", role: "shape", nullable: true, origin: VIZ_ORIGIN },
|
|
149
177
|
shapeUri: { name: NODE_COLUMNS.shapeUri, dtype: "string", nullable: true, origin: VIZ_ORIGIN },
|
|
150
178
|
};
|
|
151
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* The declarations of the XML-derived edge columns, keyed as EDGE_COLUMNS.
|
|
181
|
+
* @category Plugin helpers
|
|
182
|
+
*/
|
|
152
183
|
export const EDGE_DECLS = {
|
|
153
184
|
id: { name: EDGE_COLUMNS.id, dtype: "string", role: "id", unique: true, nullable: true, origin: XML_ORIGIN },
|
|
154
185
|
label: { name: EDGE_COLUMNS.label, dtype: "string", role: "label", nullable: true, origin: XML_ORIGIN },
|
|
@@ -193,13 +224,22 @@ export const EDGE_DECLS = {
|
|
|
193
224
|
thickness: { name: EDGE_COLUMNS.thickness, dtype: "f32", role: "thickness", nullable: true, origin: VIZ_ORIGIN },
|
|
194
225
|
shape: { name: EDGE_COLUMNS.shape, dtype: "dict", role: "shape", nullable: true, origin: VIZ_ORIGIN },
|
|
195
226
|
};
|
|
196
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* The bit of the `open` column marking an open start (design section 5.1).
|
|
229
|
+
* @category Plugin helpers
|
|
230
|
+
*/
|
|
197
231
|
export const OPEN_START = 1;
|
|
198
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* The bit of the `open` column marking an open end.
|
|
234
|
+
* @category Plugin helpers
|
|
235
|
+
*/
|
|
199
236
|
export const OPEN_END = 2;
|
|
200
237
|
/** The prefix of a temporal extension table's name (design section 5.10). */
|
|
201
238
|
const TEMPORAL_TABLE_PREFIX = "temporal:";
|
|
202
|
-
/**
|
|
239
|
+
/**
|
|
240
|
+
* The column names of a temporal extension table (design section 5.10).
|
|
241
|
+
* @category Plugin helpers
|
|
242
|
+
*/
|
|
203
243
|
export const TEMPORAL_COLUMNS = Object.freeze({
|
|
204
244
|
element: "element",
|
|
205
245
|
start: "start",
|
|
@@ -215,6 +255,7 @@ export const TEMPORAL_COLUMNS = Object.freeze({
|
|
|
215
255
|
* @param domain - node or edge
|
|
216
256
|
* @param column - the static column's name
|
|
217
257
|
* @returns `temporal:<domain>:<column>`
|
|
258
|
+
* @category Plugin helpers
|
|
218
259
|
*/
|
|
219
260
|
export function temporalTableName(domain, column) {
|
|
220
261
|
return `${TEMPORAL_TABLE_PREFIX}${domain}:${column}`;
|
|
@@ -223,6 +264,7 @@ export function temporalTableName(domain, column) {
|
|
|
223
264
|
* Split a temporal table name into its domain and column.
|
|
224
265
|
* @param name - the table name
|
|
225
266
|
* @returns the parts, or null when the name is not a temporal table's
|
|
267
|
+
* @category Plugin helpers
|
|
226
268
|
*/
|
|
227
269
|
export function parseTemporalTableName(name) {
|
|
228
270
|
if (!name.startsWith(TEMPORAL_TABLE_PREFIX)) {
|
|
@@ -247,6 +289,7 @@ export function parseTemporalTableName(name) {
|
|
|
247
289
|
* @param value - the value column's declaration fields (dtype, itemDtype, options...)
|
|
248
290
|
* @param temporalValue - whether the value is itself a temporal type needing a text companion
|
|
249
291
|
* @returns the declarations in table order
|
|
292
|
+
* @category Plugin helpers
|
|
250
293
|
*/
|
|
251
294
|
export function temporalTableDecls(domain, value, temporalValue) {
|
|
252
295
|
const decls = [
|
|
@@ -293,6 +336,7 @@ const TYPES_1_3 = new Set([
|
|
|
293
336
|
* @param type - the type text
|
|
294
337
|
* @param version - the target version
|
|
295
338
|
* @returns true when the version declares it
|
|
339
|
+
* @category Plugin helpers
|
|
296
340
|
*/
|
|
297
341
|
export function isScalarType(type, version) {
|
|
298
342
|
return (version === "1.2" ? TYPES_1_2 : TYPES_1_3).has(type);
|
|
@@ -302,6 +346,7 @@ export function isScalarType(type, version) {
|
|
|
302
346
|
* @param type - the type text
|
|
303
347
|
* @param version - the target version
|
|
304
348
|
* @returns true when the version declares it
|
|
349
|
+
* @category Plugin helpers
|
|
305
350
|
*/
|
|
306
351
|
export function isListType(type, version) {
|
|
307
352
|
if (version === "1.2") {
|
|
@@ -313,6 +358,7 @@ export function isListType(type, version) {
|
|
|
313
358
|
* The canonical GEXF scalar type of a column dtype (design section 5.1 reversed).
|
|
314
359
|
* @param dtype - a scalar dtype
|
|
315
360
|
* @returns the type text; u32 becomes `long` (its range exceeds `integer`), u8 `integer`, json `string`
|
|
361
|
+
* @category Plugin helpers
|
|
316
362
|
*/
|
|
317
363
|
export function canonicalScalarType(dtype) {
|
|
318
364
|
switch (dtype) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/formats/gexf/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/formats/gexf/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQ5E;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmF;IAC3G,KAAK,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,GAAG,EAAE,kCAAkC,EAAE;IACxF,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,GAAG,EAAE,yBAAyB,EAAE;CACzE,CAAC;AAQF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAwB,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAEpG;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAwB,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAExF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;AAE5F;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AAEnC,oDAAoD;AACpD,MAAM,UAAU,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAE3C,8CAA8C;AAC9C,MAAM,UAAU,GAAG,EAA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