@nicia-ai/typegraph 0.44.0 → 0.45.0
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/backend/drizzle/indexes.cjs +7 -7
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +3 -3
- package/dist/backend/index.cjs +37 -37
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +6 -6
- package/dist/backend/postgres/index.cjs +23 -23
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +10 -10
- package/dist/backend/postgres/pglite-store.cjs +24 -25
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +7 -7
- package/dist/backend/postgres/pglite-store.d.ts +7 -7
- package/dist/backend/postgres/pglite-store.js +20 -21
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +12 -12
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +11 -11
- package/dist/backend/sqlite/index.cjs +21 -21
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +9 -9
- package/dist/backend/sqlite/libsql.cjs +14 -14
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +10 -10
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +25 -26
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +21 -22
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +13 -13
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +11 -11
- package/dist/{chunk-TVLKA4AY.js → chunk-42PYUGLS.js} +57 -3
- package/dist/chunk-42PYUGLS.js.map +1 -0
- package/dist/{chunk-IJTLXNGJ.js → chunk-4GUBTVPV.js} +3 -4
- package/dist/chunk-4GUBTVPV.js.map +1 -0
- package/dist/{chunk-63KCKSSH.js → chunk-4GUTQPVO.js} +33 -9
- package/dist/chunk-4GUTQPVO.js.map +1 -0
- package/dist/{chunk-FGO5JFVJ.cjs → chunk-4MEWSUVM.cjs} +10 -10
- package/dist/chunk-4MEWSUVM.cjs.map +1 -0
- package/dist/{chunk-FMGEZBAQ.js → chunk-4QIKLIGG.js} +15 -3
- package/dist/chunk-4QIKLIGG.js.map +1 -0
- package/dist/{chunk-FMMIX6N4.js → chunk-55ITBQJI.js} +2 -2
- package/dist/chunk-55ITBQJI.js.map +1 -0
- package/dist/{chunk-TCRIQMBU.js → chunk-5EKPX6QU.js} +4 -4
- package/dist/{chunk-TCRIQMBU.js.map → chunk-5EKPX6QU.js.map} +1 -1
- package/dist/{chunk-GFRGG2US.cjs → chunk-5GAONX5G.cjs} +7 -7
- package/dist/{chunk-GFRGG2US.cjs.map → chunk-5GAONX5G.cjs.map} +1 -1
- package/dist/{chunk-ALFUGRYB.cjs → chunk-6RYPD3NJ.cjs} +29 -29
- package/dist/{chunk-ALFUGRYB.cjs.map → chunk-6RYPD3NJ.cjs.map} +1 -1
- package/dist/{chunk-QGKILWGZ.cjs → chunk-7PF2L3H6.cjs} +4 -4
- package/dist/{chunk-QGKILWGZ.cjs.map → chunk-7PF2L3H6.cjs.map} +1 -1
- package/dist/chunk-B3F2D3SP.cjs +12 -0
- package/dist/{chunk-EPTSMFH7.cjs.map → chunk-B3F2D3SP.cjs.map} +1 -1
- package/dist/{chunk-7G32LIQM.js → chunk-BGYJW37L.js} +5 -5
- package/dist/{chunk-7G32LIQM.js.map → chunk-BGYJW37L.js.map} +1 -1
- package/dist/{chunk-EE7N5XXQ.cjs → chunk-BNS75YNF.cjs} +9 -10
- package/dist/chunk-BNS75YNF.cjs.map +1 -0
- package/dist/{chunk-VITTKBWF.js → chunk-CBKG6HEP.js} +5 -5
- package/dist/{chunk-VITTKBWF.js.map → chunk-CBKG6HEP.js.map} +1 -1
- package/dist/{chunk-A4PBRX4C.cjs → chunk-D54WH24V.cjs} +57 -2
- package/dist/chunk-D54WH24V.cjs.map +1 -0
- package/dist/{chunk-MCHP7RHZ.cjs → chunk-D56XG4EI.cjs} +26 -14
- package/dist/chunk-D56XG4EI.cjs.map +1 -0
- package/dist/{chunk-SQRD2CYF.js → chunk-DXEEHSGN.js} +293 -45
- package/dist/chunk-DXEEHSGN.js.map +1 -0
- package/dist/{chunk-GWEDD3DH.js → chunk-EFEOOCJ3.js} +4 -4
- package/dist/{chunk-GWEDD3DH.js.map → chunk-EFEOOCJ3.js.map} +1 -1
- package/dist/{chunk-3PRKZW6D.cjs → chunk-EKFUG4G7.cjs} +2 -2
- package/dist/chunk-EKFUG4G7.cjs.map +1 -0
- package/dist/{chunk-HJH3RMXG.cjs → chunk-F4NHQHEZ.cjs} +4 -4
- package/dist/{chunk-HJH3RMXG.cjs.map → chunk-F4NHQHEZ.cjs.map} +1 -1
- package/dist/{chunk-46GDII45.js → chunk-FL5UQRES.js} +3 -3
- package/dist/{chunk-46GDII45.js.map → chunk-FL5UQRES.js.map} +1 -1
- package/dist/{chunk-TFMVL4QH.js → chunk-FLEQ2HBK.js} +3 -3
- package/dist/{chunk-TFMVL4QH.js.map → chunk-FLEQ2HBK.js.map} +1 -1
- package/dist/{chunk-BEFM74L2.js → chunk-FQ7ZPOTZ.js} +6 -6
- package/dist/{chunk-BEFM74L2.js.map → chunk-FQ7ZPOTZ.js.map} +1 -1
- package/dist/{chunk-ST3LPB2V.cjs → chunk-H7VE3FL4.cjs} +318 -70
- package/dist/chunk-H7VE3FL4.cjs.map +1 -0
- package/dist/{chunk-BCP7LLOY.js → chunk-ID4WXTKL.js} +367 -41
- package/dist/{chunk-BCP7LLOY.js.map → chunk-ID4WXTKL.js.map} +1 -1
- package/dist/{chunk-EFELJVLA.js → chunk-ISLPNELU.js} +15 -3
- package/dist/chunk-ISLPNELU.js.map +1 -0
- package/dist/{chunk-A2I2XO52.cjs → chunk-IX64T5OL.cjs} +4 -4
- package/dist/{chunk-A2I2XO52.cjs.map → chunk-IX64T5OL.cjs.map} +1 -1
- package/dist/{chunk-QYWINYEA.cjs → chunk-J2ICGNHO.cjs} +5 -6
- package/dist/chunk-J2ICGNHO.cjs.map +1 -0
- package/dist/{chunk-7V2FGGI2.cjs → chunk-J7LXTUTP.cjs} +54 -12
- package/dist/chunk-J7LXTUTP.cjs.map +1 -0
- package/dist/{chunk-WBUFJ7BS.cjs → chunk-JQXSZHF2.cjs} +12 -2
- package/dist/chunk-JQXSZHF2.cjs.map +1 -0
- package/dist/{chunk-OVUUTCPJ.cjs → chunk-JXUTCSXX.cjs} +28 -2
- package/dist/chunk-JXUTCSXX.cjs.map +1 -0
- package/dist/{chunk-66UVLHQA.cjs → chunk-KMXWZLQX.cjs} +14 -14
- package/dist/{chunk-66UVLHQA.cjs.map → chunk-KMXWZLQX.cjs.map} +1 -1
- package/dist/{chunk-STQ3BSED.cjs → chunk-NAAMUYMS.cjs} +23 -11
- package/dist/chunk-NAAMUYMS.cjs.map +1 -0
- package/dist/{chunk-NN3QSOVS.cjs → chunk-OOA273IJ.cjs} +14 -14
- package/dist/{chunk-NN3QSOVS.cjs.map → chunk-OOA273IJ.cjs.map} +1 -1
- package/dist/{chunk-OSZPLZIV.cjs → chunk-P7GTYOLB.cjs} +130 -106
- package/dist/chunk-P7GTYOLB.cjs.map +1 -0
- package/dist/{chunk-K3BUWSFR.js → chunk-PVUI6KGR.js} +28 -2
- package/dist/chunk-PVUI6KGR.js.map +1 -0
- package/dist/{chunk-SBPC5IP3.js → chunk-Q6EDCUXV.js} +242 -10
- package/dist/chunk-Q6EDCUXV.js.map +1 -0
- package/dist/{chunk-2BIG7U6E.cjs → chunk-QC4MCOFV.cjs} +5 -5
- package/dist/{chunk-2BIG7U6E.cjs.map → chunk-QC4MCOFV.cjs.map} +1 -1
- package/dist/{chunk-JRP3VGHS.js → chunk-QLUXRWKL.js} +3 -3
- package/dist/{chunk-JRP3VGHS.js.map → chunk-QLUXRWKL.js.map} +1 -1
- package/dist/{chunk-IIT5K7SK.cjs → chunk-QR24DJDF.cjs} +6 -6
- package/dist/{chunk-IIT5K7SK.cjs.map → chunk-QR24DJDF.cjs.map} +1 -1
- package/dist/{chunk-HOIFFY4M.js → chunk-QRNYDV5Z.js} +48 -21
- package/dist/chunk-QRNYDV5Z.js.map +1 -0
- package/dist/{chunk-FRHHDHKH.js → chunk-RFRM3Q5K.js} +15 -3
- package/dist/chunk-RFRM3Q5K.js.map +1 -0
- package/dist/{chunk-ATLN63JA.js → chunk-RUQS6M7G.js} +5 -5
- package/dist/chunk-RUQS6M7G.js.map +1 -0
- package/dist/{chunk-XMYJY7NI.js → chunk-S3ZRKJHY.js} +3 -3
- package/dist/{chunk-XMYJY7NI.js.map → chunk-S3ZRKJHY.js.map} +1 -1
- package/dist/{chunk-FSXTPBRN.js → chunk-TKORQCG4.js} +49 -7
- package/dist/chunk-TKORQCG4.js.map +1 -0
- package/dist/{chunk-2Y4IFKW7.js → chunk-TKP5T34P.js} +3 -4
- package/dist/chunk-TKP5T34P.js.map +1 -0
- package/dist/{chunk-NCX65HBY.cjs → chunk-UCQ3BFSY.cjs} +301 -68
- package/dist/chunk-UCQ3BFSY.cjs.map +1 -0
- package/dist/{chunk-B75XRV3O.js → chunk-V34A6R5V.js} +12 -3
- package/dist/chunk-V34A6R5V.js.map +1 -0
- package/dist/{chunk-BNUFUFAU.js → chunk-VTN3C3CH.js} +6 -6
- package/dist/chunk-VTN3C3CH.js.map +1 -0
- package/dist/{chunk-5MUSU4ZP.cjs → chunk-VVQM4CZD.cjs} +12 -12
- package/dist/chunk-VVQM4CZD.cjs.map +1 -0
- package/dist/{chunk-IIMQJYAM.js → chunk-WDAVPX46.js} +3 -3
- package/dist/{chunk-IIMQJYAM.js.map → chunk-WDAVPX46.js.map} +1 -1
- package/dist/{chunk-YNULOIR5.cjs → chunk-WDBXJOU5.cjs} +28 -16
- package/dist/chunk-WDBXJOU5.cjs.map +1 -0
- package/dist/{chunk-PAW2XUZN.js → chunk-WUFASQUO.js} +3 -3
- package/dist/{chunk-PAW2XUZN.js.map → chunk-WUFASQUO.js.map} +1 -1
- package/dist/{chunk-PDGEXGS6.cjs → chunk-YDWLUT5V.cjs} +136 -109
- package/dist/chunk-YDWLUT5V.cjs.map +1 -0
- package/dist/{chunk-PHXITZE4.js → chunk-YMTXMPV6.js} +3 -3
- package/dist/{chunk-PHXITZE4.js.map → chunk-YMTXMPV6.js.map} +1 -1
- package/dist/{chunk-XR4YZFKW.cjs → chunk-YOALGKRE.cjs} +690 -364
- package/dist/chunk-YOALGKRE.cjs.map +1 -0
- package/dist/{chunk-6JZUSDY2.cjs → chunk-Z3WO6MND.cjs} +27 -27
- package/dist/{chunk-6JZUSDY2.cjs.map → chunk-Z3WO6MND.cjs.map} +1 -1
- package/dist/{chunk-2VLBGQBY.cjs → chunk-ZI6VQSZA.cjs} +37 -37
- package/dist/{chunk-2VLBGQBY.cjs.map → chunk-ZI6VQSZA.cjs.map} +1 -1
- package/dist/core/index.cjs +10 -11
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +3 -4
- package/dist/{ddl-eWg7hx6R.d.cts → ddl-BG4J805L.d.cts} +3 -3
- package/dist/{ddl-D5369kOY.d.ts → ddl-CgiS9QLj.d.ts} +3 -3
- package/dist/{define-graph-SvYXOl78.d.ts → define-graph-BGrJahvp.d.ts} +1 -1
- package/dist/{define-graph-DVF-oN1i.d.cts → define-graph-alREY2wj.d.cts} +1 -1
- package/dist/graph-extension/index.cjs +18 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +3 -4
- package/dist/graph-merge/index.cjs +89 -90
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +9 -9
- package/dist/graph-merge/index.d.ts +9 -9
- package/dist/graph-merge/index.js +16 -17
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-By89Sezh.d.ts → index-BBxZCUdu.d.ts} +2 -2
- package/dist/{index-DcQ3Sxs-.d.cts → index-C3y_98iN.d.cts} +2 -2
- package/dist/index.cjs +124 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +23 -24
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +11 -11
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +4 -4
- package/dist/interchange/index.cjs +27 -26
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +8 -7
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-Cn0NFIhN.d.cts → manager-KS7CGQQT.d.cts} +3 -3
- package/dist/{manager-B0KjKE93.d.ts → manager-YoLEfcc1.d.ts} +3 -3
- package/dist/{materialize-indexes-BD4V3svD.d.ts → materialize-indexes-Bhhyb1B3.d.ts} +1 -1
- package/dist/{materialize-indexes-DVRhd5h4.d.cts → materialize-indexes-OHRWypW6.d.cts} +1 -1
- package/dist/{postgres-DaEWvN4x.d.cts → postgres-DpkW3R5Y.d.cts} +1 -1
- package/dist/{postgres-u0a0HN2D.d.ts → postgres-DwqyIniy.d.ts} +1 -1
- package/dist/profiler/index.d.cts +10 -10
- package/dist/profiler/index.d.ts +10 -10
- package/dist/provenance/index.cjs +15 -15
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +3 -3
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +30 -31
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +8 -9
- package/dist/{searchable-BT7j9_IK.d.cts → searchable-CIZL8Hyw.d.cts} +2 -2
- package/dist/{searchable-CnYEancP.d.ts → searchable-DLWEfC4a.d.ts} +2 -2
- package/dist/{sqlite-BrMoSsI7.d.cts → sqlite-DY0WODUK.d.cts} +1 -1
- package/dist/{sqlite-CHhZUyO5.d.ts → sqlite-L-VIRzqA.d.ts} +1 -1
- package/dist/{store-view-Bvdku0Ht.d.ts → store-view-66p92IPi.d.ts} +1887 -1811
- package/dist/{store-view-w-md0nQ4.d.cts → store-view-A85FFRnk.d.cts} +1887 -1811
- package/dist/{temporal-BCORwUau.d.cts → temporal-BNbjXqer.d.cts} +1 -1
- package/dist/{temporal--x9T8K4S.d.ts → temporal-Bob6Nfbp.d.ts} +1 -1
- package/dist/{types-Cjvkj0jA.d.ts → types-Ch9a0Dx6.d.cts} +141 -17
- package/dist/{types-Cjvkj0jA.d.cts → types-Ch9a0Dx6.d.ts} +141 -17
- package/dist/{types-COODtTJU.d.ts → types-ClCzT-dT.d.ts} +1 -1
- package/dist/{types-6-WJmSD4.d.cts → types-DeORZhxn.d.cts} +1 -1
- package/dist/{where-CUQmCR6d.d.cts → where-DPw52ksb.d.cts} +1 -1
- package/dist/{where-5xVawAwL.d.ts → where-kWUZPvEA.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2WDD2NO3.js +0 -59
- package/dist/chunk-2WDD2NO3.js.map +0 -1
- package/dist/chunk-2Y4IFKW7.js.map +0 -1
- package/dist/chunk-3PRKZW6D.cjs.map +0 -1
- package/dist/chunk-5MUSU4ZP.cjs.map +0 -1
- package/dist/chunk-63KCKSSH.js.map +0 -1
- package/dist/chunk-7V2FGGI2.cjs.map +0 -1
- package/dist/chunk-A4PBRX4C.cjs.map +0 -1
- package/dist/chunk-ATLN63JA.js.map +0 -1
- package/dist/chunk-B75XRV3O.js.map +0 -1
- package/dist/chunk-BNUFUFAU.js.map +0 -1
- package/dist/chunk-EE7N5XXQ.cjs.map +0 -1
- package/dist/chunk-EFELJVLA.js.map +0 -1
- package/dist/chunk-EPTSMFH7.cjs +0 -12
- package/dist/chunk-FGO5JFVJ.cjs.map +0 -1
- package/dist/chunk-FMGEZBAQ.js.map +0 -1
- package/dist/chunk-FMMIX6N4.js.map +0 -1
- package/dist/chunk-FRHHDHKH.js.map +0 -1
- package/dist/chunk-FSXTPBRN.js.map +0 -1
- package/dist/chunk-HOHAJ2NR.cjs +0 -61
- package/dist/chunk-HOHAJ2NR.cjs.map +0 -1
- package/dist/chunk-HOIFFY4M.js.map +0 -1
- package/dist/chunk-IJTLXNGJ.js.map +0 -1
- package/dist/chunk-K3BUWSFR.js.map +0 -1
- package/dist/chunk-MCHP7RHZ.cjs.map +0 -1
- package/dist/chunk-NCX65HBY.cjs.map +0 -1
- package/dist/chunk-OSZPLZIV.cjs.map +0 -1
- package/dist/chunk-OVUUTCPJ.cjs.map +0 -1
- package/dist/chunk-PDGEXGS6.cjs.map +0 -1
- package/dist/chunk-QYWINYEA.cjs.map +0 -1
- package/dist/chunk-SBPC5IP3.js.map +0 -1
- package/dist/chunk-SQRD2CYF.js.map +0 -1
- package/dist/chunk-ST3LPB2V.cjs.map +0 -1
- package/dist/chunk-STQ3BSED.cjs.map +0 -1
- package/dist/chunk-TVLKA4AY.js.map +0 -1
- package/dist/chunk-WBUFJ7BS.cjs.map +0 -1
- package/dist/chunk-XR4YZFKW.cjs.map +0 -1
- package/dist/chunk-YNULOIR5.cjs.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTRF4EBJT_cjs = require('./chunk-TRF4EBJT.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkBNS75YNF_cjs = require('./chunk-BNS75YNF.cjs');
|
|
5
5
|
var chunkACSVZPK7_cjs = require('./chunk-ACSVZPK7.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkJQXSZHF2_cjs = require('./chunk-JQXSZHF2.cjs');
|
|
7
7
|
var chunkQB6VMOJ2_cjs = require('./chunk-QB6VMOJ2.cjs');
|
|
8
8
|
var chunkZTAJL4DT_cjs = require('./chunk-ZTAJL4DT.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkIX64T5OL_cjs = require('./chunk-IX64T5OL.cjs');
|
|
10
10
|
var chunkZY4GXIVN_cjs = require('./chunk-ZY4GXIVN.cjs');
|
|
11
11
|
var chunk764JHTLT_cjs = require('./chunk-764JHTLT.cjs');
|
|
12
12
|
var chunkHAHNRASW_cjs = require('./chunk-HAHNRASW.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkJ2ICGNHO_cjs = require('./chunk-J2ICGNHO.cjs');
|
|
14
14
|
var chunkSVJ5GEXW_cjs = require('./chunk-SVJ5GEXW.cjs');
|
|
15
15
|
var chunkDI74SMXS_cjs = require('./chunk-DI74SMXS.cjs');
|
|
16
16
|
var chunkC4F7VJ5D_cjs = require('./chunk-C4F7VJ5D.cjs');
|
|
@@ -19,7 +19,7 @@ var zod = require('zod');
|
|
|
19
19
|
// src/ontology/core-meta-edges.ts
|
|
20
20
|
function createMetaEdge(name, properties) {
|
|
21
21
|
return Object.freeze({
|
|
22
|
-
[
|
|
22
|
+
[chunkBNS75YNF_cjs.META_EDGE_BRAND]: true,
|
|
23
23
|
name,
|
|
24
24
|
properties: {
|
|
25
25
|
transitive: properties.transitive ?? false,
|
|
@@ -910,7 +910,7 @@ var KindRegistry = class {
|
|
|
910
910
|
* Checks if child is a subclass of parent (directly or transitively).
|
|
911
911
|
*/
|
|
912
912
|
isSubClassOf(child, parent) {
|
|
913
|
-
return
|
|
913
|
+
return chunkJ2ICGNHO_cjs.isReachable(this.subClassAncestors, child, parent);
|
|
914
914
|
}
|
|
915
915
|
/**
|
|
916
916
|
* Expands a kind to include all its subclasses.
|
|
@@ -937,13 +937,13 @@ var KindRegistry = class {
|
|
|
937
937
|
* Checks if narrowerConcept is narrower than broaderConcept.
|
|
938
938
|
*/
|
|
939
939
|
isNarrowerThan(narrowerConcept, broaderConcept) {
|
|
940
|
-
return
|
|
940
|
+
return chunkJ2ICGNHO_cjs.isReachable(this.broaderClosure, narrowerConcept, broaderConcept);
|
|
941
941
|
}
|
|
942
942
|
/**
|
|
943
943
|
* Checks if broaderConcept is broader than narrowerConcept.
|
|
944
944
|
*/
|
|
945
945
|
isBroaderThan(broaderConcept, narrowerConcept) {
|
|
946
|
-
return
|
|
946
|
+
return chunkJ2ICGNHO_cjs.isReachable(this.narrowerClosure, broaderConcept, narrowerConcept);
|
|
947
947
|
}
|
|
948
948
|
/**
|
|
949
949
|
* Expands to include all narrower concepts.
|
|
@@ -1007,7 +1007,7 @@ var KindRegistry = class {
|
|
|
1007
1007
|
* Checks if part is part of whole (directly or transitively).
|
|
1008
1008
|
*/
|
|
1009
1009
|
isPartOf(part, whole) {
|
|
1010
|
-
return
|
|
1010
|
+
return chunkJ2ICGNHO_cjs.isReachable(this.partOfClosure, part, whole);
|
|
1011
1011
|
}
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Gets all wholes that contain this part.
|
|
@@ -1168,18 +1168,18 @@ function computeClosuresFromOntology(ontology) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
|
-
const subClassAncestors =
|
|
1172
|
-
const subClassDescendants =
|
|
1173
|
-
const broaderClosure =
|
|
1174
|
-
const narrowerClosure =
|
|
1171
|
+
const subClassAncestors = chunkJ2ICGNHO_cjs.computeTransitiveClosure(subClassRelations);
|
|
1172
|
+
const subClassDescendants = chunkJ2ICGNHO_cjs.invertClosure(subClassAncestors);
|
|
1173
|
+
const broaderClosure = chunkJ2ICGNHO_cjs.computeTransitiveClosure(broaderRelations);
|
|
1174
|
+
const narrowerClosure = chunkJ2ICGNHO_cjs.invertClosure(broaderClosure);
|
|
1175
1175
|
const equivalenceSets = computeEquivalenceSets(equivalentRelations);
|
|
1176
1176
|
const iriToKind = computeIriMapping(equivalentRelations);
|
|
1177
1177
|
const disjointPairs = computeDisjointPairs(disjointRelations);
|
|
1178
|
-
const partOfClosure =
|
|
1179
|
-
const hasPartClosure =
|
|
1178
|
+
const partOfClosure = chunkJ2ICGNHO_cjs.computeTransitiveClosure(partOfRelations);
|
|
1179
|
+
const hasPartClosure = chunkJ2ICGNHO_cjs.invertClosure(partOfClosure);
|
|
1180
1180
|
const edgeInverses = computeEdgeInverses(inverseOfRelations);
|
|
1181
|
-
const edgeImplicationsClosure =
|
|
1182
|
-
const edgeImplyingClosure =
|
|
1181
|
+
const edgeImplicationsClosure = chunkJ2ICGNHO_cjs.computeTransitiveClosure(impliesRelations);
|
|
1182
|
+
const edgeImplyingClosure = chunkJ2ICGNHO_cjs.invertClosure(edgeImplicationsClosure);
|
|
1183
1183
|
return {
|
|
1184
1184
|
subClassAncestors,
|
|
1185
1185
|
subClassDescendants,
|
|
@@ -1314,7 +1314,7 @@ function serializeDeprecatedKinds(set) {
|
|
|
1314
1314
|
function canonicalExtension(document) {
|
|
1315
1315
|
if (document === void 0) return void 0;
|
|
1316
1316
|
if (document.version === void 0) return document;
|
|
1317
|
-
if (document.version !==
|
|
1317
|
+
if (document.version !== chunkJ2ICGNHO_cjs.LEGACY_GRAPH_EXTENSION_VERSION) return document;
|
|
1318
1318
|
const { version: _omit, ...rest } = document;
|
|
1319
1319
|
return rest;
|
|
1320
1320
|
}
|
|
@@ -1525,8 +1525,8 @@ function serializeMetaEdge(metaEdge) {
|
|
|
1525
1525
|
function serializeOntologyRelation(relation) {
|
|
1526
1526
|
return {
|
|
1527
1527
|
metaEdge: relation.metaEdge.name,
|
|
1528
|
-
from:
|
|
1529
|
-
to:
|
|
1528
|
+
from: chunkBNS75YNF_cjs.getTypeName(relation.from),
|
|
1529
|
+
to: chunkBNS75YNF_cjs.getTypeName(relation.to)
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
1532
|
function serializeClosures(relations) {
|
|
@@ -1659,7 +1659,7 @@ function compileNodeCached(kindName, document) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
function compileNode(kindName, document) {
|
|
1661
1661
|
const schema = buildObjectSchema(document.properties);
|
|
1662
|
-
const type =
|
|
1662
|
+
const type = chunkBNS75YNF_cjs.defineNode(
|
|
1663
1663
|
kindName,
|
|
1664
1664
|
chunkDI74SMXS_cjs.compactUndefined({
|
|
1665
1665
|
schema,
|
|
@@ -1837,7 +1837,7 @@ function graphExtensionOntologyKey(entry) {
|
|
|
1837
1837
|
return `${entry.metaEdge}|${entry.from}|${entry.to}`;
|
|
1838
1838
|
}
|
|
1839
1839
|
function compileTimeOntologyKey(relation) {
|
|
1840
|
-
return `${relation.metaEdge.name}|${
|
|
1840
|
+
return `${relation.metaEdge.name}|${chunkBNS75YNF_cjs.getTypeName(relation.from)}|${chunkBNS75YNF_cjs.getTypeName(relation.to)}`;
|
|
1841
1841
|
}
|
|
1842
1842
|
function buildGraphExtensionOntologyKeySet(document) {
|
|
1843
1843
|
return new Set(
|
|
@@ -1858,7 +1858,7 @@ function mergeGraphExtension(graph, document) {
|
|
|
1858
1858
|
if (graph.extension !== void 0 && chunkACSVZPK7_cjs.canonicalEqual(unionDocument, existingDocument)) {
|
|
1859
1859
|
return graph;
|
|
1860
1860
|
}
|
|
1861
|
-
const validatedUnion =
|
|
1861
|
+
const validatedUnion = chunkJ2ICGNHO_cjs.unwrap(chunkJ2ICGNHO_cjs.validateGraphExtension(unionDocument));
|
|
1862
1862
|
const compiled = compileGraphExtension(validatedUnion);
|
|
1863
1863
|
const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = extensionKindNames(existingDocument);
|
|
1864
1864
|
const nodeKinds = /* @__PURE__ */ new Map();
|
|
@@ -1908,7 +1908,7 @@ function mergeGraphExtension(graph, document) {
|
|
|
1908
1908
|
edgeKind: edge.kindName,
|
|
1909
1909
|
side: "to"
|
|
1910
1910
|
});
|
|
1911
|
-
const type =
|
|
1911
|
+
const type = chunkBNS75YNF_cjs.defineEdge(
|
|
1912
1912
|
edge.kindName,
|
|
1913
1913
|
chunkDI74SMXS_cjs.compactUndefined({
|
|
1914
1914
|
schema: edge.schema,
|
|
@@ -2011,7 +2011,7 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
|
|
|
2011
2011
|
suggestion: "Declare the kind under `nodes` in this graph extension, or remove the index from `indexes`."
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
|
-
const declaration2 =
|
|
2014
|
+
const declaration2 = chunkIX64T5OL_cjs.defineNodeIndex(
|
|
2015
2015
|
node,
|
|
2016
2016
|
toNodeIndexConfig(document)
|
|
2017
2017
|
);
|
|
@@ -2025,7 +2025,7 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
|
|
|
2025
2025
|
suggestion: "Declare the edge under `edges` in this graph extension, or remove the index from `indexes`."
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
|
-
const declaration =
|
|
2028
|
+
const declaration = chunkIX64T5OL_cjs.defineEdgeIndex(
|
|
2029
2029
|
edgeRegistration.type,
|
|
2030
2030
|
toEdgeIndexConfig(document)
|
|
2031
2031
|
);
|
|
@@ -2112,14 +2112,14 @@ function isEmptyExtension(extension) {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
function assertNoCollision(kindName, entity, collides, graphId) {
|
|
2114
2114
|
if (!collides) return;
|
|
2115
|
-
throw new
|
|
2115
|
+
throw new chunkJ2ICGNHO_cjs.KindCollisionError(kindName, entity, graphId);
|
|
2116
2116
|
}
|
|
2117
2117
|
function resolveEndpoints(entries, nodeKinds, context) {
|
|
2118
2118
|
return entries.map((entry) => {
|
|
2119
2119
|
if (typeof entry !== "string") return entry;
|
|
2120
2120
|
const resolved = nodeKinds.get(entry);
|
|
2121
2121
|
if (resolved === void 0) {
|
|
2122
|
-
throw new
|
|
2122
|
+
throw new chunkJ2ICGNHO_cjs.GraphExtensionUnresolvedEndpointError(
|
|
2123
2123
|
context.edgeKind,
|
|
2124
2124
|
context.side,
|
|
2125
2125
|
entry,
|
|
@@ -2151,10 +2151,10 @@ function planRemovals(graph, names) {
|
|
|
2151
2151
|
);
|
|
2152
2152
|
for (const name of namesSet) {
|
|
2153
2153
|
if (compileTimeNodeNames.has(name)) {
|
|
2154
|
-
throw new
|
|
2154
|
+
throw new chunkJ2ICGNHO_cjs.RemoveCompileTimeKindError(name, "node", graph.id);
|
|
2155
2155
|
}
|
|
2156
2156
|
if (compileTimeEdgeNames.has(name)) {
|
|
2157
|
-
throw new
|
|
2157
|
+
throw new chunkJ2ICGNHO_cjs.RemoveCompileTimeKindError(name, "edge", graph.id);
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
const removedNodeKinds = [...namesSet].filter(
|
|
@@ -2170,7 +2170,7 @@ function planRemovals(graph, names) {
|
|
|
2170
2170
|
for (const kindName of removedNodeKinds) {
|
|
2171
2171
|
const referents = referentsByKind.get(kindName);
|
|
2172
2172
|
if (referents !== void 0 && referents.length > 0) {
|
|
2173
|
-
throw new
|
|
2173
|
+
throw new chunkJ2ICGNHO_cjs.KindHasReferentsError(kindName, referents, graph.id);
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
if (document === void 0) {
|
|
@@ -2300,8 +2300,8 @@ function buildCompileTimeReferentIndex(graph, runtimeEdgeNames) {
|
|
|
2300
2300
|
);
|
|
2301
2301
|
for (const relation of graph.ontology) {
|
|
2302
2302
|
if (runtimeOntologyKeys.has(compileTimeOntologyKey(relation))) continue;
|
|
2303
|
-
const fromName =
|
|
2304
|
-
const toName =
|
|
2303
|
+
const fromName = chunkBNS75YNF_cjs.getTypeName(relation.from);
|
|
2304
|
+
const toName = chunkBNS75YNF_cjs.getTypeName(relation.to);
|
|
2305
2305
|
const referent = {
|
|
2306
2306
|
type: "compile-time-ontology",
|
|
2307
2307
|
name: `${relation.metaEdge.name}(${fromName}, ${toName})`
|
|
@@ -2766,7 +2766,7 @@ async function loadActiveSchemaWithBootstrap(backend, graphId) {
|
|
|
2766
2766
|
try {
|
|
2767
2767
|
return await backend.getActiveSchema(graphId);
|
|
2768
2768
|
} catch (error) {
|
|
2769
|
-
if (backend.bootstrapTables &&
|
|
2769
|
+
if (backend.bootstrapTables && chunkJQXSZHF2_cjs.isMissingTableError(error)) {
|
|
2770
2770
|
await backend.bootstrapTables();
|
|
2771
2771
|
return await backend.getActiveSchema(graphId);
|
|
2772
2772
|
}
|
|
@@ -2937,7 +2937,7 @@ async function readActiveSchemaPure(backend, graphId) {
|
|
|
2937
2937
|
try {
|
|
2938
2938
|
activeRow = await backend.getActiveSchema(graphId);
|
|
2939
2939
|
} catch (error) {
|
|
2940
|
-
if (
|
|
2940
|
+
if (chunkJQXSZHF2_cjs.isMissingTableError(error)) {
|
|
2941
2941
|
throw schemaNotInitializedError(graphId, error);
|
|
2942
2942
|
}
|
|
2943
2943
|
throw error;
|
|
@@ -3151,5 +3151,5 @@ exports.serializeSchemaProperties = serializeSchemaProperties;
|
|
|
3151
3151
|
exports.stripGraphExtension = stripGraphExtension;
|
|
3152
3152
|
exports.subClassOf = subClassOf;
|
|
3153
3153
|
exports.validateImpliesEndpointCompatibility = validateImpliesEndpointCompatibility;
|
|
3154
|
-
//# sourceMappingURL=chunk-
|
|
3155
|
-
//# sourceMappingURL=chunk-
|
|
3154
|
+
//# sourceMappingURL=chunk-ZI6VQSZA.cjs.map
|
|
3155
|
+
//# sourceMappingURL=chunk-ZI6VQSZA.cjs.map
|