query-7ef4b659fafa88735093928dd5e04af7
title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon. PREFIX sachem: http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem# # prefixes needed for structural similarity search PREFIX idsm: https://idsm.elixir-czech.cz/sparql/endpoint/ SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE { SERVICE idsm:wikidata { VALUES ?SUBSTRUCTURE { "C12=C(C=CC=C2)C=CN1" # indolic scaffold } ?compound sachem:substructureSearch [ sachem:query ?SUBSTRUCTURE ]. } hint:Prior hint:runFirst "true"^^xsd:boolean. ?compound p:P703 ?statement. ?statement ps:P703/wdt:P171 ?parent_taxon. ?parent_taxon wdt:P225 ?parent_taxon_name. } GROUP BY ?parent_taxon ?parent_taxon_name HAVING (?count > 100) ORDER BY DESC (?count) title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon. PREFIX sachem: http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem# # prefixes needed for structural similarity search PREFIX idsm: https://idsm.elixir-czech.cz/sparql/endpoint/ SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE { SERVICE idsm:wikidata { VALUES ?SUBSTRUCTURE { "C12=C(C=CC=C2)C=CN1" # indolic scaffold } ?compound sachem:substructureSearch [ sachem:query ?SUBSTRUCTURE ]. } hint:Prior hint:runFirst "true"^^xsd:boolean. ?compound p:P703 ?statement. ?statement ps:P703/wdt:P171 ?parent_taxon. ?parent_taxon wdt:P225 ?parent_taxon_name. } GROUP BY ?parent_taxon ?parent_taxon_name HAVING (?count > 100) ORDER BY DESC (?count) title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon. PREFIX sachem: http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem# # prefixes needed for structural similarity search PREFIX idsm: https://idsm.elixir-czech.cz/sparql/endpoint/ SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE { SERVICE idsm:wikidata { VALUES ?SUBSTRUCTURE { "C12=C(C=CC=C2)C=CN1" # indolic scaffold } ?compound sachem:substructureSearch [ sachem:query ?SUBSTRUCTURE ]. } hint:Prior hint:runFirst "true"^^xsd:boolean. ?compound p:P703 ?statement. ?statement ps:P703/wdt:P171 ?parent_taxon. ?parent_taxon wdt:P225 ?parent_taxon_name. } GROUP BY ?parent_taxon ?parent_taxon_name HAVING (?count > 100) ORDER BY DESC (?count) title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon. PREFIX sachem: http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem# # prefixes needed for structural similarity search PREFIX idsm: https://idsm.elixir-czech.cz/sparql/endpoint/ SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE { SERVICE idsm:wikidata { VALUES ?SUBSTRUCTURE { "C12=C(C=CC=C2)C=CN1" # indolic scaffold } ?compound sachem:substructureSearch [ sachem:query ?SUBSTRUCTURE ]. } hint:Prior hint:runFirst "true"^^xsd:boolean. ?compound p:P703 ?statement. ?statement ps:P703/wdt:P171 ?parent_taxon. ?parent_taxon wdt:P225 ?parent_taxon_name. } GROUP BY ?parent_taxon ?parent_taxon_name HAVING (?count > 100) ORDER BY DESC (?count) title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon. PREFIX sachem: http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem# # prefixes needed for structural similarity search PREFIX idsm: https://idsm.elixir-czech.cz/sparql/endpoint/ SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE { SERVICE idsm:wikidata { VALUES ?SUBSTRUCTURE { "C12=C(C=CC=C2)C=CN1" # indolic scaffold } ?compound sachem:substructureSearch [ sachem:query ?SUBSTRUCTURE ]. } hint:Prior hint:runFirst "true"^^xsd:boolean. ?compound p:P703 ?statement. ?statement ps:P703/wdt:P171 ?parent_taxon. ?parent_taxon wdt:P225 ?parent_taxon_name. } GROUP BY ?parent_taxon ?parent_taxon_name HAVING (?count > 100) ORDER BY DESC (?count) title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon. PREFIX sachem: http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem# # prefixes needed for structural similarity search PREFIX idsm: https://idsm.elixir-czech.cz/sparql/endpoint/ SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE { SERVICE idsm:wikidata { VALUES ?SUBSTRUCTURE { "C12=C(C=CC=C2)C=CN1" # indolic scaffold } ?compound sachem:substructureSearch [ sachem:query ?SUBSTRUCTURE ]. } hint:Prior hint:runFirst "true"^^xsd:boolean. ?compound p:P703 ?statement. ?statement ps:P703/wdt:P171 ?parent_taxon. ?parent_taxon wdt:P225 ?parent_taxon_name. } GROUP BY ?parent_taxon ?parent_taxon_name HAVING (?count > 100) ORDER BY DESC (?count)
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
#title: Which organisms contain at least 100 indolic scaffolds? Results ordered by parent taxon.
PREFIX sachem: <http://bioinfo.uochb.cas.cz/rdf/v1.0/sachem#> # prefixes needed for structural similarity search
PREFIX idsm: <https://idsm.elixir-czech.cz/sparql/endpoint/>
SELECT ?parent_taxon ?parent_taxon_name (COUNT(DISTINCT ?compound) AS ?count) WHERE {
SERVICE idsm:wikidata {
VALUES ?SUBSTRUCTURE {
"C12=C(C=CC=C2)C=CN1" # indolic scaffold
}
?compound sachem:substructureSearch [
sachem:query ?SUBSTRUCTURE
].
}
?compound p:P703 ?statement.
?statement ps:P703/wdt:P171 ?parent_taxon.
?parent_taxon wdt:P225 ?parent_taxon_name.
}
GROUP BY ?parent_taxon ?parent_taxon_name
HAVING (?count > 100)
ORDER BY DESC (?count)
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/de
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/en
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/fr
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/it
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/nl
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Chemistry_Natural_products/ru