From: Diane Trout Date: Thu, 20 Sep 2012 21:35:51 +0000 (-0700) Subject: Make a validation error message between different ages of librdf. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=564fbf7933e065294c8dca47195e4e57b343e255 Make a validation error message between different ages of librdf. result.uri vs result again. --- diff --git a/htsworkflow/util/rdfinfer.py b/htsworkflow/util/rdfinfer.py index 92564a0..b36fe62 100644 --- a/htsworkflow/util/rdfinfer.py +++ b/htsworkflow/util/rdfinfer.py @@ -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.