projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2762bfe
)
split a function into two. (A query execute function and a reporting fuction)
author
Diane Trout
<diane@caltech.edu>
Wed, 25 Jan 2012 19:42:08 +0000
(11:42 -0800)
committer
Diane Trout
<diane@caltech.edu>
Wed, 25 Jan 2012 19:42:08 +0000
(11:42 -0800)
htsworkflow/util/rdfhelp.py
patch
|
blob
|
history
diff --git
a/htsworkflow/util/rdfhelp.py
b/htsworkflow/util/rdfhelp.py
index 3b2bfe0ce3ccafacde089eabf34b2d03c5844356..3dd199fc2f5eef96b964aadec2a3df77721527c2 100644
(file)
--- 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]: