fuzzy-dl-owl2 1.0.0__py3-none-any.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 (167) hide show
  1. fuzzy_dl_owl2/__init__.py +2 -0
  2. fuzzy_dl_owl2/fuzzydl/__init__.py +23 -0
  3. fuzzy_dl_owl2/fuzzydl/assertion/__init__.py +2 -0
  4. fuzzy_dl_owl2/fuzzydl/assertion/assertion.py +72 -0
  5. fuzzy_dl_owl2/fuzzydl/assertion/atomic_assertion.py +19 -0
  6. fuzzy_dl_owl2/fuzzydl/concept/__init__.py +13 -0
  7. fuzzy_dl_owl2/fuzzydl/concept/all_some_concept.py +85 -0
  8. fuzzy_dl_owl2/fuzzydl/concept/approximation_concept.py +147 -0
  9. fuzzy_dl_owl2/fuzzydl/concept/atomic_concept.py +91 -0
  10. fuzzy_dl_owl2/fuzzydl/concept/choquet_integral.py +64 -0
  11. fuzzy_dl_owl2/fuzzydl/concept/concept.py +230 -0
  12. fuzzy_dl_owl2/fuzzydl/concept/concrete/__init__.py +10 -0
  13. fuzzy_dl_owl2/fuzzydl/concept/concrete/crisp_concrete_concept.py +60 -0
  14. fuzzy_dl_owl2/fuzzydl/concept/concrete/fuzzy_concrete_concept.py +63 -0
  15. fuzzy_dl_owl2/fuzzydl/concept/concrete/fuzzy_number/__init__.py +1 -0
  16. fuzzy_dl_owl2/fuzzydl/concept/concrete/fuzzy_number/triangular_fuzzy_number.py +127 -0
  17. fuzzy_dl_owl2/fuzzydl/concept/concrete/left_concrete_concept.py +70 -0
  18. fuzzy_dl_owl2/fuzzydl/concept/concrete/linear_concrete_concept.py +70 -0
  19. fuzzy_dl_owl2/fuzzydl/concept/concrete/modified_concrete_concept.py +66 -0
  20. fuzzy_dl_owl2/fuzzydl/concept/concrete/right_concrete_concept.py +70 -0
  21. fuzzy_dl_owl2/fuzzydl/concept/concrete/trapezoidal_concrete_concept.py +96 -0
  22. fuzzy_dl_owl2/fuzzydl/concept/concrete/triangular_concrete_concept.py +89 -0
  23. fuzzy_dl_owl2/fuzzydl/concept/ext_threshold_concept.py +77 -0
  24. fuzzy_dl_owl2/fuzzydl/concept/has_value_concept.py +51 -0
  25. fuzzy_dl_owl2/fuzzydl/concept/implies_concept.py +144 -0
  26. fuzzy_dl_owl2/fuzzydl/concept/interface/__init__.py +6 -0
  27. fuzzy_dl_owl2/fuzzydl/concept/interface/has_concept_interface.py +17 -0
  28. fuzzy_dl_owl2/fuzzydl/concept/interface/has_concepts_interface.py +18 -0
  29. fuzzy_dl_owl2/fuzzydl/concept/interface/has_role_concept_interface.py +14 -0
  30. fuzzy_dl_owl2/fuzzydl/concept/interface/has_role_interface.py +15 -0
  31. fuzzy_dl_owl2/fuzzydl/concept/interface/has_value_interface.py +21 -0
  32. fuzzy_dl_owl2/fuzzydl/concept/interface/has_weighted_concepts_interface.py +29 -0
  33. fuzzy_dl_owl2/fuzzydl/concept/modified/__init__.py +3 -0
  34. fuzzy_dl_owl2/fuzzydl/concept/modified/linearly_modified_concept.py +32 -0
  35. fuzzy_dl_owl2/fuzzydl/concept/modified/modified_concept.py +59 -0
  36. fuzzy_dl_owl2/fuzzydl/concept/modified/triangularly_modified_concept.py +33 -0
  37. fuzzy_dl_owl2/fuzzydl/concept/negated_nominal.py +42 -0
  38. fuzzy_dl_owl2/fuzzydl/concept/operator_concept.py +707 -0
  39. fuzzy_dl_owl2/fuzzydl/concept/owa_concept.py +57 -0
  40. fuzzy_dl_owl2/fuzzydl/concept/qowa_concept.py +62 -0
  41. fuzzy_dl_owl2/fuzzydl/concept/quasi_sugeno_integral.py +46 -0
  42. fuzzy_dl_owl2/fuzzydl/concept/self_concept.py +45 -0
  43. fuzzy_dl_owl2/fuzzydl/concept/string_concept.py +35 -0
  44. fuzzy_dl_owl2/fuzzydl/concept/sugeno_integral.py +83 -0
  45. fuzzy_dl_owl2/fuzzydl/concept/threshold_concept.py +81 -0
  46. fuzzy_dl_owl2/fuzzydl/concept/truth_concept.py +83 -0
  47. fuzzy_dl_owl2/fuzzydl/concept/value_concept.py +67 -0
  48. fuzzy_dl_owl2/fuzzydl/concept/weighted_concept.py +55 -0
  49. fuzzy_dl_owl2/fuzzydl/concept/weighted_max_concept.py +63 -0
  50. fuzzy_dl_owl2/fuzzydl/concept/weighted_min_concept.py +57 -0
  51. fuzzy_dl_owl2/fuzzydl/concept/weighted_sum_concept.py +62 -0
  52. fuzzy_dl_owl2/fuzzydl/concept/weighted_sum_zero_concept.py +62 -0
  53. fuzzy_dl_owl2/fuzzydl/concept_equivalence.py +20 -0
  54. fuzzy_dl_owl2/fuzzydl/concrete_feature.py +94 -0
  55. fuzzy_dl_owl2/fuzzydl/degree/__init__.py +4 -0
  56. fuzzy_dl_owl2/fuzzydl/degree/degree.py +79 -0
  57. fuzzy_dl_owl2/fuzzydl/degree/degree_expression.py +57 -0
  58. fuzzy_dl_owl2/fuzzydl/degree/degree_numeric.py +57 -0
  59. fuzzy_dl_owl2/fuzzydl/degree/degree_variable.py +54 -0
  60. fuzzy_dl_owl2/fuzzydl/domain_axiom.py +8 -0
  61. fuzzy_dl_owl2/fuzzydl/exception/__init__.py +2 -0
  62. fuzzy_dl_owl2/fuzzydl/exception/fuzzy_ontology_exception.py +4 -0
  63. fuzzy_dl_owl2/fuzzydl/exception/inconsistent_ontology_exception.py +4 -0
  64. fuzzy_dl_owl2/fuzzydl/feature_function.py +148 -0
  65. fuzzy_dl_owl2/fuzzydl/fuzzydl_to_owl2.py +920 -0
  66. fuzzy_dl_owl2/fuzzydl/fuzzydl_to_owl2_java.py +953 -0
  67. fuzzy_dl_owl2/fuzzydl/general_concept_inclusion.py +82 -0
  68. fuzzy_dl_owl2/fuzzydl/individual/__init__.py +3 -0
  69. fuzzy_dl_owl2/fuzzydl/individual/created_individual.py +219 -0
  70. fuzzy_dl_owl2/fuzzydl/individual/individual.py +113 -0
  71. fuzzy_dl_owl2/fuzzydl/individual/representative_individual.py +37 -0
  72. fuzzy_dl_owl2/fuzzydl/knowledge_base.py +9037 -0
  73. fuzzy_dl_owl2/fuzzydl/label.py +32 -0
  74. fuzzy_dl_owl2/fuzzydl/milp/__init__.py +7 -0
  75. fuzzy_dl_owl2/fuzzydl/milp/expression.py +186 -0
  76. fuzzy_dl_owl2/fuzzydl/milp/inequation.py +55 -0
  77. fuzzy_dl_owl2/fuzzydl/milp/milp_helper.py +787 -0
  78. fuzzy_dl_owl2/fuzzydl/milp/show_variables_helper.py +151 -0
  79. fuzzy_dl_owl2/fuzzydl/milp/solution.py +45 -0
  80. fuzzy_dl_owl2/fuzzydl/milp/term.py +76 -0
  81. fuzzy_dl_owl2/fuzzydl/milp/variable.py +89 -0
  82. fuzzy_dl_owl2/fuzzydl/modifier/__init__.py +3 -0
  83. fuzzy_dl_owl2/fuzzydl/modifier/linear_modifier.py +76 -0
  84. fuzzy_dl_owl2/fuzzydl/modifier/modifier.py +39 -0
  85. fuzzy_dl_owl2/fuzzydl/modifier/triangular_modifier.py +76 -0
  86. fuzzy_dl_owl2/fuzzydl/parser/ParserConstants.py +406 -0
  87. fuzzy_dl_owl2/fuzzydl/parser/__init__.py +1 -0
  88. fuzzy_dl_owl2/fuzzydl/parser/dl_parser.py +2029 -0
  89. fuzzy_dl_owl2/fuzzydl/parser/ebnf.lark +290 -0
  90. fuzzy_dl_owl2/fuzzydl/parser/larkx.py +70 -0
  91. fuzzy_dl_owl2/fuzzydl/primitive_concept_definition.py +81 -0
  92. fuzzy_dl_owl2/fuzzydl/query/__init__.py +14 -0
  93. fuzzy_dl_owl2/fuzzydl/query/all_instances_query.py +50 -0
  94. fuzzy_dl_owl2/fuzzydl/query/bnp_query.py +22 -0
  95. fuzzy_dl_owl2/fuzzydl/query/defuzzify/__init__.py +4 -0
  96. fuzzy_dl_owl2/fuzzydl/query/defuzzify/defuzzify_query.py +76 -0
  97. fuzzy_dl_owl2/fuzzydl/query/defuzzify/lom_defuzzify_query.py +19 -0
  98. fuzzy_dl_owl2/fuzzydl/query/defuzzify/mom_defuzzify_query.py +88 -0
  99. fuzzy_dl_owl2/fuzzydl/query/defuzzify/som_defuzzify_query.py +20 -0
  100. fuzzy_dl_owl2/fuzzydl/query/instance_query.py +19 -0
  101. fuzzy_dl_owl2/fuzzydl/query/kb_satisfiable_query.py +32 -0
  102. fuzzy_dl_owl2/fuzzydl/query/max/__init__.py +5 -0
  103. fuzzy_dl_owl2/fuzzydl/query/max/max_instance_query.py +45 -0
  104. fuzzy_dl_owl2/fuzzydl/query/max/max_query.py +31 -0
  105. fuzzy_dl_owl2/fuzzydl/query/max/max_related_query.py +45 -0
  106. fuzzy_dl_owl2/fuzzydl/query/max/max_satisfiable_query.py +73 -0
  107. fuzzy_dl_owl2/fuzzydl/query/max/max_subsumes_query.py +64 -0
  108. fuzzy_dl_owl2/fuzzydl/query/min/__init__.py +5 -0
  109. fuzzy_dl_owl2/fuzzydl/query/min/min_instance_query.py +50 -0
  110. fuzzy_dl_owl2/fuzzydl/query/min/min_query.py +31 -0
  111. fuzzy_dl_owl2/fuzzydl/query/min/min_related_query.py +57 -0
  112. fuzzy_dl_owl2/fuzzydl/query/min/min_satisfiable_query.py +80 -0
  113. fuzzy_dl_owl2/fuzzydl/query/min/min_subsumes_query.py +65 -0
  114. fuzzy_dl_owl2/fuzzydl/query/query.py +38 -0
  115. fuzzy_dl_owl2/fuzzydl/query/related_query.py +15 -0
  116. fuzzy_dl_owl2/fuzzydl/query/satisfiable_query.py +37 -0
  117. fuzzy_dl_owl2/fuzzydl/query/subsumption_query.py +20 -0
  118. fuzzy_dl_owl2/fuzzydl/range_axiom.py +7 -0
  119. fuzzy_dl_owl2/fuzzydl/relation.py +47 -0
  120. fuzzy_dl_owl2/fuzzydl/restriction/__init__.py +2 -0
  121. fuzzy_dl_owl2/fuzzydl/restriction/has_value_restriction.py +16 -0
  122. fuzzy_dl_owl2/fuzzydl/restriction/restriction.py +34 -0
  123. fuzzy_dl_owl2/fuzzydl/role_parent_with_degree.py +10 -0
  124. fuzzy_dl_owl2/fuzzydl/util/__init__.py +3 -0
  125. fuzzy_dl_owl2/fuzzydl/util/config_reader.py +56 -0
  126. fuzzy_dl_owl2/fuzzydl/util/constants.py +424 -0
  127. fuzzy_dl_owl2/fuzzydl/util/util.py +73 -0
  128. fuzzy_dl_owl2/fuzzyowl2/__init__.py +5 -0
  129. fuzzy_dl_owl2/fuzzyowl2/fuzzyowl2.py +1513 -0
  130. fuzzy_dl_owl2/fuzzyowl2/fuzzyowl2_java.py +1409 -0
  131. fuzzy_dl_owl2/fuzzyowl2/fuzzyowl2_to_fuzzydl.py +917 -0
  132. fuzzy_dl_owl2/fuzzyowl2/fuzzyowl2_to_fuzzydl_java.py +956 -0
  133. fuzzy_dl_owl2/fuzzyowl2/owl_types/__init__.py +0 -0
  134. fuzzy_dl_owl2/fuzzyowl2/owl_types/choquet_concept.py +19 -0
  135. fuzzy_dl_owl2/fuzzyowl2/owl_types/concept_definition.py +14 -0
  136. fuzzy_dl_owl2/fuzzyowl2/owl_types/fuzzy_datatype.py +22 -0
  137. fuzzy_dl_owl2/fuzzyowl2/owl_types/fuzzy_modifier.py +4 -0
  138. fuzzy_dl_owl2/fuzzyowl2/owl_types/fuzzy_nominal_concept.py +19 -0
  139. fuzzy_dl_owl2/fuzzyowl2/owl_types/fuzzy_property.py +5 -0
  140. fuzzy_dl_owl2/fuzzyowl2/owl_types/left_shoulder_function.py +17 -0
  141. fuzzy_dl_owl2/fuzzyowl2/owl_types/linear_function.py +17 -0
  142. fuzzy_dl_owl2/fuzzyowl2/owl_types/linear_modifier.py +13 -0
  143. fuzzy_dl_owl2/fuzzyowl2/owl_types/modified_concept.py +19 -0
  144. fuzzy_dl_owl2/fuzzyowl2/owl_types/modified_function.py +17 -0
  145. fuzzy_dl_owl2/fuzzyowl2/owl_types/modified_property.py +15 -0
  146. fuzzy_dl_owl2/fuzzyowl2/owl_types/owa_concept.py +19 -0
  147. fuzzy_dl_owl2/fuzzyowl2/owl_types/property_definition.py +10 -0
  148. fuzzy_dl_owl2/fuzzyowl2/owl_types/qowa_concept.py +19 -0
  149. fuzzy_dl_owl2/fuzzyowl2/owl_types/quasi_sugeno_concept.py +21 -0
  150. fuzzy_dl_owl2/fuzzyowl2/owl_types/right_shoulder_function.py +17 -0
  151. fuzzy_dl_owl2/fuzzyowl2/owl_types/sugeno_concept.py +21 -0
  152. fuzzy_dl_owl2/fuzzyowl2/owl_types/trapezoidal_function.py +25 -0
  153. fuzzy_dl_owl2/fuzzyowl2/owl_types/triangular_function.py +21 -0
  154. fuzzy_dl_owl2/fuzzyowl2/owl_types/triangular_modifer.py +21 -0
  155. fuzzy_dl_owl2/fuzzyowl2/owl_types/weighted_concept.py +19 -0
  156. fuzzy_dl_owl2/fuzzyowl2/owl_types/weighted_max_concept.py +15 -0
  157. fuzzy_dl_owl2/fuzzyowl2/owl_types/weighted_min_concept.py +15 -0
  158. fuzzy_dl_owl2/fuzzyowl2/owl_types/weighted_sum_concept.py +15 -0
  159. fuzzy_dl_owl2/fuzzyowl2/owl_types/weighted_sum_zero_concept.py +15 -0
  160. fuzzy_dl_owl2/fuzzyowl2/parser/__init__.py +1 -0
  161. fuzzy_dl_owl2/fuzzyowl2/parser/owl2_parser.py +491 -0
  162. fuzzy_dl_owl2/fuzzyowl2/util/__init__.py +1 -0
  163. fuzzy_dl_owl2/fuzzyowl2/util/constants.py +112 -0
  164. fuzzy_dl_owl2-1.0.0.dist-info/LICENSE +427 -0
  165. fuzzy_dl_owl2-1.0.0.dist-info/METADATA +299 -0
  166. fuzzy_dl_owl2-1.0.0.dist-info/RECORD +167 -0
  167. fuzzy_dl_owl2-1.0.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,406 @@
1
+ import enum
2
+
3
+
4
+ class ParserConstants(enum.Enum):
5
+ DEFAULT = 0
6
+ EOF = 0
7
+ SINGLE_LINE_COMMENT = 3
8
+ EOL = 4
9
+ INSTANCE = 5
10
+ MAX_INSTANCE_QUERY = 6
11
+ MIN_INSTANCE_QUERY = 7
12
+ ALL_INSTANCE_QUERY = 8
13
+ MAX_RELATED_QUERY = 9
14
+ MIN_RELATED_QUERY = 10
15
+ MAX_SUBSUMES_QUERY = 11
16
+ MAX_G_SUBSUMES_QUERY = 12
17
+ MAX_L_SUBSUMES_QUERY = 13
18
+ MAX_KD_SUBSUMES_QUERY = 14
19
+ MIN_SUBSUMES_QUERY = 15
20
+ MIN_G_SUBSUMES_QUERY = 16
21
+ MIN_L_SUBSUMES_QUERY = 17
22
+ MIN_KD_SUBSUMES_QUERY = 18
23
+ MAX_SATISFIABLE_QUERY = 19
24
+ MIN_SATISFIABLE_QUERY = 20
25
+ MAX_QUERY = 21
26
+ MIN_QUERY = 22
27
+ SATISFIABLE_QUERY = 23
28
+ LOM_DEFUZZIFY_QUERY = 24
29
+ SOM_DEFUZZIFY_QUERY = 25
30
+ MOM_DEFUZZIFY_QUERY = 26
31
+ BNP_QUERY = 27
32
+ DEFINE_TRUTH_CONSTANT = 28
33
+ DEFINE_CONCEPT = 29
34
+ DEFINE_PRIMITIVE_CONCEPT = 30
35
+ EQUIVALENT_CONCEPTS = 31
36
+ DEFINE_FUZZY_CONCEPT = 32
37
+ DEFINE_FUZZY_NUMBER = 33
38
+ DEFINE_FUZZY_NUMBER_RANGE = 34
39
+ DEFINE_FUZZY_SIMILARITY = 35
40
+ DEFINE_FUZZY_EQUIVALENCE = 36
41
+ RELATED = 37
42
+ DEFINE_MODIFIER = 38
43
+ FUNCTIONAL = 39
44
+ TRANSITIVE = 40
45
+ REFLEXIVE = 41
46
+ SYMMETRIC = 42
47
+ IMPLIES_ROLE = 43
48
+ INVERSE = 44
49
+ INVERSE_FUNCTIONAL = 45
50
+ DISJOINT = 46
51
+ DISJOINT_UNION = 47
52
+ RANGE = 48
53
+ DOMAIN = 49
54
+ CONSTRAINTS = 50
55
+ FUZZY_LOGIC = 51
56
+ CRISP_CONCEPT = 52
57
+ CRISP_ROLE = 53
58
+ COM = 54
59
+ AND = 55
60
+ G_AND = 56
61
+ L_AND = 57
62
+ IMPLIES = 58
63
+ G_IMPLIES = 59
64
+ KD_IMPLIES = 60
65
+ L_IMPLIES = 61
66
+ Z_IMPLIES = 62
67
+ OR = 63
68
+ G_OR = 64
69
+ L_OR = 65
70
+ NOT = 66
71
+ SOME = 67
72
+ HAS_VALUE = 68
73
+ ALL = 69
74
+ TOP = 70
75
+ BOTTOM = 71
76
+ W_SUM = 72
77
+ W_SUM_ZERO = 73
78
+ W_MAX = 74
79
+ W_MIN = 75
80
+ SELF = 76
81
+ UPPER_APPROX = 77
82
+ LOWER_APPROX = 78
83
+ OWA = 79
84
+ QOWA = 80
85
+ CHOQUET = 81
86
+ SUGENO = 82
87
+ QSUGENO = 83
88
+ TIGHT_UPPER_APPROX = 84
89
+ TIGHT_LOWER_APPROX = 85
90
+ LOOSE_UPPER_APPROX = 86
91
+ LOOSE_LOWER_APPROX = 87
92
+ FUZZY_NUMBER_ADD = 88
93
+ FUZZY_NUMBER_MINUS = 89
94
+ FUZZY_NUMBER_MULT = 90
95
+ FUZZY_NUMBER_DIV = 91
96
+ CRISP = 92
97
+ LS = 93
98
+ RS = 94
99
+ TRI = 95
100
+ TRAP = 96
101
+ LINEAR = 97
102
+ MODIFIED = 98
103
+ LM = 99
104
+ TRIAM = 100
105
+ SHOW_VARIABLES = 101
106
+ SHOW_ABSTRACT_FILLER = 102
107
+ SHOW_ABSTRACT_FILLER_FOR = 103
108
+ SHOW_CONCRETE_FILLER = 104
109
+ SHOW_CONCRETE_FILLER_FOR = 105
110
+ SHOW_CONCRETE_FILLER_AND_LABELS = 106
111
+ SHOW_INSTANCES = 107
112
+ SHOW_CONCEPTS = 108
113
+ SHOW_LANGUAGE = 109
114
+ FR = 110
115
+ BV = 111
116
+ LUKASIEWICZ = 112
117
+ ZADEH = 113
118
+ CLASSICAL = 114
119
+ PLUS = 115
120
+ MINUS = 116
121
+ STAR = 117
122
+ LESS = 118
123
+ GRE = 119
124
+ EQL = 120
125
+ IDENTIFIER = 121
126
+ OP = 122
127
+ CP = 123
128
+ OSB = 124
129
+ CSB = 125
130
+ OCB = 126
131
+ CCB = 127
132
+ COMMENT_MARK = 128
133
+ COMMA = 129
134
+ NUMBER = 130
135
+ STRING_TYPE = 131
136
+ BOOLEAN_TYPE = 132
137
+ NUMBER_TYPE = 133
138
+
139
+
140
+ TOKEN_IMAGE: list[str] = [
141
+ "<EOF>",
142
+ '" "',
143
+ '"\\t"',
144
+ "<SINGLE_LINE_COMMENT>",
145
+ "<EOL>",
146
+ '"instance"',
147
+ '"max-instance?"',
148
+ '"min-instance?"',
149
+ '"all-instances?"',
150
+ '"max-related?"',
151
+ '"min-related?"',
152
+ '"max-subs?"',
153
+ '"max-g-subs?"',
154
+ '"max-l-subs?"',
155
+ '"max-kd-subs?"',
156
+ '"min-subs?"',
157
+ '"min-g-subs?"',
158
+ '"min-l-subs?"',
159
+ '"min-kd-subs?"',
160
+ '"max-sat?"',
161
+ '"min-sat?"',
162
+ '"max-var?"',
163
+ '"min-var?"',
164
+ '"sat?"',
165
+ '"defuzzify-lom?"',
166
+ '"defuzzify-som?"',
167
+ '"defuzzify-mom?"',
168
+ '"bnp?"',
169
+ '"define-truth-constant"',
170
+ '"define-concept"',
171
+ '"define-primitive-concept"',
172
+ '"equivalent-concepts"',
173
+ '"define-fuzzy-concept"',
174
+ '"define-fuzzy-number"',
175
+ '"define-fuzzy-number-range"',
176
+ '"define-fuzzy-similarity"',
177
+ '"define-fuzzy-equivalence"',
178
+ '"related"',
179
+ '"define-modifier"',
180
+ '"functional"',
181
+ '"transitive"',
182
+ '"reflexive"',
183
+ '"symmetric"',
184
+ '"implies-role"',
185
+ '"inverse"',
186
+ '"inverse-functional"',
187
+ '"disjoint"',
188
+ '"disjoint-union"',
189
+ '"range"',
190
+ '"domain"',
191
+ '"constraints"',
192
+ '"define-fuzzy-logic"',
193
+ '"crisp-concept"',
194
+ '"crisp-role"',
195
+ '"\\""',
196
+ '"and"',
197
+ '"g-and"',
198
+ '"l-and"',
199
+ '"implies"',
200
+ '"g-implies"',
201
+ '"kd-implies"',
202
+ '"l-implies"',
203
+ '"z-implies"',
204
+ '"or"',
205
+ '"g-or"',
206
+ '"l-or"',
207
+ '"not"',
208
+ '"some"',
209
+ '"b-some"',
210
+ '"all"',
211
+ '"*top*"',
212
+ '"*bottom*"',
213
+ '"w-sum"',
214
+ '"w-sum-zero"',
215
+ '"w-max"',
216
+ '"w-min"',
217
+ '"self"',
218
+ '"ua"',
219
+ '"la"',
220
+ '"owa"',
221
+ '"q-owa"',
222
+ '"choquet"',
223
+ '"sugeno"',
224
+ '"q-sugeno"',
225
+ '"tua"',
226
+ '"tla"',
227
+ '"lua"',
228
+ '"lla"',
229
+ '"f+"',
230
+ '"f-"',
231
+ '"f*"',
232
+ '"f/"',
233
+ '"crisp"',
234
+ '"left-shoulder"',
235
+ '"right-shoulder"',
236
+ '"triangular"',
237
+ '"trapezoidal"',
238
+ '"linear"',
239
+ '"modified"',
240
+ '"linear-modifier"',
241
+ '"triangular-modifier"',
242
+ '"show-variables"',
243
+ '"show-abstract-fillers"',
244
+ '"show-abstract-fillers-for"',
245
+ '"show-concrete-fillers"',
246
+ '"show-concrete-fillers-for"',
247
+ '"show-concrete-instance-for"',
248
+ '"show-instances"',
249
+ '"show-concepts"',
250
+ '"show-language"',
251
+ '"free"',
252
+ '"binary"',
253
+ '"lukasiewicz"',
254
+ '"zadeh"',
255
+ '"classical"',
256
+ '"+"',
257
+ '"-"',
258
+ '"*"',
259
+ '"<="',
260
+ '">="',
261
+ '"="',
262
+ "<IDENTIFIER>",
263
+ '"("',
264
+ '")"',
265
+ '"["',
266
+ '"]"',
267
+ '"{"',
268
+ '"}"',
269
+ '"#"',
270
+ '","',
271
+ "<NUMBER>",
272
+ '"*string*"',
273
+ '"*boolean*"',
274
+ "<NUMBER_TYPE>",
275
+ ]
276
+
277
+ LITERAL_IMAGES: list[str] = [
278
+ "max-instance?",
279
+ "min-instance?",
280
+ "all-instances?",
281
+ "max-related?",
282
+ "min-related?",
283
+ "max-subs?",
284
+ "max-g-subs?",
285
+ "max-l-subs?",
286
+ "max-kd-subs?",
287
+ "min-subs?",
288
+ "min-g-subs?",
289
+ "min-l-subs?",
290
+ "min-kd-subs?",
291
+ "max-sat?",
292
+ "min-sat?",
293
+ "max-var?",
294
+ "min-var?",
295
+ "sat?",
296
+ "defuzzify-lom?",
297
+ "defuzzify-som?",
298
+ "defuzzify-mom?",
299
+ "bnp?",
300
+ "instance",
301
+ "define-truth-constant",
302
+ "define-concept",
303
+ "define-primitive-concept",
304
+ "equivalent-concepts",
305
+ "define-fuzzy-concept",
306
+ "define-fuzzy-number",
307
+ "define-fuzzy-number-range",
308
+ "define-fuzzy-similarity",
309
+ "define-fuzzy-equivalence",
310
+ "related",
311
+ "define-modifier",
312
+ "functional",
313
+ "transitive",
314
+ "reflexive",
315
+ "symmetric",
316
+ "implies-role",
317
+ "inverse",
318
+ "inverse-functional",
319
+ "disjoint",
320
+ "disjoint-union",
321
+ "range",
322
+ "domain",
323
+ "constraints",
324
+ "define-fuzzy-logic",
325
+ "crisp-concept",
326
+ "crisp-role",
327
+ '"',
328
+ "and",
329
+ "g-and",
330
+ "l-and",
331
+ "implies",
332
+ "g-implies",
333
+ "kd-implies",
334
+ "l-implies",
335
+ "z-implies",
336
+ "or",
337
+ "g-or",
338
+ "l-or",
339
+ "not",
340
+ "some",
341
+ "b-some",
342
+ "all",
343
+ "*top*",
344
+ "*bottom*",
345
+ "w-sum",
346
+ "w-sum-zero",
347
+ "w-max",
348
+ "w-min",
349
+ "self",
350
+ "ua",
351
+ "la",
352
+ "owa",
353
+ "q-owa",
354
+ "choquet",
355
+ "sugeno",
356
+ "q-sugeno",
357
+ "tua",
358
+ "tla",
359
+ "lua",
360
+ "lla",
361
+ "f+",
362
+ "f-",
363
+ "f*",
364
+ "f/",
365
+ "crisp",
366
+ "left-shoulder",
367
+ "right-shoulder",
368
+ "triangular",
369
+ "trapezoidal",
370
+ "linear",
371
+ "modified",
372
+ "linear-modifier",
373
+ "triangular-modifier",
374
+ "show-variables",
375
+ "show-abstract-fillers",
376
+ "show-abstract-fillers-for",
377
+ "show-concrete-fillers",
378
+ "show-concrete-fillers-for",
379
+ "show-concrete-instance-for",
380
+ "show-instances",
381
+ "show-concepts",
382
+ "show-language",
383
+ "free",
384
+ "binary",
385
+ "lukasiewicz",
386
+ "zadeh",
387
+ "classical",
388
+ "+",
389
+ "-",
390
+ "*",
391
+ "<=",
392
+ ">=",
393
+ "=",
394
+ "(",
395
+ ")",
396
+ "[",
397
+ "]",
398
+ "{",
399
+ "}",
400
+ "#",
401
+ ",",
402
+ "*string*",
403
+ "*boolean*",
404
+ ]
405
+
406
+ STATE_NAMES: list[str] = ["DEFAULT"]
@@ -0,0 +1 @@
1
+ from .dl_parser import DLParser