Skip to content

Commit

Permalink
updated data_property_domains test
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Aug 27, 2024
1 parent 10b27fe commit 94f6e71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_sync_reasoner.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
S = OWLClass(IRI(NS, 'S'))
T = OWLClass(IRI(NS, 'T'))
U = OWLClass(IRI(NS, 'U'))
reasoner2 = SyncReasoner("KGs/Test/test_ontology.owl")
reasoner2 = SyncReasoner("../KGs/Test/test_ontology.owl")

class TestSyncReasoner(unittest.TestCase):
ns = "http://dl-learner.org/mutagenesis#"
ontology_path = "KGs/Mutagenesis/mutagenesis.owl"
ontology_path = "../KGs/Mutagenesis/mutagenesis.owl"
nitrogen38 = OWLClass(IRI.create(ns, "Nitrogen-38"))
compound = OWLClass(IRI.create(ns, "Compound"))
atom = OWLClass(IRI.create(ns, "Atom"))
Expand Down Expand Up @@ -161,7 +161,6 @@ def test_super_classes(self):
self.assertCountEqual(list(reasoner2.super_classes(L)), [M, OWLNothing])

def test_data_property_domains(self):
self.assertCountEqual(list(reasoner2.data_property_domains(dp1, False)), [AB, A, B, C, OWLThing])
self.assertCountEqual(list(reasoner2.data_property_domains(dp1, True)), [AB])

def test_object_property_domains(self):
Expand Down

0 comments on commit 94f6e71

Please sign in to comment.