query-4d573180a42152bf160ddaff57b86abb
Caves in Bulgaria on several languages and commons category
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemDescription ?LabelEN ?LabelBG ?LabelRO ?page_titleBG ?Commons_category WHERE {
?item wdt:P31 wd:Q35509.
?item wdt:P17 wd:Q219.
?article schema:about ?item ; schema:isPartOf <https://bg.wikipedia.org/> ; schema:name ?page_titleBG .
?item rdfs:label ?LabelEN filter (lang(?LabelEN) = "en") .
?item rdfs:label ?LabelBG filter (lang(?LabelBG) = "bg") .
?item rdfs:label ?LabelRO filter (lang(?LabelRO) = "ro") .
OPTIONAL { ?item wdt:P373 ?Commons_category. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "bg, en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?Commons_category"):::projected
v3("?LabelBG"):::projected
v4("?LabelEN"):::projected
v2("?LabelRO"):::projected
v6("?article")
v5("?item"):::projected
v1("?itemLabel")
v7("?page_titleBG"):::projected
c5(["wd:Q35509"]):::iri
c10([https://bg.wikipedia.org/]):::iri
c15(["bd:serviceParam"]):::iri
c7(["wd:Q219"]):::iri
c17(["bg, en"]):::literal
f0[["?LabelRO = 'ro'"]]
f0 --> v2
f1[["?LabelBG = 'bg'"]]
f1 --> v3
f2[["?LabelEN = 'en'"]]
f2 --> v4
v5 --"wdt:P31"--> c5
v5 --"wdt:P17"--> c7
v6 --"schema:about"--> v5
v6 --"schema:isPartOf"--> c10
v6 --"schema:name"--> v7
v5 --"rdfs:label"--> v4
v5 --"rdfs:label"--> v3
v5 --"rdfs:label"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P373".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end