query-30eb60c0acca327538ca86e16dc41b44

rq turtle/ttl

TODO

Use at

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)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?l"):::projected v3("?lang"):::projected c4(["www.wikidata.org"]):::literal c12(["max"]):::literal c10(["inlabel:Mancomunidad haswbstatement:P17=Q29"]):::literal c14(["0"]):::literal c8(["search"]):::literal c2(["bd:serviceParam"]):::iri c16(["mwapi:title"]):::iri c6(["Generator"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gsrsearch"--> c10 c2 --"mwapi:gsrlimit"--> c12 c2 --"mwapi:gsrnamespace"--> c14 v1 --"mwapi:apiOutputItem"--> c16 end v1 --"rdfs:label"--> v2 bind0[/"?l"/] v2 --o bind0 bind0 --as--o v3