diff --git a/tests/test_term.py b/tests/test_term.py index a60ec2b..275ff41 100644 --- a/tests/test_term.py +++ b/tests/test_term.py @@ -10,7 +10,7 @@ def test_lt(): term = kg.ontology.terms.cmso.hasNumberOfAtoms term = term < 2 - assert term._condition == '(?cmso:hasNumberOfAtomsvalue<"2"^^xsd:int)' + assert term._condition == '(?hasNumberOfAtomsvalue<"2"^^xsd:int)' def test_eq(): kg = KnowledgeGraph() @@ -18,7 +18,7 @@ def test_eq(): term = kg.ontology.terms.cmso.hasNumberOfAtoms term = (term == 2) - assert term._condition == '(?cmso:hasNumberOfAtomsvalue="2"^^xsd:int)' + assert term._condition == '(?hasNumberOfAtomsvalue="2"^^xsd:int)' def test_gt(): kg = KnowledgeGraph() @@ -26,7 +26,7 @@ def test_gt(): term = kg.ontology.terms.cmso.hasNumberOfAtoms term = term > 2 - assert term._condition == '(?cmso:hasNumberOfAtomsvalue>"2"^^xsd:int)' + assert term._condition == '(?hasNumberOfAtomsvalue>"2"^^xsd:int)' def test_lte(): kg = KnowledgeGraph() @@ -34,7 +34,7 @@ def test_lte(): term = kg.ontology.terms.cmso.hasNumberOfAtoms term = term <= 2 - assert term._condition == '(?cmso:hasNumberOfAtomsvalue<="2"^^xsd:int)' + assert term._condition == '(?hasNumberOfAtomsvalue<="2"^^xsd:int)' def test_gte(): kg = KnowledgeGraph() @@ -42,7 +42,7 @@ def test_gte(): term = kg.ontology.terms.cmso.hasNumberOfAtoms term = term >= 2 - assert term._condition == '(?cmso:hasNumberOfAtomsvalue>="2"^^xsd:int)' + assert term._condition == '(?hasNumberOfAtomsvalue>="2"^^xsd:int)' def test_ne(): kg = KnowledgeGraph() @@ -50,18 +50,18 @@ def test_ne(): term = kg.ontology.terms.cmso.hasNumberOfAtoms term = term != 2 - assert term._condition == '(?cmso:hasNumberOfAtomsvalue!="2"^^xsd:int)' + assert term._condition == '(?hasNumberOfAtomsvalue!="2"^^xsd:int)' def test_and(): kg = KnowledgeGraph() struct_Fe = System.create.element.Fe(graph=kg) term = (kg.ontology.terms.cmso.hasVolume > 2) & (kg.ontology.terms.cmso.hasVolume < 4) - assert term._condition == '((?cmso:hasVolumevalue>"2"^^xsd:float)&&(?cmso:hasVolumevalue<"4"^^xsd:float))' + assert term._condition == '((?hasVolumevalue>"2"^^xsd:float)&&(?hasVolumevalue<"4"^^xsd:float))' def test_or(): kg = KnowledgeGraph() struct_Fe = System.create.element.Fe(graph=kg) term = (kg.ontology.terms.cmso.hasVolume > 2) | (kg.ontology.terms.cmso.hasVolume < 4) - assert term._condition == '((?cmso:hasVolumevalue>"2"^^xsd:float)||(?cmso:hasVolumevalue<"4"^^xsd:float))' \ No newline at end of file + assert term._condition == '((?hasVolumevalue>"2"^^xsd:float)||(?hasVolumevalue<"4"^^xsd:float))' \ No newline at end of file