query-dadba83cccd771dee457f2da325c38df

rq turtle/ttl

Bulgarian people with labels on Bulgarian but without labels on English

Use at

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 ?LabelBG ?DescriptionBG ?LabelEN ?DescriptionEN WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P27 wd:Q219.
  OPTIONAL {?item rdfs:label ?LabelEN FILTER(LANG(?LabelEN) = "en")}.
  FILTER(!BOUND(?LabelEN)).
  OPTIONAL {?item schema:description ?DescriptionEN FILTER(LANG(?DescriptionEN) = "en")}.
  ?item rdfs:label ?LabelBG FILTER(LANG(?LabelBG) = "bg").
  OPTIONAL {?item schema:description ?DescriptionBG FILTER(LANG(?DescriptionBG) = "bg")}.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ?LabelBG

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?DescriptionBG"):::projected v4("?DescriptionEN"):::projected v1("?LabelBG"):::projected v3("?LabelEN"):::projected v5("?item"):::projected c10(["bd:serviceParam"]):::iri c6(["wd:Q219"]):::iri c12(["#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q5"]):::iri f0[["?LabelBG = 'bg'"]] f0 --> v1 f1[["not bound(?LabelEN)"]] f1 --> v3 v5 --"wdt:P31"--> c4 v5 --"wdt:P27"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."rdfs:label".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:description".-> v4 end v5 --"rdfs:label"--> v1 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:description".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end