From 89c591769607424ba3ceaa2f224fc704eabbf780 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 19 Nov 2012 17:04:12 -0800 Subject: [PATCH] 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. --- htsworkflow/util/rdfinfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.30.2