Implemented ConceptManager with concept creation, modification and deletion
This commit is contained in:
@@ -20,7 +20,7 @@ class TestSheerkaConceptsAlgebra(TestUsingMemoryBasedSheerka):
|
||||
|
||||
assert isinstance(res, Concept)
|
||||
assert res.get_metadata().props == {BuiltinConcepts.ISA: {male, human},
|
||||
BuiltinConcepts.HASA: {car, licence}, }
|
||||
BuiltinConcepts.HASA: {car, licence}, }
|
||||
|
||||
def test_can_add_concepts_when_property_already_exist(self):
|
||||
sheerka, context, man, human, king, male = self.init_concepts(
|
||||
@@ -58,7 +58,7 @@ class TestSheerkaConceptsAlgebra(TestUsingMemoryBasedSheerka):
|
||||
res = sheerka.csub(context, new_foo, new_bar)
|
||||
assert isinstance(res, Concept)
|
||||
assert res.get_metadata().props == {BuiltinConcepts.ISA: {isa2},
|
||||
BuiltinConcepts.HASA: {hasa2}, }
|
||||
BuiltinConcepts.HASA: {hasa2}, }
|
||||
|
||||
def test_i_can_recognize_myself_when_using_sdp_repository(self):
|
||||
sheerka, context, foo, isa1, hasa1, = self.init_concepts("foo", "isa1", "has1",
|
||||
|
||||
Reference in New Issue
Block a user