query-d43989c0135a0e8bdb65b6567f83c446

rq turtle/ttl

TODO

Use at

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 ?item ?title ?size
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".
      ?title wikibase:apiOutput mwapi:title.
      ?sizestr wikibase:apiOutput "@length".
      ?item wikibase:apiOutputItem mwapi:item.
  }
  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("?item"):::projected v5("?size"):::projected v3("?sizestr") v2("?title"):::projected c11(["incategory:Horses"]):::literal c20(["mwapi:item"]):::iri c13(["max"]):::literal c5(["en.wikipedia.org"]):::literal c9(["search"]):::literal c3(["bd:serviceParam"]):::iri c15(["info|pageprops"]):::literal c18(["@length"]):::literal c17(["mwapi:title"]):::iri c7(["Generator"]):::literal f0[["?size < '10000^^xsd:integer'"]] f0 --> v5 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:endpoint"--> c5 c3 --"mwapi:api"--> c7 c3 --"mwapi:generator"--> c9 c3 --"mwapi:gsrsearch"--> c11 c3 --"mwapi:gsrlimit"--> c13 c3 --"mwapi:prop"--> c15 v2 --"mwapi:apiOutput"--> c17 v3 --"mwapi:apiOutput"--> c18 v4 --"mwapi:apiOutputItem"--> c20 end bind1[/"http://www.w3.org/2001/XMLSchema#integer(?sizestr)"/] v3 --o bind1 bind1 --as--o v5