query-2fe3aa16c08e0599b8db950f5fc0166f

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?point_in_time WHERE 
{

  SERVICE bd:slice {
    ?item wdt:P31 wd:Q47150325.
    bd:serviceParam bd:slice.offset 0 . # Start at item number (not to be confused with QID)
    bd:serviceParam bd:slice.limit 100000 . # List this many items
  }

  filter not exists {?item rdfs:label ?itemLabel . filter(lang(?itemLabel)="id") }
  OPTIONAL { ?item wdt:P585 ?point_in_time. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemLabel"):::projected v3("?point_in_time"):::projected c10(["100000^^xsd:integer"]):::literal c5(["wd:Q47150325"]):::iri c8(["0^^xsd:integer"]):::literal c6(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?itemLabel = 'id'"]] e0f0 --> e0v1 e0v2 --"rdfs:label"--> e0v1 e0v2("?item"):::projected e0v1("?itemLabel"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f1[["?itemLabel = 'id'"]] f1 --> v1 v2 --"rdfs:label"--> v1 subgraph s1["http://www.bigdata.com/rdf#slice"] style s1 stroke-width:4px; v2 --"wdt:P31"--> c5 c6 --"bd:slice.offset"--> c8 c6 --"bd:slice.limit"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P585".-> v3 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c6 --"wikibase:language"--> c14 end