query-5039a3e4060355a73e712a83b1ede1e0

rq turtle/ttl

?itemwikibase:apiOutputItem

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel 
WHERE {

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "literatura en haswbstatement:P31=Q13442814".
    ?item wikibase:apiOutputItem mwapi:title.
  }

  ?item rdfs:label ?itemLabel . filter(lang(?itemLabel)="es")
#  ?item wdt:P1476 ?title . filter(lang(?title)="es")

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemLabel"):::projected c7(["www.wikidata.org"]):::literal c3(["bd:serviceParam"]):::iri c5(["Search"]):::literal c9(["literatura en haswbstatement:P31=Q13442814"]):::literal c11(["mwapi:title"]):::iri f0[["?itemLabel = 'es'"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:api"--> c5 c3 --"mwapi:endpoint"--> c7 c3 --"mwapi:srsearch"--> c9 v2 --"mwapi:apiOutputItem"--> c11 end v2 --"rdfs:label"--> v1