query-4b1930ed5b91e8b7f07008d8592e5a62

rq turtle/ttl

Lists all items in Equatorial Guinea using the word "Río" in ceb labelHi: I want to fix the watercourses in Equatorial Guinea related with the ceb import. I'm trying this query:

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P17 wd:Q983.

  SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "www.wikidata.org";
        wikibase:api "EntitySearch";
        mwapi:search "Río"; 
        mwapi:language "ceb".
      ?item wikibase:apiOutputItem mwapi:item.
  }
  SERVICE wikibase:label {bd:serviceParam wikibase:language "en".}
}
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected c6(["www.wikidata.org"]):::literal c12(["ceb"]):::literal c14(["mwapi:item"]):::iri c16(["en"]):::literal c2(["wd:Q983"]):::iri c4(["bd:serviceParam"]):::iri c8(["EntitySearch"]):::literal c10(["Río"]):::literal v1 --"wdt:P17"--> c2 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c4 --"mwapi:endpoint"--> c6 c4 --"mwapi:api"--> c8 c4 --"mwapi:search"--> c10 c4 --"mwapi:language"--> c12 v1 --"mwapi:apiOutputItem"--> c14 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"mwapi:language"--> c16 end