From 6d12017d244ee8412dba3c09658d1af706da6230 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 25 Jan 2012 11:42:08 -0800 Subject: [PATCH] split a function into two. (A query execute function and a reporting fuction) --- htsworkflow/util/rdfhelp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htsworkflow/util/rdfhelp.py b/htsworkflow/util/rdfhelp.py index 3b2bfe0..3dd199f 100644 --- a/htsworkflow/util/rdfhelp.py +++ b/htsworkflow/util/rdfhelp.py @@ -33,6 +33,9 @@ def sparql_query(model, query_filename): query_body = open(query_filename,'r').read() query = RDF.SPARQLQuery(query_body) results = query.execute(model) + display_query_results(results) + +def display_query_results(results): for row in results: output = [] for k,v in row.items()[::-1]: -- 2.30.2