query-7fdedc4ca3237c925871904e3dc4c54d

rq turtle/ttl

Propertiessignificant event (P793)image (P18)start time (P580)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Timeline

SELECT ?institution ?institutionLabel ?date ?image

WHERE 

{

  ?institution wdt:P793 wd:Q541394;

                 p:P793 [pq:P580 ?date].

  OPTIONAL {?institution wdt:P18 ?image.}

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

  FILTER(YEAR(?date) < 1900).

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v3("?image"):::projected v2("?institution"):::projected a1((" ")) c3(["wd:Q541394"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["year-from-dateTime(?date) < '1900^^xsd:integer'"]] f0 --> v1 v2 --"p:direct/P793"--> c3 a1 --"p:qualifier/P580"--> v1 v2 --"p:P793"--> a1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P18".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end