query-268a930c18b112e59e4c24aa541ebaa1
MWAPI against de.wikipedia.orgThe following is working:
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 * WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Categories" .
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam mwapi:titles "Albert Einstein" .
?cat wikibase:apiOutput mwapi:category .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?cat"):::projected
c6(["en.wikipedia.org"]):::literal
c2(["bd:serviceParam"]):::iri
c4(["Categories"]):::literal
c10(["mwapi:category"]):::iri
c8(["Albert Einstein"]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:titles"--> c8
v1 --"mwapi:apiOutput"--> c10
end