@@ -236,8 +236,8 @@ def test_import_graph_flattens_to_single_ontology(self):
236236 """import_graph merges closure into one ontology declaration and removes owl:imports."""
237237 base_path = self .test_dir / "base.ttl"
238238 imp_path = self .test_dir / "imp.ttl"
239- base_iri = f"file:// { base_path } "
240- imp_iri = f"file:// { imp_path } "
239+ base_iri = base_path . resolve (). as_uri ()
240+ imp_iri = imp_path . resolve (). as_uri ()
241241
242242 imp_path .write_text (
243243 f"""
@@ -286,8 +286,8 @@ def test_import_graph_handles_cycles(self):
286286 """import_graph should handle cycles (A imports B imports A) without duplicating imports."""
287287 a_path = self .test_dir / "A.ttl"
288288 b_path = self .test_dir / "B.ttl"
289- a_iri = f"file:// { a_path } "
290- b_iri = f"file:// { b_path } "
289+ a_iri = a_path . resolve (). as_uri ()
290+ b_iri = b_path . resolve (). as_uri ()
291291
292292 a_path .write_text (
293293 f"""
@@ -341,9 +341,9 @@ def test_import_graph_respects_recursion_depth(self):
341341 a_path = self .test_dir / "A.ttl"
342342 b_path = self .test_dir / "B.ttl"
343343 c_path = self .test_dir / "C.ttl"
344- a_iri = f"file:// { a_path } "
345- b_iri = f"file:// { b_path } "
346- c_iri = f"file:// { c_path } "
344+ a_iri = a_path . resolve (). as_uri ()
345+ b_iri = b_path . resolve (). as_uri ()
346+ c_iri = c_path . resolve (). as_uri ()
347347
348348 a_path .write_text (
349349 f"""
0 commit comments