query-06a27b6e282efdd58496b7e9474e19b6

rq turtle/ttl

Timeline of Astrolabes

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#>
#defaultView:Timeline{"hide": "?inception"}
SELECT ?item (?thingLabel as ?itemLabel) ?d ?collectionLabel ?inception WHERE {
?thing wdt:P31 wd:Q164992; wdt:P195 ?collection; wdt:P217 ?d; wdt:P571 ?inception
OPTIONAL {?thing wdt:P973 ?url}
BIND (IF(BOUND(?url),?url, URI(CONCAT("https://tools.wmflabs.org/reasonator/?q=", substr(str(?thing),32))) ) AS ?item)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?thing rdfs:label ?thingLabel. ?collection rdfs:label ?collectionLabel}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?collection") v8("?collectionLabel"):::projected v3("?d"):::projected v4("?inception"):::projected v6("?item"):::projected v9("?itemLabel") v1("?thing") v7("?thingLabel"):::projected v5("?url") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q164992"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P195"--> v2 v1 --"wdt:P217"--> v3 v1 --"wdt:P571"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P973".-> v5 end bind0[/"if(bound(?url),?url,concat('https://tools.wmflabs.org/reasonator/?q=',substring(str(?thing),'32^^xsd:integer')))"/] v5 --o bind0 v1 --o bind0 bind0 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 v1 --"rdfs:label"--> v7 v2 --"rdfs:label"--> v8 end bind1[/"?thingLabel"/] v7 --o bind1 bind1 --as--o v9