query-9a82f46ace02286d85e8b1975bf39df8

rq turtle/ttl

Map of economists in PM20 by place of birthper Wikidata query:

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:Map{"hide":"?geo"}
select ?image ?item ?itemLabel ?pobLabel ?viewer ?geo
where {
  # occupation: economist
  ?item wdt:P106 wd:Q188094 ;
        # with PM20 id
        wdt:P4293 ?pm20Id ;
        # with place of birth
        wdt:P19 ?pob .
  # restrict to items with online accessible articles
  ?item p:P4293/pq:P5592 ?workCount .
  filter(?workCount > 0)
  # geo coordinates for pob
  ?pob wdt:P625 ?geo .
  # optional image
  optional { ?item wdt:P18 ?image . }
  # viewer link
  bind(uri(concat('https://pm20.zbw.eu/dfgview/', ?pm20Id)) as ?viewer)
  # add labels
  service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, de, fr, es, nl, pl, ru". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?geo"):::projected v6("?image"):::projected v2("?item"):::projected v3("?pm20Id") v4("?pob") v7("?viewer"):::projected v1("?workCount") a1((" ")) c13(["#91;AUTO_LANGUAGE#93;,en, de, fr, es, nl, pl, ru"]):::literal c11(["bd:serviceParam"]):::iri c3(["wd:Q188094"]):::iri f0[["?workCount > '0^^xsd:integer'"]] f0 --> v1 v2 --"p:direct/P106"--> c3 v2 --"p:direct/P4293"--> v3 v2 --"p:direct/P19"--> v4 v2 --"p:P4293"--> a1 a1 --"p:qualifier/P5592"--> v1 v4 --"p:direct/P625"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P18".-> v6 end bind1[/"concat('https://pm20.zbw.eu/dfgview/',?pm20Id)"/] v3 --o bind1 bind1 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end