query-bbb080c603b7d54b5623e7d3ae146cb3
SPARQL query
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?name (STRAFTER(STR(?item), STR(wd:)) AS ?wikidata) WHERE {
?item wdt:P39 wd:Q33129158 .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "et,en".
?item rdfs:label ?name .
}
}
ORDER BY ?name
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?name"):::projected
v3("?wikidata")
c6(["et,en"]):::literal
c4(["bd:serviceParam"]):::iri
c2(["wd:Q33129158"]):::iri
v2 --"wdt:P39"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
v2 --"rdfs:label"--> v1
end
bind0[/"substring-after(str(?item),str('wd:'))"/]
v2 --o bind0
bind0 --as--o v3