query-0fc74a307742c3bde89b32733c4b234b

rq turtle/ttl

Informatikerinnen (Fotogalerie)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
SELECT ?person ?personLabel (SAMPLE(?birth) AS ?born) (SAMPLE(?death) AS ?died) (SAMPLE(?picture) AS ?pic)
#SELECT ?person ?personLabel (SAMPLE(?birth) AS ?born) (SAMPLE(?death) AS ?end)
WHERE {
  {{?person wdt:P106 wd:Q82594} UNION {?person wdt:P101 wd:Q82594}}   #ComputerScientist
  {?person wdt:P21 wd:Q6581072} # Frau
  #{{?person wdt:P103 wd:Q188 } UNION {?person wdt:P27 wd:Q183}}   #deutsch
  #?person wdt:P103 wd:Q188 .
  OPTIONAL { ?person wdt:P18 ?picture }
  ?person wdt:P569 ?birth .
  OPTIONAL {?person wdt:P570 ?death .}
  #FILTER(YEAR(?death)<=1900).   # died before …
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} 
GROUP BY ?person ?personLabel
ORDER BY ?born

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?birth"):::projected v6("?born") v5("?death"):::projected v6("?died") v2("?person"):::projected v7("?pic") v3("?picture"):::projected c2(["wd:Q82594"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q6581072"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P101"--> c2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P106"--> c2 end union0r <== or ==> union0l end v2 --"wdt:P21"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v3 end v2 --"wdt:P569"--> v4 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind3[/"sample(?birth)"/] v4 --o bind3 bind3 --as--o v6 bind4[/"sample(?death)"/] v5 --o bind4 bind4 --as--o v6 bind5[/"sample(?picture)"/] v3 --o bind5 bind5 --as--o v7