query-8d2eaafb5bc8450ea11a1fc4d9f2ed75
title: Which compounds with known bioactivities were isolated from Actinomycetes (Q62606918), between 2014 and 2019, with related organisms and references? SELECT ?organism ?organism_name ?compound ?compound_inchi (GROUP_CONCAT(DISTINCT ?meshLabel; SEPARATOR = "|") AS ?bioactivities) ?isolation_reference ?reference_title WHERE { ?organism (wdt:P171*) wd:Q62606918; wdt:P225 ?organism_name. ?compound wdt:P234 ?compound_inchi; p:P703 ?statement; (wdt:P2868/wdt:P486) ?meshId. ?statement wikibase:rank wikibase:NormalRank. ?mesh wdt:P486 ?meshId; rdfs:label ?meshLabel. FILTER(LANGMATCHES(LANG(?meshLabel), "EN")) ?statement ps:P703 ?organism; prov:wasDerivedFrom ?ref. ?ref pr:P248 ?isolation_reference. ?isolation_reference wdt:P1476 ?reference_title; wdt:P577 ?reference_date. FILTER(((YEAR(?reference_date)) >= 2014 ) && ((YEAR(?reference_date)) <= 2019 )) } GROUP BY ?organism ?organism_name ?compound ?compound_inchi ?isolation_reference ?reference_title LIMIT 100000
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
#title: Which compounds with known bioactivities were isolated from Actinomycetes (Q62606918), between 2014 and 2019, with related organisms and references?
SELECT ?organism ?organism_name ?compound ?compound_inchi (GROUP_CONCAT(DISTINCT ?meshLabel; SEPARATOR = "|") AS ?bioactivities) ?isolation_reference ?reference_title WHERE {
?organism (wdt:P171*) wd:Q62606918;
wdt:P225 ?organism_name.
?compound wdt:P234 ?compound_inchi;
p:P703 ?statement;
(wdt:P2868/wdt:P486) ?meshId.
?statement wikibase:rank wikibase:NormalRank.
?mesh wdt:P486 ?meshId;
rdfs:label ?meshLabel.
FILTER(LANGMATCHES(LANG(?meshLabel), "EN"))
?statement ps:P703 ?organism;
prov:wasDerivedFrom ?ref.
?ref pr:P248 ?isolation_reference.
?isolation_reference wdt:P1476 ?reference_title;
wdt:P577 ?reference_date.
FILTER(((YEAR(?reference_date)) >= 2014 ) && ((YEAR(?reference_date)) <= 2019 ))
}
GROUP BY ?organism ?organism_name ?compound ?compound_inchi ?isolation_reference ?reference_title
LIMIT 100000