kele 0.0.1a1__cp313-cp313-win32.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 (74) 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.pyd +0 -0
  22. kele/egg_equiv.pyi +11 -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 +166 -0
  71. kele-0.0.1a1.dist-info/RECORD +74 -0
  72. kele-0.0.1a1.dist-info/WHEEL +4 -0
  73. kele-0.0.1a1.dist-info/licenses/LICENSE +28 -0
  74. kele-0.0.1a1.dist-info/licenses/licensecheck.json +20 -0
@@ -0,0 +1,74 @@
1
+ kele/__init__.py,sha256=Z_Fua5JFcu4D95GGGCVCYyPpJKmdJEQsHqoZnDFhVNU,883
2
+ kele/_version.py,sha256=nRGxVdhyLytlWLR9O_qufGr0zHUq7AVuRdrGd3kmCNY,21
3
+ kele/config.py,sha256=uECZJehFbPz_snqNsmTsFmxwJeP8gQMl2dmO-LJndqY,11259
4
+ kele/egg_equiv.pyi,sha256=KHrLdbe3ykMhi419Iu9W1yKtByXJSgcA6sQJtqYCXF0,585
5
+ kele/main.py,sha256=94b_vfPxYtpY9sMhLW8-1GJSAsaAyqSAB5Bh5Ax4BWw,22083
6
+ kele/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ kele/control/README_metrics.md,sha256=CJC8prAMjtT9CeqGNBl1EyFQe4vS1rigL44f_jGLsbw,3620
8
+ kele/control/__init__.py,sha256=lImX2pe_IVrju56CeItktmxqfajl-PLAw5sX24R0jbg,528
9
+ kele/control/callback.py,sha256=Fv8j73JnV1O0wr1PgN8nb9sjZ58QtfmuWqm2hLxR6sA,9226
10
+ kele/control/infer_path.py,sha256=bUA3T9xr17CwY9F3UeAQo39lbES4tg1vqGkLmhbXrFM,14658
11
+ kele/control/metrics.py,sha256=MW6QMddb7LPcMZ_yemxyXGgYnaWtYTsDDKfXnLwuoJo,13540
12
+ kele/control/status.py,sha256=Ajd_DzI6NfLLx6T6tF9m7RqbBVY1FR-sBohAC9_Zdlw,12034
13
+ kele/control/grounding_selector/__init__.py,sha256=0FlvU0gNV5DKgk0u8suPFloujwmw7G-VlQS6pi5r6wg,231
14
+ kele/control/grounding_selector/_selector_utils.py,sha256=QXqNYLxGujcixV80f-yCMYVrMypeK5pEiYG-DwwLH-I,4827
15
+ kele/control/grounding_selector/rule_selector.py,sha256=z9OxEEOAn8M6kNsKHRbQefuP4WQJikiEPwDRfHv8V7s,3794
16
+ kele/control/grounding_selector/term_selector.py,sha256=1zxTsgrWlWsz3upbCYh2Y6sTGR00nWvaMnyCn8o7rUM,3749
17
+ kele/control/grounding_selector/_rule_strategies/README.md,sha256=hqwRGNHiByGNyT_svaPLiBpKMfRExAe7826mM9KGARI,603
18
+ kele/control/grounding_selector/_rule_strategies/__init__.py,sha256=WJSFgSM0DLhIUMdeRrHuFxhBq7Fjy34-CnTmEn7kOao,818
19
+ kele/control/grounding_selector/_rule_strategies/_sequential_strategy.py,sha256=ZNSPXuV_VRDAK7a-EI4lEFr5-cH0lEirNdcMoPZZB-0,1401
20
+ kele/control/grounding_selector/_rule_strategies/strategy_protocol.py,sha256=IgXr6gAVZSj23FCA3h2vza--DBLPpfwxHbMfqy9O8oQ,1824
21
+ kele/control/grounding_selector/_term_strategies/__init__.py,sha256=YZlf36w4FUSFR-HNzYBQo7RNjLHVZWMRWNYXiDvQ7aA,818
22
+ kele/control/grounding_selector/_term_strategies/_exhausted_strategy.py,sha256=sbkD5ss0i-erBXAacWc_bP_yztLIp65-LhA8IQiWRLA,1375
23
+ kele/control/grounding_selector/_term_strategies/strategy_protocol.py,sha256=jZKJY4HrdV2qW0pWhU_QRYzfIOn5zFYC050xHejDoU0,1779
24
+ kele/equality/README.md,sha256=SsrrCgRfNFIpUJ2pxPdW5lwuNJNDeCb5ny9Vyk8mBAg,712
25
+ kele/equality/__init__.py,sha256=9oaOKxO66Pyp4YaxOEyo7E1jzxIOZHuL--wcXmr1OtQ,124
26
+ kele/equality/_equiv_elem.py,sha256=sUR0GL2xtpwJOmyYVnKtOC4yGrp8r1uWC2zJc-6sWJA,2083
27
+ kele/equality/_utils.py,sha256=nfEBGqiZg95wnmbIeHiRS4V8MPSr1TG7gACwHrwWjoI,1646
28
+ kele/equality/equivalence.py,sha256=bEGKgP_UtSkznL17vPGxC2CafQYlym_dnNx-a_KauzI,6345
29
+ kele/equality/_egg_equiv/src/lib.rs,sha256=wyHM9MqYb06WtjFRBzLVBW3xNbMTu7uXqQf4-7SxRJw,10443
30
+ kele/executer/__init__.py,sha256=KrctPXtxdXKOq6t2vFQYHP0edYjCgsjxMovL7ZmxfqM,112
31
+ kele/executer/executing.py,sha256=xYGJWTl9z3Kc4-q6K5zQABscjEu-koXEZa-ZokugvGo,6654
32
+ kele/grounder/README.md,sha256=E5D8BnoMufFHpK00YSGh2gfF46eHpDRKZlhdH0TldVE,6959
33
+ kele/grounder/__init__.py,sha256=0u7eeo58O90qdvp4SljH66Tl4XAZo6rbYsjbqBR65HY,460
34
+ kele/grounder/grounding.py,sha256=X0F0RUEXZjMS7LVb6rFh1fH24tVKKTWgHfadIBxvawA,6323
35
+ kele/grounder/grounded_rule_ds/__init__.py,sha256=P3hQ_pCcfar-wa-U0RdanjP79ajU1FUGej1cF1zsQmY,351
36
+ kele/grounder/grounded_rule_ds/grounded_class.py,sha256=X783SrU9LE_tQHtjGlE2FyJIXWnI_wem0NwfCIipM-s,24742
37
+ kele/grounder/grounded_rule_ds/grounded_ds_utils.py,sha256=cNxqueClsEhZZHHheiqmMVBSn04Y3XK2YAAqVFDrxD8,3978
38
+ kele/grounder/grounded_rule_ds/rule_check.py,sha256=KvOM0Lz2Tl_f9nBi1YaN-LRHnRJ3KM2AQhRIs3h6fd0,18576
39
+ kele/grounder/grounded_rule_ds/_nodes/__init__.py,sha256=Y3HK5bamlGjzX2sM9RQCYX1146-ngOyVFaRSa6-di1Y,740
40
+ kele/grounder/grounded_rule_ds/_nodes/_assertion.py,sha256=_We_FmXc92RI8jGUVAtWFsY9nWbNom9YDFZSefmYSts,16538
41
+ kele/grounder/grounded_rule_ds/_nodes/_conn.py,sha256=ObI-omUk8YFGpWHXY55evQ9DjFulg4kFQzy8i_mGPBc,6341
42
+ kele/grounder/grounded_rule_ds/_nodes/_op.py,sha256=BM1oRsFo3_aD8dKfOcouJ42uh0ozkSKqsdV6rXiYwIc,2429
43
+ kele/grounder/grounded_rule_ds/_nodes/_root.py,sha256=WO2_EkUzVffvvku_LKsg3p9EZZI_QdZ5i3v1lOwVGCA,3295
44
+ kele/grounder/grounded_rule_ds/_nodes/_rule.py,sha256=YKcBZzqxKNff4RGqwg9rdsB42DmPX6w6aaR2YHglrmU,4444
45
+ kele/grounder/grounded_rule_ds/_nodes/_term.py,sha256=cADzV1fBnY0-aLY0AIY1h3XVo3mJjle_KSfdTGk6om8,19770
46
+ kele/grounder/grounded_rule_ds/_nodes/_tftable.py,sha256=yXn54ZwFlW4447bcZaLeD64pg64keU9J2QB8rKFf7Qc,505
47
+ kele/grounder/grounded_rule_ds/_nodes/_tupletable.py,sha256=ePJ9Lc1X4NLteQPqo7f5ZCvCXsO_nQOypPIvdp0AH80,17617
48
+ kele/grounder/grounded_rule_ds/_nodes/_typing_polars.py,sha256=qZ22CUZfhxf_WljQYQ3bnRhye-6ZD1JYf4Rg9t7DE8A,869
49
+ kele/knowledge_bases/README.md,sha256=423cebnFriwQE6WhdLQQOSw_zIKb8g1U8hNInxe0hI0,5537
50
+ kele/knowledge_bases/__init__.py,sha256=Ct5ETuvdShuox_ziHok8Y6pH2TDUj91T79GN1CUo25I,235
51
+ kele/knowledge_bases/fact_base.py,sha256=TEud7twiEhaf5K2v9EuWFulRQdv4-bF-5O1f7NeIGbM,7682
52
+ kele/knowledge_bases/ontology_base.py,sha256=Tck25Yrvg808rZblPj27fP1nCWl_ZgBcUVPUf47635g,2238
53
+ kele/knowledge_bases/rule_base.py,sha256=ckP7zaNI2TwRNLqKb0Vdm61loXaj0FtPuzbLBjMs_HU,8995
54
+ kele/knowledge_bases/builtin_base/__init__.py,sha256=JSAhVS1IBM8Jxnm530u3hSppzMY6yCV5CpdaE3eCTfk,153
55
+ kele/knowledge_bases/builtin_base/builtin_concepts.py,sha256=BHEmXYey434mhFAXBnp9VDNzYzLU-5C9BhFiW5iw67I,501
56
+ kele/knowledge_bases/builtin_base/builtin_facts.py,sha256=bPVV3mShRnTF9e4YGPL4GHpQL2d3JldDESyN5LFvUME,1704
57
+ kele/knowledge_bases/builtin_base/builtin_operators.py,sha256=wXug6JNuawcgHK4i3nkRMd82NFhuABDTSpyt0G1odcI,3628
58
+ kele/knowledge_bases/builtin_base/builtin_rules.py,sha256=G0QsOFm6JEddyyjD_LxCZ7tZQgstcfHYG8TIF3BNPic,330
59
+ kele/syntax/CONCEPT_README.md,sha256=1N7bRUgARzaVW_9gZQ6CUkAuamQGEy3H4MLB6QGQcEE,3957
60
+ kele/syntax/__init__.py,sha256=MIxlyOR6ZjTm-5qZKNYFyhIvYxOkuFQ-MnpQjA1Avog,985
61
+ kele/syntax/_cnf_converter.py,sha256=2b5yjDapXg9wrITCgo0VCzKw5tZgPISoqrREEUpSl2E,6433
62
+ kele/syntax/_sat_solver.py,sha256=DdqiRBPV7Q3XkYag0N_ysBrDjw94KNhXKb4mjtVDlVg,4428
63
+ kele/syntax/base_classes.py,sha256=3U77mvAeekvL-QWygGJouWwNO-SBKHFyVE4R8gKeFn4,66819
64
+ kele/syntax/connectives.py,sha256=SpbyEd-QlhLYHWCkMWoRiS5DiG6bhv9MrvUSdNx-76s,515
65
+ kele/syntax/dnf_converter.py,sha256=0zubtQ0nM59P6ZDy89nZMafzIvL_cy6A9ssG-DVvOUY,5755
66
+ kele/syntax/external.py,sha256=zUG25YbGSVt9Q6bkzeaQo-PbLt-7kOF9wcoZsn5JeHY,899
67
+ kele/syntax/sub_concept.py,sha256=4cFlcoHLniRgDjyzyZwfyzGuWDUP-cqlX4-D6Ft9B34,3370
68
+ kele/syntax/syntacticsugar.py,sha256=Ac8BO9HUX_UZ20RpKJjjsPtevE2DMxPFgAxMnCdRIX8,6757
69
+ kele/egg_equiv.pyd,sha256=wiOVCP9IcJpx1hnJY96Itcb6RXNV6d8DX6Ikb_wohS0,305664
70
+ kele-0.0.1a1.dist-info/METADATA,sha256=OAw_ewLYtnuqPJ3ttvNsnKlnlVkKeq92pGFx3LMSrow,7215
71
+ kele-0.0.1a1.dist-info/WHEEL,sha256=64ZXRZcPG3ApPkISYCW5ndjwbUG9LUDIJPEdShucCEc,93
72
+ kele-0.0.1a1.dist-info/licenses/LICENSE,sha256=Hk8GVjbMG4kG8USYZYwcw2yENTu4kQIArNHozgz00EQ,1543
73
+ kele-0.0.1a1.dist-info/licenses/licensecheck.json,sha256=o_C37fe8hJuwi2EtndtlC3L7HP5g9sX-RDj7ApkaW0A,463
74
+ kele-0.0.1a1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win32
@@ -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.
@@ -0,0 +1,20 @@
1
+ {
2
+ "tool": {
3
+ "licensecheck": {
4
+ "extras": [],
5
+ "fail_licenses": [],
6
+ "fail_packages": [],
7
+ "format": "simple",
8
+ "groups": [],
9
+ "hide_output_parameters": [],
10
+ "ignore_licenses": [],
11
+ "ignore_packages": [],
12
+ "only_licenses": [],
13
+ "pypi_api": "https://pypi.org",
14
+ "requirements_paths": [],
15
+ "show_only_failing": false,
16
+ "skip_dependencies": [],
17
+ "zero": true
18
+ }
19
+ }
20
+ }