query-46cb1e1827ef28f4dc8821439a91fd92

rq turtle/ttl

Archives1. Return a list of people ranked in the order of largest number of institutions holding their papers to smallest number of institutions holding their papers: )?count(DESC ORDER BY ?personLabel ?person GROUP BY } } . "en" language:wikibase serviceParam:bd { label:wikibase SERVICE . ?archive P485:wdt ?person . Q5:wd P31:wdt ?person { WHERE )?count AS )?archive(COUNT( ?personLabel ?person SELECT try it!2. Return a list of institutions ranked in order of largest to smallest number of peoples' papers listed in Wikidata: )?count(DESC ORDER BY ?archiveLabel ?archive GROUP BY } } . "en" language:wikibase serviceParam:bd { label:wikibase SERVICE . ?archive P485:wdt ?person . Q5:wd P31:wdt ?person { WHERE )?count AS )?person(COUNT( ?archiveLabel ?archive SELECT #defaultView:BubbleChart 3. Return a list of items in Wikidata that have a SNAC id: } } . "en" language:wikibase serviceParam:bd { label:wikibase SERVICE . ?value P3430:wdt ?item { WHERE ?value ?itemLabel SELECT #Items that have an ID from the Social Networks Archival Contex project 4. Return a list of people whose papers are held at the Beinecke along with the geocoordinates of their birthplaces plotted on a map:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>

SELECT ?personLabel ?birthplaceLabel ?coord ?lat ?lon 
WHERE {
  ?person wdt:P485 wd:Q814779.
  ?person wdt:P19 ?birthplace.
  OPTIONAL { ?birthplace wdt:P625 ?coord. }
  OPTIONAL {
    ?birthplace p:P625 ?statement.
    ?statement psv:P625 ?node.
    ?node wikibase:geoLatitude ?lat.
    ?node wikibase:geoLongitude ?lon.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?birthplace") v3("?coord"):::projected v6("?lat"):::projected v7("?lon"):::projected v5("?node") v1("?person") v4("?statement") c10(["bd:serviceParam"]):::iri c2(["wd:Q814779"]):::iri c12(["en"]):::literal v1 --"p:direct/P485"--> c2 v1 --"p:direct/P19"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P625".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P625".-> v4 v4 --"p:statement/value/P625"--> v5 v5 --"wikibase:geoLatitude"--> v6 v5 --"wikibase:geoLongitude"--> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end