query-7955ecb16cf73d766bb009e67c4f7504
Food
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
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 prov: <http://www.w3.org/ns/prov#>
SELECT
?food ?foodLabel
(?food AS ?wikifcd)
("WikiFCD ↗" as ?wikifcdLabel)
(CONCAT("https://wikifcd.wikibase.cloud/wiki/Item:", SUBSTR(STR(?food), 39)) AS ?wikifcdUrl)
WHERE {
?food wbt:P1 wb:Q567634.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?food"):::projected
v2("?wikifcd")
v3("?wikifcdLabel")
v4("?wikifcdUrl")
c4(["bd:serviceParam"]):::iri
c2([https://wikifcd.wikibase.cloud/entity/Q567634]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --https://wikifcd.wikibase.cloud/prop/direct/P1--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind0[/"?food"/]
v1 --o bind0
bind0 --as--o v2
bind1[/"'WikiFCD ↗'"/]
bind1 --as--o v3
bind2[/"concat('https://wikifcd.wikibase.cloud/wiki/Item:',substring(str(?food),'39^^xsd:integer'))"/]
v1 --o bind2
bind2 --as--o v4