query-881e8f2d6a072e8d70c2c557e3f85b71
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 ?l ?lang
{
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:Mancomunidad haswbstatement:P17=Q29' .
bd:serviceParam mwapi:gsrlimit "max" .
bd:serviceParam mwapi:gsrnamespace "0" .
?item wikibase:apiOutputItem mwapi:title .
}
?item rdfs:label ?l.
bind(lang(?l) as ?lang)
FILTER(contains(?l, "Mancomunidad")).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?l"):::projected
v3("?lang"):::projected
c5(["www.wikidata.org"]):::literal
c13(["max"]):::literal
c11(["inlabel:Mancomunidad haswbstatement:P17=Q29"]):::literal
c15(["0"]):::literal
c9(["search"]):::literal
c3(["bd:serviceParam"]):::iri
c17(["mwapi:title"]):::iri
c7(["Generator"]):::literal
f0[["contains(?l,'Mancomunidad')"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:endpoint"--> c5
c3 --"mwapi:api"--> c7
c3 --"mwapi:generator"--> c9
c3 --"mwapi:gsrsearch"--> c11
c3 --"mwapi:gsrlimit"--> c13
c3 --"mwapi:gsrnamespace"--> c15
v2 --"mwapi:apiOutputItem"--> c17
end
v2 --"rdfs:label"--> v1
bind1[/"?l"/]
v1 --o bind1
bind1 --as--o v3