Skip to content

Commit ef3f0bb

Browse files
committed
fix: updated prov model to allow QNames
1 parent bdf3ea1 commit ef3f0bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/external/provcopy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,9 @@ def rdf(self, graph=None, subj=None):
770770
obj = RDFLiteral(value)
771771
if attr == PROV['location']:
772772
pred = PROV['atLocation'].rdf_representation()
773-
if isinstance(value, URIRef):
773+
if isinstance(value, (URIRef, QName)):
774+
if isinstance(value, QName):
775+
value = URIRef(value.get_uri())
774776
graph.add((subj, pred, value))
775777
graph.add((value, RDF.type,
776778
PROV['Location'].rdf_representation()))

0 commit comments

Comments
 (0)