query-4bf39b9eaf8a364a83057a25b045a03b
TODO
Use at
- https://query.wikidata.org/sparql
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 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".
?title wikibase:apiOutput mwapi:title.
}
BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
?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;
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?title")
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:apiOutput"--> c11
end
bind1[/"concat(str('wd:'),?title)"/]
v2 --o bind1
bind1 --as--o v3
v3 --"rdfs:label"--> v1