Fixed #100 : SheerkaAdmin: Add builtins() command

Fixed #99 : SheerkaQueryManager: I can manage contains predicate when filtering objects
Fixed #97 : ERROR: list indices must be integers or slices, not Concept
Fixed #96 : SequenceNodeParser: SequenceNodeParser must correctly handle concept definition
Fixed #95 : ResolveAmbiguity must not remove concepts that do not require evaluation
Fixed #94 : Concepts with the same key are lost when new ontology
Fixed #93 : Introduce BuiltinConcepts.EVAL_GLOBAL_TRUTH_REQUESTED
Fixed #92 : ExpressionParser: Implement compile_disjunctions()
Fixed #91 : Implement get_concepts_complexity(context, concepts, concept_parts)
Fixed #90 : ResolveAmbiguity : where predicate is not used to resolve ambiguity
Fixed #89 : ResolveAmbiguityEvaluator: Concepts embedded in ConceptNode are not resolved
Fixed #88: SyaNodeParser: Parse multiple parameters when some of the are not recognized
Fixed #87: SyaNodeParser : Parse the multiple parameters
This commit is contained in:
2021-07-31 08:52:00 +02:00
parent 7dcaa9c111
commit e69745adc8
70 changed files with 1561 additions and 455 deletions
@@ -113,26 +113,26 @@ class SheerkaConceptManager(BaseService):
self.compiled_concepts_by_regex = []
def initialize(self):
self.sheerka.bind_service_method(self.create_new_concept, True)
self.sheerka.bind_service_method(self.modify_concept, True)
self.sheerka.bind_service_method(self.remove_concept, True)
self.sheerka.bind_service_method(self.set_id_if_needed, True)
self.sheerka.bind_service_method(self.set_attr, True)
self.sheerka.bind_service_method(self.get_attr, False)
self.sheerka.bind_service_method(self.smart_get_attr, False)
self.sheerka.bind_service_method(self.set_property, True, as_name="set_prop")
self.sheerka.bind_service_method(self.get_property, False, as_name="get_prop")
self.sheerka.bind_service_method(self.get_by_key, False, visible=False)
self.sheerka.bind_service_method(self.get_by_name, False, visible=False)
self.sheerka.bind_service_method(self.get_by_hash, False, visible=False)
self.sheerka.bind_service_method(self.get_by_id, False, visible=False)
self.sheerka.bind_service_method(self.is_not_a_concept_name, False, visible=False)
self.sheerka.bind_service_method(self.is_a_concept_name, False, visible=False)
self.sheerka.bind_service_method(self.get_concepts_by_first_token, False, visible=False)
self.sheerka.bind_service_method(self.get_concepts_by_first_regex, False, visible=False)
self.sheerka.bind_service_method(self.get_concepts_bnf_definitions, False, visible=False)
self.sheerka.bind_service_method(self.clear_bnf_definition, True, visible=False)
self.sheerka.bind_service_method(self.set_precedence, True)
self.sheerka.bind_service_method(self.NAME, self.create_new_concept, True)
self.sheerka.bind_service_method(self.NAME, self.modify_concept, True)
self.sheerka.bind_service_method(self.NAME, self.remove_concept, True)
self.sheerka.bind_service_method(self.NAME, self.set_id_if_needed, True)
self.sheerka.bind_service_method(self.NAME, self.set_attr, True)
self.sheerka.bind_service_method(self.NAME, self.get_attr, False)
self.sheerka.bind_service_method(self.NAME, self.smart_get_attr, False)
self.sheerka.bind_service_method(self.NAME, self.set_property, True, as_name="set_prop")
self.sheerka.bind_service_method(self.NAME, self.get_property, False, as_name="get_prop")
self.sheerka.bind_service_method(self.NAME, self.get_by_key, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.get_by_name, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.get_by_hash, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.get_by_id, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.is_not_a_concept_name, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.is_a_concept_name, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.get_concepts_by_first_token, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.get_concepts_by_first_regex, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.get_concepts_bnf_definitions, False, visible=False)
self.sheerka.bind_service_method(self.NAME, self.clear_bnf_definition, True, visible=False)
self.sheerka.bind_service_method(self.NAME, self.set_precedence, True)
register_concept_cache = self.sheerka.om.register_concept_cache