query-f2133f673926846736d8c9c671499aa6
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?id WHERE
{
?item wdt:P1146 ?id.
FILTER(STRLEN(?id) < 8).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(xsd:integer(?id))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?id"):::projected
v2("?item"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
f0[["string-length(?id) < '8^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P1146"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end