Make a validation error message between different ages of librdf.
authorDiane Trout <diane@caltech.edu>
Thu, 20 Sep 2012 21:35:51 +0000 (14:35 -0700)
committerDiane Trout <diane@caltech.edu>
Thu, 20 Sep 2012 21:35:51 +0000 (14:35 -0700)
result.uri vs result again.

htsworkflow/util/rdfinfer.py

index 92564a0d80b25b684ad54d31226776ae1eeebd00..b36fe6293883a394ada8f005b37d78503acd79e2 100644 (file)
@@ -143,7 +143,7 @@ class Infer(object):
         query = RDF.SPARQLQuery(body)
         errmsg = "Missing type for: {0}"
         for r in query.execute(self.model):
-            yield errmsg.format(str(r['subject']))
+            yield errmsg.format(str(r['subject'].uri))
 
     def _validate_undefined_properties(self):
         """Find properties that aren't defined.