query-99575474dfdf7ba0539344a8ccec99ce

rq turtle/ttl

Zeitstrahl der Eigentumsverhältnisse der Neuenstädter Sammlung

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Zeitstrahl der EigentümerInnen der Neuenstädter Sammlung
#defaultView:Timeline{"hide":["?startTime","?endTime"]}
SELECT ?owner ?ownerLabel ?startTime ?endTime (CONCAT(STR(YEAR(?startTime))," bis ", STR(YEAR(?endTime))) AS ?zeitraum) ?ownerImage WHERE {
  wd:Q123419474 p:P127 ?ownerStmt.
  ?ownerStmt ps:P127 ?owner.
  OPTIONAL { ?ownerStmt pq:P580 ?startTime. }
  OPTIONAL { ?ownerStmt pq:P582 ?endTime. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?owner wdt:P18 ?ownerImage. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?endTime"):::projected v2("?owner"):::projected v5("?ownerImage"):::projected v1("?ownerStmt") v3("?startTime"):::projected v6("?zeitraum") c7(["bd:serviceParam"]):::iri c1(["wd:Q123419474"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1 --"p:P127"--> v1 v1 --"p:statement/P127"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:qualifier/P580".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:qualifier/P582".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P18".-> v5 end bind0[/"concat(str(year-from-dateTime(?startTime)),' bis ',str(year-from-dateTime(?endTime)))"/] v3 --o bind0 v4 --o bind0 bind0 --as--o v6