query-1d569de83d840d358ba6f202de2ea385
Wikipedia category compared to Wikidata
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?title ?titleDescription
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:api "Search" .
bd:serviceParam wikibase:endpoint "fr.wikipedia.org" .
bd:serviceParam mwapi:srnamespace "0" .
bd:serviceParam mwapi:srsearch 'deepcat:"Mort de la grippe de 1918"' . #Category "died from the Spanish flu"
?title wikibase:apiOutput mwapi:title .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?title"):::projected
c8(["0"]):::literal
c6(["fr.wikipedia.org"]):::literal
c2(["bd:serviceParam"]):::iri
c4(["Search"]):::literal
c12(["mwapi:title"]):::iri
c10(["deepcat:"Mort de la grippe de 1918""]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:srnamespace"--> c8
c2 --"mwapi:srsearch"--> c10
v1 --"mwapi:apiOutput"--> c12
end