query-9c6a64889cf7d5ea45cede4dc3462d55

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?P4812value
WHERE {
  ?item p:P4812 [ ps:P4812 ?P4812value; wikibase:rank ?rank ] .
  FILTER(?rank != wikibase:DeprecatedRank) .
  filter (strlen(?P4812value)=4)
  SERVICE wikibase:label { bd:serviceParam wikibase:language 'el' }
}
ORDER BY DESC(?P4812value)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?P4812value"):::projected v3("?item"):::projected v2("?rank") a1((" ")) c7(["bd:serviceParam"]):::iri c9(["el"]):::literal f0[["string-length(?P4812value) = '4^^xsd:integer'"]] f0 --> v1 f1[["?rank != 'wikibase:DeprecatedRank'"]] f1 --> v2 a1 --"p:statement/P4812"--> v1 a1 --"wikibase:rank"--> v2 v3 --"p:P4812"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end