query-92d99d2c429ccde4ed67d68886899893

rq turtle/ttl

get labels and descriptions

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?Len ?Lpl ?itemDescription WHERE { #?Len ?Lpl ?itemDescription 
 ?item wdt:P170 wd:Q381238 .  
 ?item wdt:P195 wd:Q4801420 .  
 #?item wdt:P186 wd:Q296955  .  
 #?item wdt:P571 ?date .  
 #?item wdt:P217 ?id .  
 #?item wdt:P31 wd:Q14674  .  

 OPTIONAL {
   ?item rdfs:label ?Len 
   FILTER((LANG(?Len)) = "en")
 }
 OPTIONAL {
   ?item rdfs:label ?Lpl 
   FILTER((LANG(?Lpl)) = "pl")
 }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "pl". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?Len"):::projected v1("?Lpl"):::projected v3("?item"):::projected c4(["wd:Q381238"]):::iri c9(["bd:serviceParam"]):::iri c6(["wd:Q4801420"]):::iri c1(["pl"]):::literal v3 --"wdt:P170"--> c4 v3 --"wdt:P195"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c1 end