Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

test(ontology): assert ontology uri prefix is used for generated IRIs

KaifAhmad19366f07239ac
diff --git a/tests/ontology/test_ontology_comprehensive.py b/tests/ontology/test_ontology_comprehensive.py
index bde9ff9d..328425fa 100644
--- a/tests/ontology/test_ontology_comprehensive.py
+++ b/tests/ontology/test_ontology_comprehensive.py
@@ -195,6 +195,7 @@ class TestOntologyComprehensive(unittest.TestCase):
owl_output = generator.generate_owl(ontology, format="turtle")
self.assertIn("owl:DatatypeProperty", owl_output)
+ self.assertIn("@prefix : <http://example.org/ontology/> .", owl_output)
self.assertIn("rdfs:subClassOf", owl_output)
self.assertIn("birthDate", owl_output)
self.assertIn("xsd:date", owl_output)