Skip to content

Commit d42bde3

Browse files
committed
ensure base is injected into rdflib graph
1 parent 8e83018 commit d42bde3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linkml_runtime/dumpers/rdflib_dumper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def as_rdf_graph(self, element: YAMLRoot, schemaview: SchemaView, prefix_map: Di
5252
# to set the underlying "@base"
5353
if "_base" in schemaview.namespaces():
5454
schemaview.namespaces()._base = schemaview.namespaces()["_base"]
55+
g.base = schemaview.namespaces()._base
56+
if schemaview.namespaces()._base:
57+
g.base = schemaview.namespaces()._base
5558
self.inject_triples(element, schemaview, g)
5659
return g
5760

0 commit comments

Comments
 (0)