summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-10-31 17:19:20 +0100
committerAndreas Maunz <andreas@maunz.de>2012-10-31 17:19:20 +0100
commit461a20d9071ad80f334d7a3d8c334e2e085821d2 (patch)
tree225eef328e8219b4481c274a0c04498c31043632 /lib/utils
parent8a2b749ccef94b229a32ec716c93388f5c7495d7 (diff)
Compounds removed from allnde target
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/sparql/dataset.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/utils/sparql/dataset.rb b/lib/utils/sparql/dataset.rb
index 7ba57ee..ecf55b6 100644
--- a/lib/utils/sparql/dataset.rb
+++ b/lib/utils/sparql/dataset.rb
@@ -51,9 +51,8 @@ module OpenTox
# @return [Array] compounds Compounds in order
def self.find_compounds_sparql(uri)
sparql = "SELECT DISTINCT ?compound FROM <#{uri}> WHERE {
- ?s <#{RDF.type}> <#{RDF::OT.DataEntry}> ;
- <#{RDF::OLO.index}> ?cidx;
- <#{RDF::OT.compound}> ?compound
+ ?compound <#{RDF.type}> <#{RDF::OT.Compound}> ;
+ <#{RDF::OLO.index}> ?cidx;
} ORDER BY ?cidx"
OpenTox::Backend::FourStore.query(sparql, "text/uri-list").split("\n").collect { |uri| OpenTox::Compound.new uri.strip }
end