query-71a375443a1739bd9399a714ce023f18

rq turtle/ttl

TODO

Use at

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 ?Meteoritical_Bulletin_Database_ID WHERE {

  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
  OPTIONAL {
    ?item wdt:P824 ?Meteoritical_Bulletin_Database_ID.
    BIND(REPLACE(?Meteoritical_Bulletin_Database_ID, "^([0-9]+).*$", "$1") AS ?number)
    BIND(STRAFTER(?Meteoritical_Bulletin_Database_ID, ?number) AS ?after)
  }
}
ORDER BY (xsd:integer(?number)) (?after)
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?Meteoritical_Bulletin_Database_ID"):::projected v5("?after") v3("?item"):::projected v5("?number") c2(["bd:serviceParam"]):::iri c4(["en,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P824".-> v4 bind0[/"replace(?Meteoritical_Bulletin_Database_ID,'^(#91;0-9#93;+).*$','$1')"/] v4 --o bind0 bind0 --as--o v5 bind1[/"substring-after(?Meteoritical_Bulletin_Database_ID,?number)"/] v4 --o bind1 v5 --o bind1 bind1 --as--o v5 end