query-b77bf2f9ec2e91ce9ee1a351dc6f8d97
TODO Trade
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 ?cast ?castLabel
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch 'deepcat:"Christmas films"' .
bd:serviceParam mwapi:gsrlimit "max" .
?cast wikibase:apiOutputItem mwapi:item .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
Query found at
- https://www.wikidata.org/wiki/User:Trade/sandbox
- https://www.wikidata.org/wiki/User_talk:Dipsacus_fullonum
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?cast"):::projected
c10(["deepcat:"Christmas films""]):::literal
c14(["mwapi:item"]):::iri
c12(["max"]):::literal
c4(["en.wikipedia.org"]):::literal
c8(["search"]):::literal
c2(["bd:serviceParam"]):::iri
c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["Generator"]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:endpoint"--> c4
c2 --"mwapi:api"--> c6
c2 --"mwapi:generator"--> c8
c2 --"mwapi:gsrsearch"--> c10
c2 --"mwapi:gsrlimit"--> c12
v1 --"mwapi:apiOutputItem"--> c14
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c17
end