query-c132740390fffef435c58cdb2c9e6949
Food items containing this compound
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q306135>
SELECT
?food ?foodLabel
?value
("WikiFCD ↗" AS ?source)
(?food AS ?sourceUrl)
WHERE {
?compound <https://wikifcd.wikibase.cloud/prop/direct/P61> target: .
?property_item <https://wikifcd.wikibase.cloud/prop/direct/P304> ?compound ;
wikibase:directClaim ?property .
?food ?property ?value .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?value)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?compound")
v5("?food"):::projected
v4("?property")
v3("?property_item")
v6("?source")
v7("?sourceUrl")
v1("?value"):::projected
c2([http://www.wikidata.org/entity/Q306135]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --https://wikifcd.wikibase.cloud/prop/direct/P61--> c2
v3 --https://wikifcd.wikibase.cloud/prop/direct/P304--> v2
v3 --"wikibase:directClaim"--> v4
v5 -->v4--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind0[/"'WikiFCD ↗'"/]
bind0 --as--o v6
bind1[/"?food"/]
v5 --o bind1
bind1 --as--o v7