17,519
edits
Line 89: | Line 89: | ||
</sparql> | </sparql> | ||
=== | ===List interactions where host is a member of Blattodea (cockroaches and termites), according to Wikidata=== | ||
<sparql tryit="1"> | <sparql tryit="1"> | ||
Line 97: | Line 95: | ||
PREFIX ppt: <https://ppsdb.wikibase.cloud/prop/direct/> | PREFIX ppt: <https://ppsdb.wikibase.cloud/prop/direct/> | ||
SELECT DISTINCT ?host ?hostLabel ?symb ?symbLabel | SELECT DISTINCT ?host ?hostLabel ?symb ?symbLabel ?wditem | ||
WITH { | WITH { | ||
SELECT DISTINCT ? | SELECT DISTINCT ?wditem WHERE { | ||
SERVICE <https://query.wikidata.org/sparql> { | |||
?wditem wdt:P171* wd:Q25309. | |||
} | |||
} | } | ||
} AS % | } AS %wd | ||
WHERE { | WHERE { | ||
INCLUDE % | INCLUDE %wd | ||
?host ppt:P19 ?symb. | |||
?host ppt:P29 ?parent. | |||
?parent ppt:P2 ?wditem. | |||
?host rdfs:label ?hostLabel. | |||
?symb rdfs:label ?symbLabel. | |||
} ORDER BY ?symbLabel ?hostLabel | |||
} ORDER BY ?symbLabel | |||
</sparql> | </sparql> | ||
=== | ===List interactions where symbiont is member of Alphaproteobacteria according to Wikidata=== | ||
Get items with a parent taxon that is mapped to a taxon in Wikidata, relying on the taxonomy that is given there. | Get items with a parent taxon that is mapped to a taxon in Wikidata, relying on the taxonomy that is given there. |