projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor tweaks to deal with the older version of librdf on ubuntu 10.04
[htsworkflow.git]
/
htsworkflow
/
util
/
rdfinfer.py
diff --git
a/htsworkflow/util/rdfinfer.py
b/htsworkflow/util/rdfinfer.py
index aac3afa849178cecffa7f8185c29144f554ebe23..92564a0d80b25b684ad54d31226776ae1eeebd00 100644
(file)
--- a/
htsworkflow/util/rdfinfer.py
+++ b/
htsworkflow/util/rdfinfer.py
@@
-187,13
+187,13
@@
class Infer(object):
"""
# check domain
query = RDF.SPARQLQuery(property_template.format(
"""
# check domain
query = RDF.SPARQLQuery(property_template.format(
- predicate=predicate,
+ predicate=predicate
.uri
,
space=space))
seen = []
for r in query.execute(self.model):
if r['type'] == rdfsNS['Resource']:
continue
space=space))
seen = []
for r in query.execute(self.model):
if r['type'] == rdfsNS['Resource']:
continue
- seen.append(str(r['type']))
+ seen.append(str(r['type']
.uri
))
check = RDF.Statement(node, rdfNS['type'], r['type'])
if self.model.contains_statement(check):
return
check = RDF.Statement(node, rdfNS['type'], r['type'])
if self.model.contains_statement(check):
return