@graphty/graph-io 0.3.48 → 0.3.50
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/{approximations-C2riR4NT.js → approximations-BRXsll0T.js} +2 -2
- package/dist/chunks/{approximations-C2riR4NT.js.map → approximations-BRXsll0T.js.map} +1 -1
- package/dist/chunks/bends-BGXjv_U4.js +129 -0
- package/dist/chunks/bends-BGXjv_U4.js.map +1 -0
- package/dist/chunks/{block-Cu22ewuS.js → block-yl0f_qLO.js} +931 -164
- package/dist/chunks/block-yl0f_qLO.js.map +1 -0
- package/dist/chunks/choose-CczZJaX_.js +717 -0
- package/dist/chunks/choose-CczZJaX_.js.map +1 -0
- package/dist/chunks/{codes-CV_Bhcyi.js → codes-BE2xir2k.js} +6 -2
- package/dist/chunks/codes-BE2xir2k.js.map +1 -0
- package/dist/chunks/{constants-D0LqcsLJ.js → constants-CKkYLPtt.js} +2 -2
- package/dist/chunks/{constants-D0LqcsLJ.js.map → constants-CKkYLPtt.js.map} +1 -1
- package/dist/chunks/{context-cgmmOxZ2.js → context-DizmppHy.js} +5 -4
- package/dist/chunks/{context-cgmmOxZ2.js.map → context-DizmppHy.js.map} +1 -1
- package/dist/chunks/{convert-BcQ8_jMo.js → convert-Ct2zelbQ.js} +7 -2
- package/dist/chunks/convert-Ct2zelbQ.js.map +1 -0
- package/dist/chunks/{credentials-BiQsnMTb.js → credentials-CmvJXYeH.js} +67 -16
- package/dist/chunks/credentials-CmvJXYeH.js.map +1 -0
- package/dist/chunks/{cx-export-BEeF6ymo.js → cx-export-Bt6NoqTQ.js} +3 -3
- package/dist/chunks/{cx-export-BEeF6ymo.js.map → cx-export-Bt6NoqTQ.js.map} +1 -1
- package/dist/chunks/descriptor-B28U25x4.js +60 -0
- package/dist/chunks/descriptor-B28U25x4.js.map +1 -0
- package/dist/chunks/{descriptor-BJ-W0Jd-.js → descriptor-Dhez_Cew.js} +11 -2
- package/dist/chunks/descriptor-Dhez_Cew.js.map +1 -0
- package/dist/chunks/{emit-CD8xnY8s.js → emit-7Jkpg0yd.js} +1788 -133
- package/dist/chunks/emit-7Jkpg0yd.js.map +1 -0
- package/dist/chunks/{escape-DH2Egt-l.js → escape-CuCIzNMB.js} +8 -8
- package/dist/chunks/{escape-DH2Egt-l.js.map → escape-CuCIzNMB.js.map} +1 -1
- package/dist/chunks/{export-CZ7VRm4I.js → export-Cha4dRFz.js} +45 -387
- package/dist/chunks/export-Cha4dRFz.js.map +1 -0
- package/dist/chunks/{exporter-ChjL5fmP.js → exporter-1Ajud15J.js} +9 -8
- package/dist/chunks/{exporter-ChjL5fmP.js.map → exporter-1Ajud15J.js.map} +1 -1
- package/dist/chunks/{exporter-BIdaoIgh.js → exporter-B6yvL3wy.js} +7 -7
- package/dist/chunks/{exporter-BIdaoIgh.js.map → exporter-B6yvL3wy.js.map} +1 -1
- package/dist/chunks/{exporter-Dcw7Ldtq.js → exporter-BP6otMO6.js} +6 -6
- package/dist/chunks/{exporter-Dcw7Ldtq.js.map → exporter-BP6otMO6.js.map} +1 -1
- package/dist/chunks/{exporter-DtVU80Fa.js → exporter-CA5q8ROP.js} +9 -8
- package/dist/chunks/{exporter-DtVU80Fa.js.map → exporter-CA5q8ROP.js.map} +1 -1
- package/dist/chunks/{exporter-bxxjOrDZ.js → exporter-CQQZFJ2v.js} +1284 -156
- package/dist/chunks/exporter-CQQZFJ2v.js.map +1 -0
- package/dist/chunks/format-BXiAb-1h.js +408 -0
- package/dist/chunks/format-BXiAb-1h.js.map +1 -0
- package/dist/chunks/{generic-CP6YD34u.js → generic-Dc21MAdg.js} +387 -31
- package/dist/chunks/generic-Dc21MAdg.js.map +1 -0
- package/dist/chunks/{importer-B87_fmVx.js → importer-C6NVpCXp.js} +327 -84
- package/dist/chunks/importer-C6NVpCXp.js.map +1 -0
- package/dist/chunks/{importer-DPZDN40-.js → importer-CKFe4q54.js} +25 -17
- package/dist/chunks/importer-CKFe4q54.js.map +1 -0
- package/dist/chunks/{importer-Bji2MeWr.js → importer-CKbUbsJA.js} +13 -10
- package/dist/chunks/{importer-Bji2MeWr.js.map → importer-CKbUbsJA.js.map} +1 -1
- package/dist/chunks/{importer-CB_zV5_L.js → importer-ClCsdgTJ.js} +208 -1104
- package/dist/chunks/importer-ClCsdgTJ.js.map +1 -0
- package/dist/chunks/{importer-e3huMZbm.js → importer-CyVZTrf0.js} +14 -10
- package/dist/chunks/importer-CyVZTrf0.js.map +1 -0
- package/dist/chunks/{importer-CVT-JyDE.js → importer-DgG4v1Ms.js} +1537 -355
- package/dist/chunks/importer-DgG4v1Ms.js.map +1 -0
- package/dist/chunks/{importer-Cyy6UseH.js → importer-asFUrIsj.js} +66 -13
- package/dist/chunks/importer-asFUrIsj.js.map +1 -0
- package/dist/chunks/{input-Ccg9I22A.js → input-CAxt_aV-.js} +4 -4
- package/dist/chunks/{input-Ccg9I22A.js.map → input-CAxt_aV-.js.map} +1 -1
- package/dist/chunks/{json-elements-By172SVq.js → json-elements-Cq76WjnZ.js} +4 -4
- package/dist/chunks/{json-elements-By172SVq.js.map → json-elements-Cq76WjnZ.js.map} +1 -1
- package/dist/chunks/{lexicon-u2SI5xcx.js → lexicon-IVRq2Uoo.js} +282 -74
- package/dist/chunks/lexicon-IVRq2Uoo.js.map +1 -0
- package/dist/chunks/{ontology-export-BwgMyuF0.js → ontology-export-OMo91mb0.js} +4 -4
- package/dist/chunks/{ontology-export-BwgMyuF0.js.map → ontology-export-OMo91mb0.js.map} +1 -1
- package/dist/chunks/{records-Cgvxz-Vx.js → records-NJiYvekn.js} +2 -2
- package/dist/chunks/{records-Cgvxz-Vx.js.map → records-NJiYvekn.js.map} +1 -1
- package/dist/chunks/{report-CgdsL9Hb.js → report-CwMfYa9J.js} +23 -23
- package/dist/chunks/{report-CgdsL9Hb.js.map → report-CwMfYa9J.js.map} +1 -1
- package/dist/chunks/round-trip-Cy3_SHRZ.js +79 -0
- package/dist/chunks/round-trip-Cy3_SHRZ.js.map +1 -0
- package/dist/chunks/{sigv4-LkAzsLAu.js → sigv4-BXwVbza3.js} +5 -5
- package/dist/chunks/sigv4-BXwVbza3.js.map +1 -0
- package/dist/chunks/{styles-CaABMoO1.js → styles-CAVmBLgp.js} +1237 -138
- package/dist/chunks/styles-CAVmBLgp.js.map +1 -0
- package/dist/chunks/styles-CPczw1Jz.js +1928 -0
- package/dist/chunks/styles-CPczw1Jz.js.map +1 -0
- package/dist/chunks/styles-boK6Ln54.js +2847 -0
- package/dist/chunks/styles-boK6Ln54.js.map +1 -0
- package/dist/chunks/{styles-yed-Cs1nmrjn.js → styles-yed-XeFBQ6VS.js} +506 -175
- package/dist/chunks/styles-yed-XeFBQ6VS.js.map +1 -0
- package/dist/chunks/{text-BuKQVMz2.js → text-ystE2bYi.js} +2 -2
- package/dist/chunks/{text-BuKQVMz2.js.map → text-ystE2bYi.js.map} +1 -1
- package/dist/csv.js +7 -7
- package/dist/cx.js +2 -2
- package/dist/cx2.js +2 -2
- package/dist/cys.js +1 -1
- package/dist/dot.js +8 -4
- package/dist/dot.js.map +1 -1
- package/dist/gexf.js +42 -12
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +848 -194
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +230 -193
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +3 -3
- package/dist/json.js +3 -2
- package/dist/neo4j.js +6 -6
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/positions.js +45 -3
- package/dist/positions.js.map +1 -1
- package/dist/sources-cypher.js +141 -23
- package/dist/sources-cypher.js.map +1 -1
- package/dist/sources-ndex.js +2 -2
- package/dist/sources-rest.js +32 -6
- package/dist/sources-rest.js.map +1 -1
- package/dist/sources-sparql.d.ts +1 -0
- package/dist/sources-sparql.js +439 -0
- package/dist/sources-sparql.js.map +1 -0
- package/dist/src/formats/cx/importer.d.ts.map +1 -1
- package/dist/src/formats/cx/importer.js +5 -1
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx/styles.d.ts +24 -1
- package/dist/src/formats/cx/styles.d.ts.map +1 -1
- package/dist/src/formats/cx/styles.js +117 -11
- package/dist/src/formats/cx/styles.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +1 -0
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cx2/styles.d.ts.map +1 -1
- package/dist/src/formats/cx2/styles.js +3 -1
- package/dist/src/formats/cx2/styles.js.map +1 -1
- package/dist/src/formats/cys/importer.d.ts.map +1 -1
- package/dist/src/formats/cys/importer.js +1 -0
- package/dist/src/formats/cys/importer.js.map +1 -1
- package/dist/src/formats/cys/styles.d.ts +2 -0
- package/dist/src/formats/cys/styles.d.ts.map +1 -1
- package/dist/src/formats/cys/styles.js +15 -7
- package/dist/src/formats/cys/styles.js.map +1 -1
- package/dist/src/formats/dot/drawing.d.ts +98 -0
- package/dist/src/formats/dot/drawing.d.ts.map +1 -0
- package/dist/src/formats/dot/drawing.js +734 -0
- package/dist/src/formats/dot/drawing.js.map +1 -0
- package/dist/src/formats/dot/exporter.d.ts.map +1 -1
- package/dist/src/formats/dot/exporter.js +34 -2
- package/dist/src/formats/dot/exporter.js.map +1 -1
- package/dist/src/formats/dot/importer.d.ts +6 -1
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +170 -33
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/dot/index.d.ts +3 -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/label-places.d.ts +41 -0
- package/dist/src/formats/dot/label-places.d.ts.map +1 -0
- package/dist/src/formats/dot/label-places.js +185 -0
- package/dist/src/formats/dot/label-places.js.map +1 -0
- package/dist/src/formats/dot/names.d.ts +13 -0
- package/dist/src/formats/dot/names.d.ts.map +1 -1
- package/dist/src/formats/dot/names.js +13 -0
- package/dist/src/formats/dot/names.js.map +1 -1
- package/dist/src/formats/dot/record.d.ts +50 -0
- package/dist/src/formats/dot/record.d.ts.map +1 -0
- package/dist/src/formats/dot/record.js +275 -0
- package/dist/src/formats/dot/record.js.map +1 -0
- package/dist/src/formats/dot/styles.d.ts +72 -2
- package/dist/src/formats/dot/styles.d.ts.map +1 -1
- package/dist/src/formats/dot/styles.js +1500 -119
- package/dist/src/formats/dot/styles.js.map +1 -1
- package/dist/src/formats/gexf/dialog-metrics.d.ts +15 -0
- package/dist/src/formats/gexf/dialog-metrics.d.ts.map +1 -0
- package/dist/src/formats/gexf/dialog-metrics.js +59 -0
- package/dist/src/formats/gexf/dialog-metrics.js.map +1 -0
- package/dist/src/formats/gexf/importer.d.ts +7 -0
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +41 -5
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gexf/preview.d.ts +77 -0
- package/dist/src/formats/gexf/preview.d.ts.map +1 -0
- package/dist/src/formats/gexf/preview.js +191 -0
- package/dist/src/formats/gexf/preview.js.map +1 -0
- package/dist/src/formats/gexf/schema.d.ts.map +1 -1
- package/dist/src/formats/gexf/schema.js +2 -1
- package/dist/src/formats/gexf/schema.js.map +1 -1
- package/dist/src/formats/gexf/styles.d.ts +58 -31
- package/dist/src/formats/gexf/styles.d.ts.map +1 -1
- package/dist/src/formats/gexf/styles.js +848 -225
- package/dist/src/formats/gexf/styles.js.map +1 -1
- package/dist/src/formats/gml/importer.d.ts +5 -2
- package/dist/src/formats/gml/importer.d.ts.map +1 -1
- package/dist/src/formats/gml/importer.js +258 -71
- package/dist/src/formats/gml/importer.js.map +1 -1
- package/dist/src/formats/gml/index.d.ts +1 -1
- package/dist/src/formats/gml/index.d.ts.map +1 -1
- package/dist/src/formats/gml/index.js +1 -1
- package/dist/src/formats/gml/index.js.map +1 -1
- package/dist/src/formats/gml/positions.d.ts +7 -0
- package/dist/src/formats/gml/positions.d.ts.map +1 -1
- package/dist/src/formats/gml/positions.js +29 -7
- package/dist/src/formats/gml/positions.js.map +1 -1
- package/dist/src/formats/gml/styles.d.ts.map +1 -1
- package/dist/src/formats/gml/styles.js +754 -102
- package/dist/src/formats/gml/styles.js.map +1 -1
- package/dist/src/formats/graphml/styles-plain.d.ts.map +1 -1
- package/dist/src/formats/graphml/styles-plain.js +6 -10
- package/dist/src/formats/graphml/styles-plain.js.map +1 -1
- package/dist/src/formats/graphml/styles-yed.d.ts +21 -15
- package/dist/src/formats/graphml/styles-yed.d.ts.map +1 -1
- package/dist/src/formats/graphml/styles-yed.js +695 -164
- package/dist/src/formats/graphml/styles-yed.js.map +1 -1
- package/dist/src/formats/graphml/styles-yfiles3.d.ts +1 -1
- package/dist/src/formats/graphml/styles-yfiles3.d.ts.map +1 -1
- package/dist/src/formats/graphml/styles-yfiles3.js +431 -64
- package/dist/src/formats/graphml/styles-yfiles3.js.map +1 -1
- package/dist/src/formats/graphml/yfiles.d.ts +3 -3
- package/dist/src/formats/graphml/yfiles.d.ts.map +1 -1
- package/dist/src/formats/graphml/yfiles.js +16 -6
- package/dist/src/formats/graphml/yfiles.js.map +1 -1
- package/dist/src/formats/json/dialect.d.ts +3 -2
- package/dist/src/formats/json/dialect.d.ts.map +1 -1
- package/dist/src/formats/json/dialect.js +39 -5
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/json/importer.d.ts +13 -2
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +42 -6
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/json/index.d.ts +1 -1
- package/dist/src/formats/json/index.d.ts.map +1 -1
- package/dist/src/formats/json/index.js +1 -1
- package/dist/src/formats/json/index.js.map +1 -1
- package/dist/src/formats/json/positions.d.ts +5 -2
- package/dist/src/formats/json/positions.d.ts.map +1 -1
- package/dist/src/formats/json/positions.js +20 -4
- package/dist/src/formats/json/positions.js.map +1 -1
- package/dist/src/formats/json/styles.d.ts +12 -1
- package/dist/src/formats/json/styles.d.ts.map +1 -1
- package/dist/src/formats/json/styles.js +1843 -136
- package/dist/src/formats/json/styles.js.map +1 -1
- package/dist/src/formats/pajek/draw.d.ts +104 -0
- package/dist/src/formats/pajek/draw.d.ts.map +1 -0
- package/dist/src/formats/pajek/draw.js +382 -0
- package/dist/src/formats/pajek/draw.js.map +1 -0
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +70 -51
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts +9 -0
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +233 -102
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/index.d.ts +1 -0
- package/dist/src/formats/pajek/index.d.ts.map +1 -1
- package/dist/src/formats/pajek/index.js.map +1 -1
- package/dist/src/formats/pajek/styles.d.ts +15 -7
- package/dist/src/formats/pajek/styles.d.ts.map +1 -1
- package/dist/src/formats/pajek/styles.js +1395 -114
- package/dist/src/formats/pajek/styles.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts +10 -1
- package/dist/src/formats/pajek/syntax.d.ts.map +1 -1
- package/dist/src/formats/pajek/syntax.js +26 -2
- package/dist/src/formats/pajek/syntax.js.map +1 -1
- package/dist/src/formats/xgmml/emit.d.ts +1 -0
- package/dist/src/formats/xgmml/emit.d.ts.map +1 -1
- package/dist/src/formats/xgmml/emit.js +65 -5
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/styles.d.ts +23 -3
- package/dist/src/formats/xgmml/styles.d.ts.map +1 -1
- package/dist/src/formats/xgmml/styles.js +277 -60
- package/dist/src/formats/xgmml/styles.js.map +1 -1
- package/dist/src/index.d.ts +6 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/positions/convert.d.ts.map +1 -1
- package/dist/src/positions/convert.js +11 -1
- package/dist/src/positions/convert.js.map +1 -1
- package/dist/src/positions/extract.d.ts.map +1 -1
- package/dist/src/positions/extract.js +53 -1
- package/dist/src/positions/extract.js.map +1 -1
- package/dist/src/positions/index.d.ts +1 -1
- package/dist/src/positions/index.d.ts.map +1 -1
- package/dist/src/positions/types.d.ts +59 -0
- package/dist/src/positions/types.d.ts.map +1 -1
- package/dist/src/sources/builtins.d.ts +1 -1
- package/dist/src/sources/builtins.d.ts.map +1 -1
- package/dist/src/sources/builtins.js +8 -2
- package/dist/src/sources/builtins.js.map +1 -1
- package/dist/src/sources/context.d.ts.map +1 -1
- package/dist/src/sources/context.js +1 -0
- package/dist/src/sources/context.js.map +1 -1
- package/dist/src/sources/credentials.d.ts +50 -1
- package/dist/src/sources/credentials.d.ts.map +1 -1
- package/dist/src/sources/credentials.js +69 -0
- package/dist/src/sources/credentials.js.map +1 -1
- package/dist/src/sources/cypher/descriptor.d.ts.map +1 -1
- package/dist/src/sources/cypher/descriptor.js +5 -0
- package/dist/src/sources/cypher/descriptor.js.map +1 -1
- package/dist/src/sources/cypher/index.d.ts.map +1 -1
- package/dist/src/sources/cypher/index.js +125 -18
- package/dist/src/sources/cypher/index.js.map +1 -1
- package/dist/src/sources/cypher/params.d.ts +1 -1
- package/dist/src/sources/cypher/params.d.ts.map +1 -1
- package/dist/src/sources/cypher/query-builder.d.ts +17 -0
- package/dist/src/sources/cypher/query-builder.d.ts.map +1 -1
- package/dist/src/sources/cypher/query-builder.js +31 -0
- package/dist/src/sources/cypher/query-builder.js.map +1 -1
- package/dist/src/sources/ids.d.ts +5 -0
- package/dist/src/sources/ids.d.ts.map +1 -1
- package/dist/src/sources/ids.js +5 -0
- package/dist/src/sources/ids.js.map +1 -1
- package/dist/src/sources/params.d.ts +3 -0
- package/dist/src/sources/params.d.ts.map +1 -1
- package/dist/src/sources/rest/descriptor.d.ts.map +1 -1
- package/dist/src/sources/rest/descriptor.js +9 -0
- package/dist/src/sources/rest/descriptor.js.map +1 -1
- package/dist/src/sources/rest/openalex.d.ts +4 -2
- package/dist/src/sources/rest/openalex.d.ts.map +1 -1
- package/dist/src/sources/rest/openalex.js +4 -2
- package/dist/src/sources/rest/openalex.js.map +1 -1
- package/dist/src/sources/rest/source.d.ts.map +1 -1
- package/dist/src/sources/rest/source.js +38 -0
- package/dist/src/sources/rest/source.js.map +1 -1
- package/dist/src/sources/run.d.ts +2 -0
- package/dist/src/sources/run.d.ts.map +1 -1
- package/dist/src/sources/run.js +30 -3
- package/dist/src/sources/run.js.map +1 -1
- package/dist/src/sources/sigv4.d.ts +5 -3
- package/dist/src/sources/sigv4.d.ts.map +1 -1
- package/dist/src/sources/sigv4.js +6 -4
- package/dist/src/sources/sigv4.js.map +1 -1
- package/dist/src/sources/sparql/descriptor.d.ts +10 -0
- package/dist/src/sources/sparql/descriptor.d.ts.map +1 -0
- package/dist/src/sources/sparql/descriptor.js +64 -0
- package/dist/src/sources/sparql/descriptor.js.map +1 -0
- package/dist/src/sources/sparql/index.d.ts +28 -0
- package/dist/src/sources/sparql/index.d.ts.map +1 -0
- package/dist/src/sources/sparql/index.js +327 -0
- package/dist/src/sources/sparql/index.js.map +1 -0
- package/dist/src/sources/sparql/ntriples.d.ts +69 -0
- package/dist/src/sources/sparql/ntriples.d.ts.map +1 -0
- package/dist/src/sources/sparql/ntriples.js +180 -0
- package/dist/src/sources/sparql/ntriples.js.map +1 -0
- package/dist/src/sources/sparql/params.d.ts +27 -0
- package/dist/src/sources/sparql/params.d.ts.map +1 -0
- package/dist/src/sources/sparql/params.js +5 -0
- package/dist/src/sources/sparql/params.js.map +1 -0
- package/dist/src/sources/sparql/query.d.ts +73 -0
- package/dist/src/sources/sparql/query.d.ts.map +1 -0
- package/dist/src/sources/sparql/query.js +164 -0
- package/dist/src/sources/sparql/query.js.map +1 -0
- package/dist/src/sources/types.d.ts +60 -0
- package/dist/src/sources/types.d.ts.map +1 -1
- package/dist/src/styles/annotations.d.ts +61 -5
- package/dist/src/styles/annotations.d.ts.map +1 -1
- package/dist/src/styles/annotations.js +130 -22
- package/dist/src/styles/annotations.js.map +1 -1
- package/dist/src/styles/canon/bends.d.ts +46 -0
- package/dist/src/styles/canon/bends.d.ts.map +1 -1
- package/dist/src/styles/canon/bends.js +123 -0
- package/dist/src/styles/canon/bends.js.map +1 -1
- package/dist/src/styles/canon/color-tables.d.ts +6 -1
- package/dist/src/styles/canon/color-tables.d.ts.map +1 -1
- package/dist/src/styles/canon/color-tables.js +10 -4
- package/dist/src/styles/canon/color-tables.js.map +1 -1
- package/dist/src/styles/canon/color.d.ts +3 -1
- package/dist/src/styles/canon/color.d.ts.map +1 -1
- package/dist/src/styles/canon/color.js +103 -3
- package/dist/src/styles/canon/color.js.map +1 -1
- package/dist/src/styles/canon/enums.d.ts +2 -2
- package/dist/src/styles/canon/enums.d.ts.map +1 -1
- package/dist/src/styles/canon/enums.js +89 -7
- package/dist/src/styles/canon/enums.js.map +1 -1
- package/dist/src/styles/canon/graphviz.d.ts +12 -3
- package/dist/src/styles/canon/graphviz.d.ts.map +1 -1
- package/dist/src/styles/canon/graphviz.js +57 -9
- package/dist/src/styles/canon/graphviz.js.map +1 -1
- package/dist/src/styles/canon/number.d.ts +8 -0
- package/dist/src/styles/canon/number.d.ts.map +1 -1
- package/dist/src/styles/canon/number.js +18 -0
- package/dist/src/styles/canon/number.js.map +1 -1
- package/dist/src/styles/canon/text.d.ts +29 -2
- package/dist/src/styles/canon/text.d.ts.map +1 -1
- package/dist/src/styles/canon/text.js +156 -16
- package/dist/src/styles/canon/text.js.map +1 -1
- package/dist/src/styles/codes.d.ts +2 -0
- package/dist/src/styles/codes.d.ts.map +1 -1
- package/dist/src/styles/codes.js +2 -0
- package/dist/src/styles/codes.js.map +1 -1
- package/dist/src/styles/cyjs/cascade.d.ts.map +1 -1
- package/dist/src/styles/cyjs/cascade.js +1139 -79
- package/dist/src/styles/cyjs/cascade.js.map +1 -1
- package/dist/src/styles/cyjs/defaults-table.d.ts.map +1 -1
- package/dist/src/styles/cyjs/defaults-table.js +4 -0
- package/dist/src/styles/cyjs/defaults-table.js.map +1 -1
- package/dist/src/styles/cyjs/emit.d.ts.map +1 -1
- package/dist/src/styles/cyjs/emit.js +232 -10
- package/dist/src/styles/cyjs/emit.js.map +1 -1
- package/dist/src/styles/cyjs/face.d.ts +20 -0
- package/dist/src/styles/cyjs/face.d.ts.map +1 -0
- package/dist/src/styles/cyjs/face.js +332 -0
- package/dist/src/styles/cyjs/face.js.map +1 -0
- package/dist/src/styles/cyjs/mappers.d.ts +44 -1
- package/dist/src/styles/cyjs/mappers.d.ts.map +1 -1
- package/dist/src/styles/cyjs/mappers.js +475 -26
- package/dist/src/styles/cyjs/mappers.js.map +1 -1
- package/dist/src/styles/cyjs/routes.d.ts +53 -0
- package/dist/src/styles/cyjs/routes.d.ts.map +1 -0
- package/dist/src/styles/cyjs/routes.js +360 -0
- package/dist/src/styles/cyjs/routes.js.map +1 -0
- package/dist/src/styles/cytoscape/charts.d.ts +23 -0
- package/dist/src/styles/cytoscape/charts.d.ts.map +1 -0
- package/dist/src/styles/cytoscape/charts.js +560 -0
- package/dist/src/styles/cytoscape/charts.js.map +1 -0
- package/dist/src/styles/cytoscape/emit.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/emit.js +156 -48
- package/dist/src/styles/cytoscape/emit.js.map +1 -1
- package/dist/src/styles/cytoscape/lexicon.d.ts +91 -3
- package/dist/src/styles/cytoscape/lexicon.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/lexicon.js +387 -77
- package/dist/src/styles/cytoscape/lexicon.js.map +1 -1
- package/dist/src/styles/cytoscape/mappings.d.ts +30 -0
- package/dist/src/styles/cytoscape/mappings.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/mappings.js +92 -0
- package/dist/src/styles/cytoscape/mappings.js.map +1 -1
- package/dist/src/styles/cytoscape/resolve.d.ts +42 -2
- package/dist/src/styles/cytoscape/resolve.d.ts.map +1 -1
- package/dist/src/styles/cytoscape/resolve.js +623 -17
- package/dist/src/styles/cytoscape/resolve.js.map +1 -1
- package/dist/src/styles/defaults.d.ts +46 -26
- package/dist/src/styles/defaults.d.ts.map +1 -1
- package/dist/src/styles/defaults.js +308 -71
- package/dist/src/styles/defaults.js.map +1 -1
- package/dist/src/styles/index.d.ts +4 -3
- package/dist/src/styles/index.d.ts.map +1 -1
- package/dist/src/styles/index.js +3 -2
- package/dist/src/styles/index.js.map +1 -1
- package/dist/src/styles/internal.d.ts +1 -0
- package/dist/src/styles/internal.d.ts.map +1 -1
- package/dist/src/styles/internal.js +1 -0
- package/dist/src/styles/internal.js.map +1 -1
- package/dist/src/styles/io/generic.d.ts.map +1 -1
- package/dist/src/styles/io/generic.js +56 -16
- package/dist/src/styles/io/generic.js.map +1 -1
- package/dist/src/styles/io/round-trip.d.ts +56 -0
- package/dist/src/styles/io/round-trip.d.ts.map +1 -0
- package/dist/src/styles/io/round-trip.js +138 -0
- package/dist/src/styles/io/round-trip.js.map +1 -0
- package/dist/src/styles/io/writer.d.ts.map +1 -1
- package/dist/src/styles/io/writer.js +6 -1
- package/dist/src/styles/io/writer.js.map +1 -1
- package/dist/src/styles/notes.d.ts.map +1 -1
- package/dist/src/styles/notes.js +1 -0
- package/dist/src/styles/notes.js.map +1 -1
- package/dist/src/styles/plan/features.d.ts +1 -1
- package/dist/src/styles/plan/features.d.ts.map +1 -1
- package/dist/src/styles/plan/features.js +22 -2
- package/dist/src/styles/plan/features.js.map +1 -1
- package/dist/src/styles/plan/index.d.ts +1 -1
- package/dist/src/styles/plan/index.d.ts.map +1 -1
- package/dist/src/styles/plan/index.js +1 -1
- package/dist/src/styles/plan/index.js.map +1 -1
- package/dist/src/styles/plan/plan.d.ts.map +1 -1
- package/dist/src/styles/plan/plan.js +61 -4
- package/dist/src/styles/plan/plan.js.map +1 -1
- package/dist/src/styles/plan/resolve.d.ts +11 -0
- package/dist/src/styles/plan/resolve.d.ts.map +1 -1
- package/dist/src/styles/plan/resolve.js +40 -4
- package/dist/src/styles/plan/resolve.js.map +1 -1
- package/dist/src/styles/slots.d.ts +14 -0
- package/dist/src/styles/slots.d.ts.map +1 -0
- package/dist/src/styles/slots.js +20 -0
- package/dist/src/styles/slots.js.map +1 -0
- package/dist/src/styles/types.d.ts +687 -6
- package/dist/src/styles/types.d.ts.map +1 -1
- package/dist/src/styles/vocabulary.d.ts +3 -2
- package/dist/src/styles/vocabulary.d.ts.map +1 -1
- package/dist/src/styles/vocabulary.js +224 -0
- package/dist/src/styles/vocabulary.js.map +1 -1
- package/dist/styles.js +30 -239
- package/dist/styles.js.map +1 -1
- package/dist/xgmml.js +3 -3
- package/package.json +27 -7
- package/src/formats/cx/importer.ts +6 -1
- package/src/formats/cx/styles.ts +143 -9
- package/src/formats/cx2/importer.ts +1 -0
- package/src/formats/cx2/styles.ts +3 -1
- package/src/formats/cys/importer.ts +1 -0
- package/src/formats/cys/styles.ts +27 -5
- package/src/formats/dot/drawing.ts +799 -0
- package/src/formats/dot/exporter.ts +37 -1
- package/src/formats/dot/importer.ts +192 -36
- package/src/formats/dot/index.ts +3 -1
- package/src/formats/dot/label-places.ts +241 -0
- package/src/formats/dot/names.ts +15 -0
- package/src/formats/dot/record.ts +336 -0
- package/src/formats/dot/styles.ts +1702 -149
- package/src/formats/gexf/dialog-metrics.ts +61 -0
- package/src/formats/gexf/importer.ts +50 -5
- package/src/formats/gexf/preview.ts +217 -0
- package/src/formats/gexf/schema.ts +2 -1
- package/src/formats/gexf/styles.ts +1099 -245
- package/src/formats/gml/importer.ts +291 -76
- package/src/formats/gml/index.ts +1 -1
- package/src/formats/gml/positions.ts +29 -7
- package/src/formats/gml/styles.ts +852 -110
- package/src/formats/graphml/styles-plain.ts +6 -15
- package/src/formats/graphml/styles-yed.ts +765 -176
- package/src/formats/graphml/styles-yfiles3.ts +487 -63
- package/src/formats/graphml/yfiles.ts +19 -6
- package/src/formats/json/dialect.ts +41 -5
- package/src/formats/json/importer.ts +59 -7
- package/src/formats/json/index.ts +1 -0
- package/src/formats/json/positions.ts +22 -5
- package/src/formats/json/styles.ts +2123 -171
- package/src/formats/pajek/draw.ts +469 -0
- package/src/formats/pajek/exporter.ts +81 -49
- package/src/formats/pajek/importer.ts +278 -103
- package/src/formats/pajek/index.ts +1 -0
- package/src/formats/pajek/styles.ts +1506 -133
- package/src/formats/pajek/syntax.ts +27 -2
- package/src/formats/xgmml/emit.ts +73 -5
- package/src/formats/xgmml/styles.ts +330 -71
- package/src/index.ts +12 -1
- package/src/positions/convert.ts +12 -1
- package/src/positions/extract.ts +55 -1
- package/src/positions/index.ts +1 -0
- package/src/positions/types.ts +60 -0
- package/src/sources/builtins.ts +8 -1
- package/src/sources/context.ts +1 -0
- package/src/sources/credentials.ts +90 -1
- package/src/sources/cypher/descriptor.ts +7 -1
- package/src/sources/cypher/index.ts +149 -18
- package/src/sources/cypher/params.ts +1 -1
- package/src/sources/cypher/query-builder.ts +33 -0
- package/src/sources/ids.ts +6 -0
- package/src/sources/params.ts +3 -0
- package/src/sources/rest/descriptor.ts +9 -0
- package/src/sources/rest/openalex.ts +4 -2
- package/src/sources/rest/source.ts +41 -0
- package/src/sources/run.ts +35 -3
- package/src/sources/sigv4.ts +6 -4
- package/src/sources/sparql/descriptor.ts +67 -0
- package/src/sources/sparql/index.ts +371 -0
- package/src/sources/sparql/ntriples.ts +219 -0
- package/src/sources/sparql/params.ts +28 -0
- package/src/sources/sparql/query.ts +216 -0
- package/src/sources/types.ts +68 -0
- package/src/styles/annotations.ts +201 -27
- package/src/styles/canon/bends.ts +137 -0
- package/src/styles/canon/color-tables.ts +10 -4
- package/src/styles/canon/color.ts +105 -3
- package/src/styles/canon/enums.ts +107 -8
- package/src/styles/canon/graphviz.ts +71 -10
- package/src/styles/canon/number.ts +19 -0
- package/src/styles/canon/text.ts +187 -16
- package/src/styles/codes.ts +2 -0
- package/src/styles/cyjs/cascade.ts +1303 -84
- package/src/styles/cyjs/defaults-table.ts +4 -0
- package/src/styles/cyjs/emit.ts +268 -14
- package/src/styles/cyjs/face.ts +372 -0
- package/src/styles/cyjs/mappers.ts +506 -27
- package/src/styles/cyjs/routes.ts +432 -0
- package/src/styles/cytoscape/charts.ts +684 -0
- package/src/styles/cytoscape/emit.ts +170 -48
- package/src/styles/cytoscape/lexicon.ts +431 -78
- package/src/styles/cytoscape/mappings.ts +108 -0
- package/src/styles/cytoscape/resolve.ts +741 -17
- package/src/styles/defaults.ts +417 -108
- package/src/styles/index.ts +5 -0
- package/src/styles/internal.ts +1 -0
- package/src/styles/io/generic.ts +79 -23
- package/src/styles/io/round-trip.ts +202 -0
- package/src/styles/io/writer.ts +6 -1
- package/src/styles/notes.ts +1 -0
- package/src/styles/plan/features.ts +23 -2
- package/src/styles/plan/index.ts +1 -1
- package/src/styles/plan/plan.ts +69 -5
- package/src/styles/plan/resolve.ts +47 -4
- package/src/styles/slots.ts +25 -0
- package/src/styles/types.ts +698 -5
- package/src/styles/vocabulary.ts +232 -2
- package/dist/chunks/block-Cu22ewuS.js.map +0 -1
- package/dist/chunks/choose-Cdx6Enl2.js +0 -57
- package/dist/chunks/choose-Cdx6Enl2.js.map +0 -1
- package/dist/chunks/codes-CV_Bhcyi.js.map +0 -1
- package/dist/chunks/convert-BcQ8_jMo.js.map +0 -1
- package/dist/chunks/credentials-BiQsnMTb.js.map +0 -1
- package/dist/chunks/descriptor-BJ-W0Jd-.js.map +0 -1
- package/dist/chunks/emit-CD8xnY8s.js.map +0 -1
- package/dist/chunks/export-CZ7VRm4I.js.map +0 -1
- package/dist/chunks/exporter-bxxjOrDZ.js.map +0 -1
- package/dist/chunks/format-BMS-1Nxb.js +0 -64
- package/dist/chunks/format-BMS-1Nxb.js.map +0 -1
- package/dist/chunks/generic-CP6YD34u.js.map +0 -1
- package/dist/chunks/importer-B87_fmVx.js.map +0 -1
- package/dist/chunks/importer-CB_zV5_L.js.map +0 -1
- package/dist/chunks/importer-CVT-JyDE.js.map +0 -1
- package/dist/chunks/importer-Cyy6UseH.js.map +0 -1
- package/dist/chunks/importer-DPZDN40-.js.map +0 -1
- package/dist/chunks/importer-e3huMZbm.js.map +0 -1
- package/dist/chunks/lexicon-u2SI5xcx.js.map +0 -1
- package/dist/chunks/sigv4-LkAzsLAu.js.map +0 -1
- package/dist/chunks/styles-CaABMoO1.js.map +0 -1
- package/dist/chunks/styles-P_gmFAOi.js +0 -770
- package/dist/chunks/styles-P_gmFAOi.js.map +0 -1
- package/dist/chunks/styles-yed-Cs1nmrjn.js.map +0 -1
- package/dist/chunks/writer-DvHTl36J.js +0 -449
- package/dist/chunks/writer-DvHTl36J.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sigv4.d.ts","sourceRoot":"","sources":["../../../src/sources/sigv4.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAoExD
|
|
1
|
+
{"version":3,"file":"sigv4.d.ts","sourceRoot":"","sources":["../../../src/sources/sigv4.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAoExD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAEpE;AAyDD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC7B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,eAAe,EACxB,GAAG,GAAE,IAAiB,GACvB,OAAO,CAAC,OAAO,CAAC,CAqDlB"}
|
|
@@ -66,12 +66,14 @@ async function sha256(data) {
|
|
|
66
66
|
return hex(await s.digest("SHA-256", data));
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* SHA-256
|
|
70
|
-
*
|
|
69
|
+
* SHA-256 as 64 lowercase hexadecimal digits: of bytes exactly as given, or of a text's UTF-8 bytes
|
|
70
|
+
* (the Cypher source's content hash, a project file's record of a file it loaded). Web Crypto where
|
|
71
|
+
* there is one, else plain JavaScript (a page that is not a secure context). Experimental.
|
|
72
|
+
* @param data - the bytes or the text
|
|
71
73
|
* @returns the digest
|
|
72
74
|
*/
|
|
73
|
-
export function sha256Hex(
|
|
74
|
-
return sha256(utf8(
|
|
75
|
+
export function sha256Hex(data) {
|
|
76
|
+
return sha256(typeof data === "string" ? utf8(data) : data);
|
|
75
77
|
}
|
|
76
78
|
/**
|
|
77
79
|
* HMAC-SHA-256.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sigv4.js","sourceRoot":"","sources":["../../../src/sources/sigv4.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,2EAA2E;AAC3E,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEzG;;;;GAIG;AACH,SAAS,IAAI,CAAC,IAAY;IACtB,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;GAKG;AACH,SAAS,WAAW,CAAC,CAAS,EAAE,CAAS;IACrC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACV,OAAO,CAAC,CAAC;IACb,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,MAAM;IACjB,MAAM,MAAM,GAAI,UAAkC,CAAC,MAAM,CAAC;IAC1D,IAAI,MAAM,EAAE,M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,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5F,IAAI,GAAG,GAAgB,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,eAAe,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAC7E,KAAK,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,CAAC;QAC3D,GAAG,GAAG,MAAM,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IACD,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CACP,eAAe,EACf,+BAA+B,KAAK,CAAC,WAAW,IAAI,KAAK,mBAAmB,aAAa,eAAe,SAAS,EAAE,CACtH,CAAC;IACF,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SPARQL source's descriptor: catalog data, available without loading the source's code.
|
|
3
|
+
*/
|
|
4
|
+
import { type SourceDescriptor } from "../types.js";
|
|
5
|
+
/**
|
|
6
|
+
* The descriptor of the `sparql` source. Experimental.
|
|
7
|
+
* @category Network sources
|
|
8
|
+
*/
|
|
9
|
+
export declare const SPARQL_DESCRIPTOR: SourceDescriptor;
|
|
10
|
+
//# sourceMappingURL=descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor.d.ts","sourceRoot":"","sources":["../../../../src/sources/sparql/descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAapD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,gBA6C9B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SPARQL source's descriptor: catalog data, available without loading the source's code.
|
|
3
|
+
*/
|
|
4
|
+
/** A small Wikidata query: physics Nobel laureates and their doctoral advisors. */
|
|
5
|
+
const WIKIDATA_ADVISORS = `PREFIX wd: <http://www.wikidata.org/entity/>
|
|
6
|
+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
|
|
7
|
+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
8
|
+
CONSTRUCT { ?person wdt:P184 ?advisor . ?person rdfs:label ?name . ?advisor rdfs:label ?advisorName . }
|
|
9
|
+
WHERE {
|
|
10
|
+
?person wdt:P166 wd:Q38104 ; wdt:P184 ?advisor ; rdfs:label ?name .
|
|
11
|
+
?advisor rdfs:label ?advisorName .
|
|
12
|
+
FILTER(lang(?name) = "en" && lang(?advisorName) = "en")
|
|
13
|
+
}`;
|
|
14
|
+
/**
|
|
15
|
+
* The descriptor of the `sparql` source. Experimental.
|
|
16
|
+
* @category Network sources
|
|
17
|
+
*/
|
|
18
|
+
export const SPARQL_DESCRIPTOR = Object.freeze({
|
|
19
|
+
plainName: "SPARQL endpoint",
|
|
20
|
+
kind: "sparql",
|
|
21
|
+
version: 1,
|
|
22
|
+
auth: ["basic", "bearer"],
|
|
23
|
+
authRequired: "optional",
|
|
24
|
+
features: ["expand", "probe", "validate", "page"],
|
|
25
|
+
params: [
|
|
26
|
+
{ name: "query", plainName: "Query", type: "query", language: "sparql" },
|
|
27
|
+
{
|
|
28
|
+
name: "mode",
|
|
29
|
+
plainName: "Mode",
|
|
30
|
+
type: "enum",
|
|
31
|
+
values: [
|
|
32
|
+
{ value: "query", label: "Query" },
|
|
33
|
+
{ value: "all", label: "Everything" },
|
|
34
|
+
{ value: "neighborhood", label: "Seed nodes" },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{ name: "ids", plainName: "Seed IRIs", type: "node-id" },
|
|
38
|
+
{ name: "language", plainName: "Language", type: "string", advanced: true },
|
|
39
|
+
{ name: "predicates", plainName: "Follow predicates", type: "string", advanced: true },
|
|
40
|
+
{
|
|
41
|
+
name: "pageSize",
|
|
42
|
+
plainName: "Page size",
|
|
43
|
+
type: "integer",
|
|
44
|
+
default: 1000,
|
|
45
|
+
min: 1,
|
|
46
|
+
max: 10000,
|
|
47
|
+
advanced: true,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
samples: [
|
|
51
|
+
{
|
|
52
|
+
id: "wikidata-physics-advisors",
|
|
53
|
+
plainName: "Wikidata: physics Nobel laureates and their advisors",
|
|
54
|
+
endpoint: "https://query.wikidata.org/sparql",
|
|
55
|
+
params: {
|
|
56
|
+
query: WIKIDATA_ADVISORS,
|
|
57
|
+
pageSize: 100,
|
|
58
|
+
language: "en",
|
|
59
|
+
predicates: ["http://www.wikidata.org/prop/direct/"], // NOSONAR(S5332): an RDF namespace IRI, never fetched; Wikidata's IRIs are http
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor.js","sourceRoot":"","sources":["../../../../src/sources/sparql/descriptor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,mFAAmF;AACnF,MAAM,iBAAiB,GAAG;;;;;;;;EAQxB,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqB,MAAM,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,iBAAiB;IAC5B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IACzB,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC;I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1
|
+
/**
|
|
2
|
+
* `@graphty/graph-io/sources/sparql`: the SPARQL source. It sends CONSTRUCT (or DESCRIBE) queries
|
|
3
|
+
* over the SPARQL 1.1 protocol (a form POST, N-Triples back) and reads the triples as a graph: an
|
|
4
|
+
* IRI or blank-node object is an edge from the subject (`type` is the predicate's local name,
|
|
5
|
+
* `predicate` the full IRI), a literal is an attribute of the subject named by the predicate's
|
|
6
|
+
* local name. Node ids are the IRIs.
|
|
7
|
+
*
|
|
8
|
+
* - Paging: the source adds `ORDER BY` (the template's variables) and `LIMIT` / `OFFSET` to the
|
|
9
|
+
* caller's query, unless it sets its own; a load stops between pages at a cap and hands back
|
|
10
|
+
* `{ offset }` as its cursor. A page is `pageSize` solutions, so its triple count varies; the
|
|
11
|
+
* first empty page ends the load.
|
|
12
|
+
* - Expand: the triples of the seeds, `VALUES ?s { ... }` out and `VALUES ?o { ... }` in.
|
|
13
|
+
* - Validate: SHA-256 of the first page's triples.
|
|
14
|
+
*
|
|
15
|
+
* Experimental.
|
|
16
|
+
* @module @graphty/graph-io/sources/sparql
|
|
17
|
+
*/
|
|
18
|
+
import { type GraphSource } from "../types.js";
|
|
19
|
+
import { type SparqlParams } from "./params.js";
|
|
20
|
+
export { SPARQL_DESCRIPTOR } from "./descriptor.js";
|
|
21
|
+
export { type SparqlParams } from "./params.js";
|
|
22
|
+
/**
|
|
23
|
+
* The SPARQL source: CONSTRUCT or DESCRIBE queries against any SPARQL 1.1 endpoint, paged by
|
|
24
|
+
* `LIMIT` and `OFFSET`, expanded by `VALUES`, validated by a hash of the first page. Experimental.
|
|
25
|
+
* @category Network sources
|
|
26
|
+
*/
|
|
27
|
+
export declare const sparqlSource: GraphSource<SparqlParams>;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sources/sparql/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAUH,OAAO,EAEH,KAAK,WAAW,EAKnB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAkThD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,YAAY,CAmBjD,CAAC"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@graphty/graph-io/sources/sparql`: the SPARQL source. It sends CONSTRUCT (or DESCRIBE) queries
|
|
3
|
+
* over the SPARQL 1.1 protocol (a form POST, N-Triples back) and reads the triples as a graph: an
|
|
4
|
+
* IRI or blank-node object is an edge from the subject (`type` is the predicate's local name,
|
|
5
|
+
* `predicate` the full IRI), a literal is an attribute of the subject named by the predicate's
|
|
6
|
+
* local name. Node ids are the IRIs.
|
|
7
|
+
*
|
|
8
|
+
* - Paging: the source adds `ORDER BY` (the template's variables) and `LIMIT` / `OFFSET` to the
|
|
9
|
+
* caller's query, unless it sets its own; a load stops between pages at a cap and hands back
|
|
10
|
+
* `{ offset }` as its cursor. A page is `pageSize` solutions, so its triple count varies; the
|
|
11
|
+
* first empty page ends the load.
|
|
12
|
+
* - Expand: the triples of the seeds, `VALUES ?s { ... }` out and `VALUES ?o { ... }` in.
|
|
13
|
+
* - Validate: SHA-256 of the first page's triples.
|
|
14
|
+
*
|
|
15
|
+
* Experimental.
|
|
16
|
+
* @module @graphty/graph-io/sources/sparql
|
|
17
|
+
*/
|
|
18
|
+
import { throwIfAborted } from "../../common/input.js";
|
|
19
|
+
import { defineSource } from "../define.js";
|
|
20
|
+
import { failOn } from "../fail.js";
|
|
21
|
+
import { SPARQL_SOURCE_ID } from "../ids.js";
|
|
22
|
+
import { sha256Hex } from "../sigv4.js";
|
|
23
|
+
import { SPARQL_DESCRIPTOR } from "./descriptor.js";
|
|
24
|
+
import { canonicalTriple, graphTriples, parseNTriples } from "./ntriples.js";
|
|
25
|
+
import { allQuery, aroundQuery, iriTerm, pagedQuery, readQuery, validLanguage } from "./query.js";
|
|
26
|
+
export { SPARQL_DESCRIPTOR } from "./descriptor.js";
|
|
27
|
+
/** Solutions per page when the params name none. */
|
|
28
|
+
const DEFAULT_PAGE_SIZE = 1000;
|
|
29
|
+
/** Triples per hop of an expansion when the request names no limit. */
|
|
30
|
+
const DEFAULT_EXPAND_LIMIT = 500;
|
|
31
|
+
/** The deepest expansion, as for every built-in source. */
|
|
32
|
+
const MAX_DEPTH = 10;
|
|
33
|
+
/** What CONSTRUCT and DESCRIBE are asked to answer. */
|
|
34
|
+
const ACCEPT_TRIPLES = "application/n-triples, text/plain;q=0.9";
|
|
35
|
+
/**
|
|
36
|
+
* Send a query and read the answer as N-Triples.
|
|
37
|
+
* @param ctx - the context
|
|
38
|
+
* @param query - the query
|
|
39
|
+
* @returns the triples
|
|
40
|
+
*/
|
|
41
|
+
async function send(ctx, query) {
|
|
42
|
+
throwIfAborted(ctx.signal);
|
|
43
|
+
const response = await ctx.fetch(ctx.endpoint ?? "", {
|
|
44
|
+
method: "POST",
|
|
45
|
+
idempotent: true,
|
|
46
|
+
headers: { Accept: ACCEPT_TRIPLES, "Content-Type": "application/x-www-form-urlencoded" },
|
|
47
|
+
body: new URLSearchParams({ query }).toString(),
|
|
48
|
+
allowStatus: [400],
|
|
49
|
+
});
|
|
50
|
+
if (response.status === 400) {
|
|
51
|
+
const text = (await response.text()).trim().slice(0, 500);
|
|
52
|
+
failOn(ctx.report, "E_SOURCE_QUERY", "the endpoint refused the query", {
|
|
53
|
+
serverCode: null,
|
|
54
|
+
line: null,
|
|
55
|
+
column: null,
|
|
56
|
+
serverMessage: text === "" ? null : text,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const contentType = response.headers.get("content-type");
|
|
60
|
+
const notTriples = () => failOn(ctx.report, "E_SOURCE_RESPONSE", "the endpoint did not answer N-Triples", {
|
|
61
|
+
expected: "n-triples",
|
|
62
|
+
contentType,
|
|
63
|
+
});
|
|
64
|
+
if (contentType !== null && /html|json|xml/i.test(contentType)) {
|
|
65
|
+
notTriples();
|
|
66
|
+
}
|
|
67
|
+
const { triples, badLine } = parseNTriples(await response.text());
|
|
68
|
+
if (badLine !== null) {
|
|
69
|
+
notTriples();
|
|
70
|
+
}
|
|
71
|
+
return triples;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A whole-number param, checked.
|
|
75
|
+
* @param value - the value
|
|
76
|
+
* @param name - the param
|
|
77
|
+
* @param max - the largest allowed
|
|
78
|
+
* @param ctx - the context
|
|
79
|
+
* @returns the number
|
|
80
|
+
*/
|
|
81
|
+
function integer(value, name, max, ctx) {
|
|
82
|
+
if (!Number.isInteger(value) || value < 1 || value > max) {
|
|
83
|
+
failOn(ctx.report, "E_SOURCE_PARAM", `${name} is an integer from 1 to ${String(max)}`, {
|
|
84
|
+
name,
|
|
85
|
+
reason: "range",
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The language filter, lowercase and checked, or "" for none.
|
|
92
|
+
* @param params - the params
|
|
93
|
+
* @param ctx - the context
|
|
94
|
+
* @returns the tag
|
|
95
|
+
*/
|
|
96
|
+
function languageOf(params, ctx) {
|
|
97
|
+
const language = params.language ?? "";
|
|
98
|
+
if (language !== "" && !validLanguage(language)) {
|
|
99
|
+
failOn(ctx.report, "E_SOURCE_PARAM", "language is a language tag", { name: "language", reason: "type" });
|
|
100
|
+
}
|
|
101
|
+
return language.toLowerCase();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The predicate prefixes generated queries follow, checked.
|
|
105
|
+
* @param params - the params
|
|
106
|
+
* @param ctx - the context
|
|
107
|
+
* @returns the prefixes; empty means every predicate
|
|
108
|
+
*/
|
|
109
|
+
function predicatesOf(params, ctx) {
|
|
110
|
+
const list = params.predicates ?? [];
|
|
111
|
+
const prefixes = typeof list === "string" ? [list] : list;
|
|
112
|
+
for (const p of prefixes) {
|
|
113
|
+
if (typeof p !== "string" || iriTerm(p) === null) {
|
|
114
|
+
failOn(ctx.report, "E_SOURCE_PARAM", "predicates are IRI prefixes", { name: "predicates", reason: "iri" });
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return prefixes;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Seed ids as IRI terms; a blank node or anything else that is not an IRI is refused.
|
|
121
|
+
* @param ids - the ids
|
|
122
|
+
* @param name - the param, for the error
|
|
123
|
+
* @param ctx - the context
|
|
124
|
+
* @returns the terms
|
|
125
|
+
*/
|
|
126
|
+
function irisOf(ids, name, ctx) {
|
|
127
|
+
if (ids === undefined || ids.length === 0) {
|
|
128
|
+
failOn(ctx.report, "E_SOURCE_PARAM", `${name} needs at least one IRI`, { name, reason: "required" });
|
|
129
|
+
}
|
|
130
|
+
return ids.map((id) => iriTerm(id) ?? failOn(ctx.report, "E_SOURCE_PARAM", `${name}: not an IRI`, { name, reason: "iri" }));
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* What a load sends, from its mode.
|
|
134
|
+
* @param params - the params
|
|
135
|
+
* @param ctx - the context
|
|
136
|
+
* @returns the plan
|
|
137
|
+
*/
|
|
138
|
+
function planOf(params, ctx) {
|
|
139
|
+
const size = integer(params.pageSize ?? DEFAULT_PAGE_SIZE, "pageSize", 10000, ctx);
|
|
140
|
+
const filter = { language: languageOf(params, ctx), predicates: predicatesOf(params, ctx) };
|
|
141
|
+
const query = params.query?.trim() ?? "";
|
|
142
|
+
const mode = params.mode ?? (query === "" ? "all" : "query");
|
|
143
|
+
if (mode === "neighborhood") {
|
|
144
|
+
const iris = irisOf(params.ids, "ids", ctx);
|
|
145
|
+
return { at: (offset) => aroundQuery(iris, "both", filter, size, offset), paged: true };
|
|
146
|
+
}
|
|
147
|
+
if (mode === "all") {
|
|
148
|
+
return { at: (offset) => allQuery(filter, size, offset), paged: true };
|
|
149
|
+
}
|
|
150
|
+
if (query === "") {
|
|
151
|
+
failOn(ctx.report, "E_SOURCE_PARAM", "mode query needs a query", { name: "query", reason: "required" });
|
|
152
|
+
}
|
|
153
|
+
const shape = readQuery(query);
|
|
154
|
+
if (shape.form !== "construct" && shape.form !== "describe") {
|
|
155
|
+
failOn(ctx.report, "E_SOURCE_PARAM", "the query must be CONSTRUCT or DESCRIBE", {
|
|
156
|
+
name: "query",
|
|
157
|
+
reason: "form",
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (shape.ownLimit) {
|
|
161
|
+
return { at: () => query, paged: false };
|
|
162
|
+
}
|
|
163
|
+
return { at: (offset) => pagedQuery(query, shape, size, offset), paged: true };
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Write nodes and edges into the sink, counting them on the report.
|
|
167
|
+
* @param graphed - the nodes and edges
|
|
168
|
+
* @param sink - where to write
|
|
169
|
+
* @param ctx - the context
|
|
170
|
+
*/
|
|
171
|
+
function write(graphed, sink, ctx) {
|
|
172
|
+
const { report } = ctx;
|
|
173
|
+
if (sink.edgeCount === 0) {
|
|
174
|
+
sink.setDirected(true);
|
|
175
|
+
}
|
|
176
|
+
for (const [id, attrs] of graphed.nodes) {
|
|
177
|
+
try {
|
|
178
|
+
sink.addNodeRecord(id, attrs);
|
|
179
|
+
report.counts.nodes++;
|
|
180
|
+
}
|
|
181
|
+
catch (err) {
|
|
182
|
+
report.recordError(err, { element: id });
|
|
183
|
+
report.counts.skippedNodes++;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
for (const { source, target, ...attrs } of graphed.edges) {
|
|
187
|
+
try {
|
|
188
|
+
sink.addEdgeRecord(source, target, attrs, null);
|
|
189
|
+
report.counts.edges++;
|
|
190
|
+
}
|
|
191
|
+
catch (err) {
|
|
192
|
+
report.recordError(err, { element: `${source} -> ${target}` });
|
|
193
|
+
report.counts.skippedEdges++;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Order strings by UTF-16 code units, as `Array.prototype.sort` does with no compare function, so
|
|
199
|
+
* a content hash never depends on the locale.
|
|
200
|
+
* @param a - one string
|
|
201
|
+
* @param b - the other
|
|
202
|
+
* @returns negative, zero or positive
|
|
203
|
+
*/
|
|
204
|
+
function byCodeUnits(a, b) {
|
|
205
|
+
if (a === b) {
|
|
206
|
+
return 0;
|
|
207
|
+
}
|
|
208
|
+
return a < b ? -1 : 1;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* The content hash of some triples, in any order.
|
|
212
|
+
* @param triples - the triples
|
|
213
|
+
* @returns the SHA-256, hex
|
|
214
|
+
*/
|
|
215
|
+
function hashOf(triples) {
|
|
216
|
+
return sha256Hex(triples.map(canonicalTriple).sort(byCodeUnits).join("\n"));
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Load pages into the sink from the cursor's offset until an empty page or a cap.
|
|
220
|
+
* @param params - the params
|
|
221
|
+
* @param sink - where to write
|
|
222
|
+
* @param ctx - the context
|
|
223
|
+
* @returns the report
|
|
224
|
+
*/
|
|
225
|
+
async function load(params, sink, ctx) {
|
|
226
|
+
const plan = planOf(params, ctx);
|
|
227
|
+
const size = params.pageSize ?? DEFAULT_PAGE_SIZE;
|
|
228
|
+
const start = Number(ctx.cursor?.offset ?? 0);
|
|
229
|
+
const language = languageOf(params, ctx);
|
|
230
|
+
let offset = start;
|
|
231
|
+
let next = null;
|
|
232
|
+
let contentHash;
|
|
233
|
+
for (;;) {
|
|
234
|
+
const triples = await send(ctx, plan.at(offset));
|
|
235
|
+
if (offset === 0) {
|
|
236
|
+
contentHash = await hashOf(triples);
|
|
237
|
+
}
|
|
238
|
+
write(graphTriples(triples, language), sink, ctx);
|
|
239
|
+
const { counts } = ctx.report;
|
|
240
|
+
ctx.progress(counts.nodes + counts.edges, undefined, "items");
|
|
241
|
+
if (!plan.paged || triples.length === 0) {
|
|
242
|
+
next = null;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
offset += size;
|
|
246
|
+
next = { offset };
|
|
247
|
+
if (ctx.limits.reached()) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return ctx.finish({ next, ...(contentHash === undefined ? {} : { validators: { contentHash } }) });
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Fetch the triples around some IRIs into the sink, hop by hop.
|
|
255
|
+
* @param request - the seeds, direction, depth, limit and predicate filter
|
|
256
|
+
* @param sink - where to write
|
|
257
|
+
* @param ctx - the context
|
|
258
|
+
* @returns the report
|
|
259
|
+
*/
|
|
260
|
+
async function expand(request, sink, ctx) {
|
|
261
|
+
const direction = request.direction ?? "both";
|
|
262
|
+
if (!["out", "in", "both"].includes(direction)) {
|
|
263
|
+
failOn(ctx.report, "E_SOURCE_PARAM", "direction must be out, in or both", {
|
|
264
|
+
name: "direction",
|
|
265
|
+
reason: "enum",
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
const depth = integer(request.depth ?? 1, "depth", MAX_DEPTH, ctx);
|
|
269
|
+
const limit = integer(request.limit ?? DEFAULT_EXPAND_LIMIT, "limit", Number.MAX_SAFE_INTEGER, ctx);
|
|
270
|
+
const language = languageOf(request.params, ctx);
|
|
271
|
+
const filter = { language, predicates: predicatesOf(request.params, ctx) };
|
|
272
|
+
const types = request.relationshipTypes === undefined ? null : new Set(request.relationshipTypes);
|
|
273
|
+
// a capped one-hop expansion resumes at its offset; deeper ones are read whole per hop
|
|
274
|
+
const offset = depth === 1 ? Number(ctx.cursor?.offset ?? 0) : 0;
|
|
275
|
+
const seen = new Set(request.ids.map(String));
|
|
276
|
+
let frontier = irisOf(request.ids, "ids", ctx);
|
|
277
|
+
let next = null;
|
|
278
|
+
const graphed = { nodes: new Map(), edges: [] };
|
|
279
|
+
for (let hop = 0; hop < depth && frontier.length > 0; hop++) {
|
|
280
|
+
const triples = await send(ctx, aroundQuery(frontier, direction, filter, limit, offset));
|
|
281
|
+
const before = graphed.edges.length;
|
|
282
|
+
graphTriples(triples, language, graphed);
|
|
283
|
+
if (types !== null) {
|
|
284
|
+
const kept = graphed.edges.slice(before).filter((e) => types.has(e.type) || types.has(e.predicate));
|
|
285
|
+
graphed.edges.splice(before, Infinity, ...kept);
|
|
286
|
+
}
|
|
287
|
+
if (depth === 1 && triples.length > 0) {
|
|
288
|
+
next = { offset: offset + limit };
|
|
289
|
+
}
|
|
290
|
+
const reached = graphed.edges.slice(before).flatMap((e) => [e.source, e.target]);
|
|
291
|
+
frontier = [...new Set(reached)]
|
|
292
|
+
.filter((id) => !seen.has(id))
|
|
293
|
+
.flatMap((id) => {
|
|
294
|
+
seen.add(id);
|
|
295
|
+
const term = iriTerm(id);
|
|
296
|
+
return term === null ? [] : [term];
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
write(graphed, sink, ctx);
|
|
300
|
+
return ctx.finish({ next });
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The SPARQL source: CONSTRUCT or DESCRIBE queries against any SPARQL 1.1 endpoint, paged by
|
|
304
|
+
* `LIMIT` and `OFFSET`, expanded by `VALUES`, validated by a hash of the first page. Experimental.
|
|
305
|
+
* @category Network sources
|
|
306
|
+
*/
|
|
307
|
+
export const sparqlSource = defineSource({
|
|
308
|
+
id: SPARQL_SOURCE_ID,
|
|
309
|
+
descriptor: SPARQL_DESCRIPTOR,
|
|
310
|
+
import: load,
|
|
311
|
+
expand,
|
|
312
|
+
probe: async (params, ctx) => {
|
|
313
|
+
// the endpoint answers a one-solution query: it is up, it reads SPARQL, the credential works
|
|
314
|
+
await send(ctx, "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o } LIMIT 1");
|
|
315
|
+
languageOf(params, ctx);
|
|
316
|
+
return { ok: true };
|
|
317
|
+
},
|
|
318
|
+
validate: async (params, seen, ctx) => {
|
|
319
|
+
const contentHash = await hashOf(await send(ctx, planOf(params, ctx).at(0)));
|
|
320
|
+
let status = "unverifiable";
|
|
321
|
+
if (seen.contentHash !== undefined) {
|
|
322
|
+
status = seen.contentHash === contentHash ? "current" : "changed";
|
|
323
|
+
}
|
|
324
|
+
return { status, via: "hash", validators: { contentHash } };
|
|
325
|
+
},
|
|
326
|
+
});
|
|
327
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sources/sparql/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAgB,YAAY,EAAE,aAAa,EAAe,MAAM,eAAe,CAAC;AAExG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAElG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,oDAAoD;AACpD,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,uEAAuE;AACvE,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC,2DAA2D;AAC3D,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,uDAAuD;AACvD,MAAM,cAAc,GAAG,yCAAyC,CAAC;AAUjE;;;;;GAKG;AACH,KAAK,UAAU,IAAI,CAAC,GAAkB,EAAE,KAAa;IACjD,cAAc,CAA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AC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading the N-Triples a CONSTRUCT or DESCRIBE answers, and turning triples into nodes and edges:
|
|
3
|
+
* an IRI or blank-node object is an edge from the subject, a literal is an attribute of the
|
|
4
|
+
* subject named by the predicate's local name.
|
|
5
|
+
*/
|
|
6
|
+
/** One RDF term. */
|
|
7
|
+
export type Term = {
|
|
8
|
+
readonly kind: "iri";
|
|
9
|
+
readonly value: string;
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: "bnode";
|
|
12
|
+
readonly value: string;
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: "literal";
|
|
15
|
+
readonly value: string;
|
|
16
|
+
readonly lang: string;
|
|
17
|
+
readonly datatype: string;
|
|
18
|
+
};
|
|
19
|
+
/** One triple. */
|
|
20
|
+
export interface Triple {
|
|
21
|
+
/** The subject: an IRI or a blank node. */
|
|
22
|
+
readonly s: Term;
|
|
23
|
+
/** The predicate IRI. */
|
|
24
|
+
readonly p: string;
|
|
25
|
+
/** The object. */
|
|
26
|
+
readonly o: Term;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Parse N-Triples.
|
|
30
|
+
* @param text - the document
|
|
31
|
+
* @returns the triples, or the 1-based number of the first line that is not a triple
|
|
32
|
+
*/
|
|
33
|
+
export declare function parseNTriples(text: string): {
|
|
34
|
+
triples: Triple[];
|
|
35
|
+
badLine: number | null;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The local name of an IRI: what follows its last `#`, else its last `/`, else its last `:`.
|
|
39
|
+
* @param iri - the IRI
|
|
40
|
+
* @returns the local name, or the whole IRI when nothing follows
|
|
41
|
+
*/
|
|
42
|
+
export declare function localName(iri: string): string;
|
|
43
|
+
/** The nodes and edges of some triples. */
|
|
44
|
+
export interface Graphed {
|
|
45
|
+
/** Each subject's literal attributes, by subject id; a predicate's first value wins. */
|
|
46
|
+
readonly nodes: Map<string, Record<string, string | number | boolean>>;
|
|
47
|
+
/** One edge per IRI or blank-node object. */
|
|
48
|
+
readonly edges: {
|
|
49
|
+
source: string;
|
|
50
|
+
target: string;
|
|
51
|
+
type: string;
|
|
52
|
+
predicate: string;
|
|
53
|
+
}[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Turn triples into nodes and edges.
|
|
57
|
+
* @param triples - the triples
|
|
58
|
+
* @param language - the language filter, lowercase, or ""
|
|
59
|
+
* @param into - nodes and edges to add to
|
|
60
|
+
* @returns the nodes and edges
|
|
61
|
+
*/
|
|
62
|
+
export declare function graphTriples(triples: readonly Triple[], language: string, into?: Graphed): Graphed;
|
|
63
|
+
/**
|
|
64
|
+
* One canonical line per triple, for the content hash.
|
|
65
|
+
* @param t - the triple
|
|
66
|
+
* @returns the line
|
|
67
|
+
*/
|
|
68
|
+
export declare function canonicalTriple(t: Triple): string;
|
|
69
|
+
//# sourceMappingURL=ntriples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ntriples.d.ts","sourceRoot":"","sources":["../../../../src/sources/sparql/ntriples.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oBAAoB;AACpB,MAAM,MAAM,IAAI,GACV;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7G,kBAAkB;AAClB,MAAM,WAAW,MAAM;IACnB,2CAA2C;IAC3C,QAAQ,CAAC,CAAC,EAAE,IAA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