475,243
edits
(→WikiFCD properties by property type: rename query) |
(add graph viz taxon source with ref to FCT) |
||
Line 56: | Line 56: | ||
GROUP BY ?wbtype | GROUP BY ?wbtype | ||
ORDER BY DESC(?pcount) | ORDER BY DESC(?pcount) | ||
</SPARQL> | |||
==Graph Visualization of Food Items with Stated Taxon Source Referenced to a FCT | |||
<SPARQL> | |||
#defaultView:Graph | |||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |||
PREFIX wd: <http://www.wikidata.org/entity/> | |||
PREFIX wbt: <https://wikifcd.wikibase.cloud/prop/direct/> | |||
PREFIX wb: <https://wikifcd.wikibase.cloud/entity/> | |||
PREFIX p: <https://wikifcd.wikibase.cloud/prop/> | |||
PREFIX pr: <https://wikifcd.wikibase.cloud/prop/reference/> | |||
SELECT ?item ?itemLabel ?taxon ("00FFFF" AS ?rgb) ?taxonLabel WHERE { | |||
?item wbt:P73 ?taxon; | |||
p:P73 [prov:wasDerivedFrom [pr:P62 ?source ]]. | |||
?source wbt:P1 wb:Q12. | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} | |||
</SPARQL> | </SPARQL> |