query-527eb24d682dcfe3e8ed731880d523e5
If i do a mwapi service query it works too THIS WORKS:
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 ?cattitle ?item WHERE
{
VALUES ?cattitle {
"category:Parainen"
}
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "fi.wikipedia.org" .
bd:serviceParam mwapi:gcmtitle ?cattitle .
bd:serviceParam mwapi:generator "categorymembers" .
bd:serviceParam mwapi:gcmprop "ids|title|type" .
bd:serviceParam mwapi:gcmlimit "max" .
bd:serviceParam wikibase:limit 50 .
# out
?subcat wikibase:apiOutput mwapi:title .
?ns wikibase:apiOutput "@ns" .
?item wikibase:apiOutputItem mwapi:item .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?cattitle"):::projected
v4("?item"):::projected
v3("?ns")
v2("?subcat")
c6(["fi.wikipedia.org"]):::literal
c20(["mwapi:item"]):::iri
c13(["max"]):::literal
c18(["@ns"]):::literal
c9(["categorymembers"]):::literal
c2(["bd:serviceParam"]):::iri
c15(["50^^xsd:integer"]):::literal
c17(["mwapi:title"]):::iri
c11(["ids|title|type"]):::literal
c4(["Generator"]):::literal
bind0[/VALUES ?cattitle/]
bind0-->v1
bind00(["category:Parainen"])
bind00 --> bind0
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:gcmtitle"--> v1
c2 --"mwapi:generator"--> c9
c2 --"mwapi:gcmprop"--> c11
c2 --"mwapi:gcmlimit"--> c13
c2 --"mwapi:limit"--> c15
v2 --"mwapi:apiOutput"--> c17
v3 --"mwapi:apiOutput"--> c18
v4 --"mwapi:apiOutputItem"--> c20
end