kele 0.0.1a1__cp314-cp314-macosx_11_0_arm64.whl

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.
Files changed (73) hide show
  1. kele/__init__.py +38 -0
  2. kele/_version.py +1 -0
  3. kele/config.py +243 -0
  4. kele/control/README_metrics.md +102 -0
  5. kele/control/__init__.py +20 -0
  6. kele/control/callback.py +255 -0
  7. kele/control/grounding_selector/__init__.py +5 -0
  8. kele/control/grounding_selector/_rule_strategies/README.md +13 -0
  9. kele/control/grounding_selector/_rule_strategies/__init__.py +24 -0
  10. kele/control/grounding_selector/_rule_strategies/_sequential_strategy.py +42 -0
  11. kele/control/grounding_selector/_rule_strategies/strategy_protocol.py +51 -0
  12. kele/control/grounding_selector/_selector_utils.py +123 -0
  13. kele/control/grounding_selector/_term_strategies/__init__.py +24 -0
  14. kele/control/grounding_selector/_term_strategies/_exhausted_strategy.py +34 -0
  15. kele/control/grounding_selector/_term_strategies/strategy_protocol.py +50 -0
  16. kele/control/grounding_selector/rule_selector.py +98 -0
  17. kele/control/grounding_selector/term_selector.py +89 -0
  18. kele/control/infer_path.py +306 -0
  19. kele/control/metrics.py +357 -0
  20. kele/control/status.py +286 -0
  21. kele/egg_equiv.pyi +11 -0
  22. kele/egg_equiv.so +0 -0
  23. kele/equality/README.md +8 -0
  24. kele/equality/__init__.py +4 -0
  25. kele/equality/_egg_equiv/src/lib.rs +267 -0
  26. kele/equality/_equiv_elem.py +67 -0
  27. kele/equality/_utils.py +36 -0
  28. kele/equality/equivalence.py +141 -0
  29. kele/executer/__init__.py +4 -0
  30. kele/executer/executing.py +139 -0
  31. kele/grounder/README.md +83 -0
  32. kele/grounder/__init__.py +17 -0
  33. kele/grounder/grounded_rule_ds/__init__.py +6 -0
  34. kele/grounder/grounded_rule_ds/_nodes/__init__.py +24 -0
  35. kele/grounder/grounded_rule_ds/_nodes/_assertion.py +353 -0
  36. kele/grounder/grounded_rule_ds/_nodes/_conn.py +116 -0
  37. kele/grounder/grounded_rule_ds/_nodes/_op.py +57 -0
  38. kele/grounder/grounded_rule_ds/_nodes/_root.py +71 -0
  39. kele/grounder/grounded_rule_ds/_nodes/_rule.py +119 -0
  40. kele/grounder/grounded_rule_ds/_nodes/_term.py +390 -0
  41. kele/grounder/grounded_rule_ds/_nodes/_tftable.py +15 -0
  42. kele/grounder/grounded_rule_ds/_nodes/_tupletable.py +444 -0
  43. kele/grounder/grounded_rule_ds/_nodes/_typing_polars.py +26 -0
  44. kele/grounder/grounded_rule_ds/grounded_class.py +461 -0
  45. kele/grounder/grounded_rule_ds/grounded_ds_utils.py +91 -0
  46. kele/grounder/grounded_rule_ds/rule_check.py +373 -0
  47. kele/grounder/grounding.py +118 -0
  48. kele/knowledge_bases/README.md +112 -0
  49. kele/knowledge_bases/__init__.py +6 -0
  50. kele/knowledge_bases/builtin_base/__init__.py +1 -0
  51. kele/knowledge_bases/builtin_base/builtin_concepts.py +13 -0
  52. kele/knowledge_bases/builtin_base/builtin_facts.py +43 -0
  53. kele/knowledge_bases/builtin_base/builtin_operators.py +105 -0
  54. kele/knowledge_bases/builtin_base/builtin_rules.py +14 -0
  55. kele/knowledge_bases/fact_base.py +158 -0
  56. kele/knowledge_bases/ontology_base.py +67 -0
  57. kele/knowledge_bases/rule_base.py +194 -0
  58. kele/main.py +464 -0
  59. kele/py.typed +0 -0
  60. kele/syntax/CONCEPT_README.md +117 -0
  61. kele/syntax/__init__.py +40 -0
  62. kele/syntax/_cnf_converter.py +161 -0
  63. kele/syntax/_sat_solver.py +116 -0
  64. kele/syntax/base_classes.py +1482 -0
  65. kele/syntax/connectives.py +20 -0
  66. kele/syntax/dnf_converter.py +145 -0
  67. kele/syntax/external.py +17 -0
  68. kele/syntax/sub_concept.py +87 -0
  69. kele/syntax/syntacticsugar.py +201 -0
  70. kele-0.0.1a1.dist-info/METADATA +165 -0
  71. kele-0.0.1a1.dist-info/RECORD +73 -0
  72. kele-0.0.1a1.dist-info/WHEEL +6 -0
  73. kele-0.0.1a1.dist-info/licenses/LICENSE +28 -0
@@ -0,0 +1,73 @@
1
+ kele/egg_equiv.so,sha256=XFZbahIonoru5W6O6wIazK-Z-EzC4nQ5yc3s7KdkQYA,658992
2
+ kele/config.py,sha256=YUeHaA8cDQIXginB7yI8gxtdJwME4bUbOU3BPn8L0k8,11016
3
+ kele/_version.py,sha256=Abqrz0vk7BddQ0ipQO0IoOv5W70WkUOHoSUUCLzr9Jc,20
4
+ kele/__init__.py,sha256=I1hQH5q_cIKahc3_S81wyG-PdCKbCGgcNFSzi0udyHw,845
5
+ kele/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ kele/egg_equiv.pyi,sha256=afbyk3Lwnt9KuiVYm8Os3w5ipX8yN_UoCxZWbI455v8,574
7
+ kele/main.py,sha256=hjmuTlPCH_pUH-cd8iw47nsAZ2qOeX3q8dVgN0VsTcU,21619
8
+ kele/grounder/__init__.py,sha256=2tyrGFT2bo_b5Zx7U-Mt9einySxGB2PZo5rvg5KyaT8,443
9
+ kele/grounder/README.md,sha256=TyzBBx3AYxwBkRl-vtj7OkGxKBOEa5LHivpx7l2kqaQ,6876
10
+ kele/grounder/grounding.py,sha256=I32TNDMe4DY9GTJkmdIVpxjXb_MZ7jtUWCganKEQ7UY,6205
11
+ kele/grounder/grounded_rule_ds/grounded_ds_utils.py,sha256=Nsc0ecZTlasEmY_Pj5oNq_znU17mp1HyNZ3OX4BhNLE,3887
12
+ kele/grounder/grounded_rule_ds/__init__.py,sha256=hOpLeC0PBtTKCnOMaEaf10i0N-Zv0527uZMyS1r0xmE,345
13
+ kele/grounder/grounded_rule_ds/rule_check.py,sha256=4P2Dj6fprXnW3R5eDbhD_rZembKdYvQOm_Pr6_5P56A,18203
14
+ kele/grounder/grounded_rule_ds/grounded_class.py,sha256=xbnQ3eM4JUj4ws9wm55X6upwnadXDnN-N6GLq51-aTQ,24281
15
+ kele/grounder/grounded_rule_ds/_nodes/_tftable.py,sha256=cNw2xjJotGDnHA1qSkN6GKOmwFlT3kGu-TYgZJ8eDiM,490
16
+ kele/grounder/grounded_rule_ds/_nodes/_tupletable.py,sha256=gh_SPEihkPH4V6lfCZY8pIUzhb2hI5_vT9LgfWt_rfE,17173
17
+ kele/grounder/grounded_rule_ds/_nodes/_conn.py,sha256=RYkp5Up26jE5-Y7Bt0ARRUy0IPdUNjl6kHLp6wguG6c,6225
18
+ kele/grounder/grounded_rule_ds/_nodes/_root.py,sha256=wdpKxjHYWIEHcfszf99oE5SnjR96OCLGhxdZx2gwDcU,3224
19
+ kele/grounder/grounded_rule_ds/_nodes/_assertion.py,sha256=vVoxFBLXO-9toDAT8rpfpDJumMRcJ0tftoWOkZleoX8,16185
20
+ kele/grounder/grounded_rule_ds/_nodes/__init__.py,sha256=uW9-7tANSRCQlsJsgdJ6cVKjL9vRGq7lFgRIfEzNvFA,716
21
+ kele/grounder/grounded_rule_ds/_nodes/_typing_polars.py,sha256=sCvGZu3YGzOkSClqM9NpacV_r4MsDpTB-wImbotWpis,843
22
+ kele/grounder/grounded_rule_ds/_nodes/_rule.py,sha256=FcHB1KO9kjqEH55fqeJFhpb_FXkoZCNesFgAdBVMmmg,4325
23
+ kele/grounder/grounded_rule_ds/_nodes/_term.py,sha256=IYHh-38Pc-mRxfWXJvCKDDAwQfQhdjDYKXhoTea4uxU,19380
24
+ kele/grounder/grounded_rule_ds/_nodes/_op.py,sha256=8Z_X_j4DySCuv7qi6IIoaEQB6B74RUaYhTt6qQo_pj0,2372
25
+ kele/knowledge_bases/ontology_base.py,sha256=bI-_wW8ZaCBQhpe1xOfqoUKbuxYPbVQnhdjCKg6HTJ8,2171
26
+ kele/knowledge_bases/rule_base.py,sha256=dy4hkoXphbnx0TyAuWF3kkFtvGvhlpl5GsyspHYqVss,8801
27
+ kele/knowledge_bases/fact_base.py,sha256=MnoqYjpy8N6r5Pl8o8sQeno1UWqcDS_po2kRe5fROLE,7524
28
+ kele/knowledge_bases/__init__.py,sha256=NHQSRQw3kV2pAaPIVNLuitgcIZk9CfwtW2PG8uqQ0rE,229
29
+ kele/knowledge_bases/README.md,sha256=ehWRSUwdxmjrZ1aaxKUaqr9CvoCgDLBeIMhnBEgg7ss,5425
30
+ kele/knowledge_bases/builtin_base/builtin_operators.py,sha256=3D5ugb92KSUZpBf9_YGxCuf3nx1jtDSOMGxUug4U4ys,3523
31
+ kele/knowledge_bases/builtin_base/__init__.py,sha256=XnejOpEMN5v26AHoXrCoZNm5udxkEL5MTySu1NbPrF4,152
32
+ kele/knowledge_bases/builtin_base/builtin_facts.py,sha256=MGYY7drm73AilDyW8BzayJjVLz8fdnCqov7v_aLMMoc,1661
33
+ kele/knowledge_bases/builtin_base/builtin_concepts.py,sha256=-mvKnfg_uRUB3AtVVtIdchGLrcWRufCtuVkDoFAs3kk,488
34
+ kele/knowledge_bases/builtin_base/builtin_rules.py,sha256=vsF4qKTHfLHHopthbwvmqc44r-JbY6xMkaO_uwmNAKA,316
35
+ kele/equality/__init__.py,sha256=U_pF053AdFgaf7dj_XZset1CwfLydTb9AoUHc5KHTjM,120
36
+ kele/equality/README.md,sha256=l8tpHJ6NYk2wJgYEJV8V8ywAqbTtLXC6PaHEdLh56Do,704
37
+ kele/equality/equivalence.py,sha256=h6r4uVYy2ghfmYAq4X8g5qFlDrECzmcShyYwCRBIhSw,6204
38
+ kele/equality/_equiv_elem.py,sha256=TT4YwxqxxZDEF4MQKfHbcO-yL6euXcSYAIb-Njw0bwI,2016
39
+ kele/equality/_utils.py,sha256=I_-nNxzr5MydCILITLwyT1qTYtz9e16a4StLZwaCD_U,1610
40
+ kele/equality/_egg_equiv/src/lib.rs,sha256=SH3Sd6UaAENWCdrX_XPHbCqmrWxdDEJ2VFqT3ti2ugw,10176
41
+ kele/executer/__init__.py,sha256=Ie-rWR1ELp1p50ViYfbc7XT6ei694SZggvM4RhC93FA,108
42
+ kele/executer/executing.py,sha256=Ps4rlZQ_50-WAPJKcSb6a_88DmWhgHnJX4FEAjjhcs0,6515
43
+ kele/syntax/CONCEPT_README.md,sha256=ra1oPJliXqU46l8wLlPSQds5ako0k5NpUIW0O8HuA0I,3840
44
+ kele/syntax/syntacticsugar.py,sha256=Ij00Zz-ugoA2u9X-EA1EatPleQSCxaBBwWMCN7dfSF0,6556
45
+ kele/syntax/sub_concept.py,sha256=IP8gajsoKN60BIl2XQ52FwUqDViyqG778jsi5UBb6Ss,3283
46
+ kele/syntax/dnf_converter.py,sha256=6rtFBOPwBv-5r-Xb5boOvTFuC5ad1SCGrLseZSVAziI,5610
47
+ kele/syntax/base_classes.py,sha256=89MstFuR9NQCurxkuGpSc1-9ouBmoHsLSvhN8I6mcFU,65337
48
+ kele/syntax/__init__.py,sha256=7GdV8-7cGQOpg88B6QzIPxKrijVa7iX-BsL7eQVsatc,945
49
+ kele/syntax/connectives.py,sha256=k0w_Y5_4blyD1di1XWdCdzrfZzyjq1PnupTjLT7P4L0,495
50
+ kele/syntax/external.py,sha256=HeielICS9leMiCluFJnBrjr7QXGidH4S2qVgV_4GpnU,882
51
+ kele/syntax/_cnf_converter.py,sha256=ZPrwwkPhs4j-NZphf0B73yshy8hdt9R655rqwXPiDVw,6272
52
+ kele/syntax/_sat_solver.py,sha256=Ep8Ts-lOSkIdaviRCweTMvX79akG0DV0u04y-ipbxV8,4312
53
+ kele/control/callback.py,sha256=ZavPI-q4tsXzoptVxzbNuV0ds8cPy_bKHx2AR-aIiOk,8971
54
+ kele/control/metrics.py,sha256=fJTLVyYcFw8odizyAS8AUn_DipRssh2tcA_cCA2sZpM,13183
55
+ kele/control/README_metrics.md,sha256=8lsUJ3uVEZaw3h0SyuwdGXQmHg7A5iTI6lwRu3dEmrw,3518
56
+ kele/control/infer_path.py,sha256=8PiUwfJqgn0g4ROait_Wmu_ysE1xB8FzLXzLj0pc-jg,14352
57
+ kele/control/__init__.py,sha256=RPQk7sZLY-Z2Yy-2sbkEy8QDOEjP9bMDPSlxiGTt79s,508
58
+ kele/control/status.py,sha256=nHzSoCWiXsCO9f-v4zQxLzNyyeaJmiaec9O-G8wge_k,11748
59
+ kele/control/grounding_selector/_selector_utils.py,sha256=a_ngDVoDHVC58ci5MzZGvToI512zewgqhQJJMxBg238,4704
60
+ kele/control/grounding_selector/rule_selector.py,sha256=Kwt-fuki_EUhIjUPMhhisoDjXgNBaFyOyO59Yqsaq8w,3696
61
+ kele/control/grounding_selector/__init__.py,sha256=kkPIMer9XgwAc0qQh97aAUsNLxU8fnlGzO77BRlkTiE,226
62
+ kele/control/grounding_selector/term_selector.py,sha256=WlwDgMxad54706fuVi6UB1_6zlkjB0HIu2y-ajhyLOg,3660
63
+ kele/control/grounding_selector/_term_strategies/_exhausted_strategy.py,sha256=zshyIoYHoGBL_CD8Ul8oaQOXWn5ksJlppEE-_9rjV6s,1341
64
+ kele/control/grounding_selector/_term_strategies/__init__.py,sha256=fiScOuFyOvOsTJ_4qBZUsAbbm4frXw2wdDH83X_Uqn8,794
65
+ kele/control/grounding_selector/_term_strategies/strategy_protocol.py,sha256=STO3FHvWG4GaJTgFfWlGVXD7Y9nqGAN_gA7jleDX2z0,1729
66
+ kele/control/grounding_selector/_rule_strategies/_sequential_strategy.py,sha256=gQA1ruLsDm4A6aIhUkVPCZYLliLZra3XteRzYwpwxtY,1359
67
+ kele/control/grounding_selector/_rule_strategies/__init__.py,sha256=I0Se_YI2SwMIS7_KigwvnAoFju3_ibWcI7A0fOOuK-8,794
68
+ kele/control/grounding_selector/_rule_strategies/README.md,sha256=D3QLy0bTDT6R78H9UOoXhBOkUxZKX-qVWFnvq6pLUOQ,590
69
+ kele/control/grounding_selector/_rule_strategies/strategy_protocol.py,sha256=JdpLuTMmVql9hB7LkioClqX2mpWmvdaxLIJZCG78Odg,1773
70
+ kele-0.0.1a1.dist-info/RECORD,,
71
+ kele-0.0.1a1.dist-info/WHEEL,sha256=WXbsi20BQPXASsTtoxXQwqKayNrjmxYKohCcHJqRTOk,133
72
+ kele-0.0.1a1.dist-info/METADATA,sha256=3smBb3-jq7rg9d6vmo8f7HESA0UIlWq4iBULRoNsaqo,7183
73
+ kele-0.0.1a1.dist-info/licenses/LICENSE,sha256=yrgzwbwrQIG34zMTxU1YlNLq50LAa0AJDIutZTLTkmI,1515
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-macosx_11_0_arm64
5
+ Generator: delocate 0.13.0
6
+
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, USTC Knowledge Computing Lab
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.