From: Diane Trout Date: Tue, 20 Nov 2012 01:04:12 +0000 (-0800) Subject: rdf:Resource can be either a resource or a blank node. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=89c591769607424ba3ceaa2f224fc704eabbf780 rdf:Resource can be either a resource or a blank node. Thus we should only toss an error in the case of a node being a literal. --- diff --git a/htsworkflow/util/rdfinfer.py b/htsworkflow/util/rdfinfer.py index baaa2e4..1a0fb50 100644 --- a/htsworkflow/util/rdfinfer.py +++ b/htsworkflow/util/rdfinfer.py @@ -198,7 +198,7 @@ class Infer(object): for r in query.execute(self.model): # Make sure we have a resource if we're expecting one if r['type'] == rdfsNS['Resource']: - if not node.is_resource(): + if node.is_literal(): return resource_error.format(str(node), space) continue seen.add(str(r['type'].uri))