query-e20e97b6e95d014db9471529dadf8977
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?label
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch "inlabel:Bezirk@de" .
bd:serviceParam mwapi:gsrlimit "max" .
?item wikibase:apiOutputItem mwapi:title .
}
?item rdfs:label ?label .
FILTER(lang(?label) = "de")
FILTER STRENDS(?label, "Bezirk")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?label"):::projected
c6(["www.wikidata.org"]):::literal
c12(["inlabel:Bezirk@de"]):::literal
c14(["max"]):::literal
c10(["search"]):::literal
c4(["bd:serviceParam"]):::iri
c16(["mwapi:title"]):::iri
c8(["Generator"]):::literal
f0[["ends-with(?label,'Bezirk')"]]
f0 --> v1
f1[["?label = 'de'"]]
f1 --> v1
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c4 --"mwapi:endpoint"--> c6
c4 --"mwapi:api"--> c8
c4 --"mwapi:generator"--> c10
c4 --"mwapi:gsrsearch"--> c12
c4 --"mwapi:gsrlimit"--> c14
v2 --"mwapi:apiOutputItem"--> c16
end
v2 --"rdfs:label"--> v1