query-301ebe141704d2616211b7dcf6bc576e
Mohammad Hijjawien:Category:Horses
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?title ?size
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org";
wikibase:api "Search";
mwapi:srsearch "incategory:Horses".
?title wikibase:apiOutput mwapi:title.
?sizestr wikibase:apiOutput "@size".
}
BIND ((xsd:integer(?sizestr)) AS ?size) # Convert from string to integer
FILTER (?size < 10000)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?size"):::projected
v3("?sizestr")
v2("?title"):::projected
c9(["incategory:Horses"]):::literal
c5(["en.wikipedia.org"]):::literal
c3(["bd:serviceParam"]):::iri
c7(["Search"]):::literal
c12(["@size"]):::literal
c11(["mwapi:title"]):::iri
f0[["?size < '10000^^xsd:integer'"]]
f0 --> v4
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:endpoint"--> c5
c3 --"mwapi:api"--> c7
c3 --"mwapi:srsearch"--> c9
v2 --"mwapi:apiOutput"--> c11
v3 --"mwapi:apiOutput"--> c12
end
bind1[/"http://www.w3.org/2001/XMLSchema#integer(?sizestr)"/]
v3 --o bind1
bind1 --as--o v4