query-835ce8ee4eb6b2b2e7476e4d119849f7
Bouzinacen:Category:Horsesmw:Extension:TextExtracts
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 ?item ?title ?extract
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org";
wikibase:api "Generator";
mwapi:generator "search";
mwapi:gsrsearch "incategory:Horses";
mwapi:gsrlimit "max";
mwapi:prop "info|pageprops|extracts";
mwapi:exchars "300";
mwapi:exlimit "max";
mwapi:exintro "true".
?title wikibase:apiOutput mwapi:title.
?extract wikibase:apiOutput "extract/text()".
?item wikibase:apiOutputItem mwapi:item.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?extract"):::projected
v3("?item"):::projected
v1("?title"):::projected
c10(["incategory:Horses"]):::literal
c24(["mwapi:item"]):::iri
c12(["max"]):::literal
c22(["extract/text()"]):::literal
c4(["en.wikipedia.org"]):::literal
c8(["search"]):::literal
c2(["bd:serviceParam"]):::iri
c16(["300"]):::literal
c19(["true"]):::literal
c21(["mwapi:title"]):::iri
c14(["info|pageprops|extracts"]):::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
c2 --"mwapi:prop"--> c14
c2 --"mwapi:exchars"--> c16
c2 --"mwapi:exlimit"--> c12
c2 --"mwapi:exintro"--> c19
v1 --"mwapi:apiOutput"--> c21
v2 --"mwapi:apiOutput"--> c22
v3 --"mwapi:apiOutputItem"--> c24
end