User:YULdigitalpreservation/lovedata2018

This page is to organize my SPARQL queries for #lovedata2018 edit

Monday edit

mentions & hashtags edit

@wikicite

  1. datacitation
  2. lovedata18

A query to demonstrate how Wikidata can be used to describe scientific articles and datasets.

Return a list of scientific articles that have a Wikidata statment indicating the URL of an external data set for the paper edit

The following query uses these:

Tuesday edit

hashtags & mentions edit

https://twitter.com/theNASciences

  1. womeninscience
  2. lovedata18

Return a list of of women who have been elected to the National Academy of Sciences edit

The following query uses these:

  • Properties: member of (P463)     , sex or gender (P21)     
    SELECT ?person ?personLabel 
    
    WHERE {
      ?person wdt:P463 wd:Q270794.
      ?person wdt:P21 wd:Q6581072;
    
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
      }
    

Return an image grid of of women who have been elected to the National Academy of Sciences edit

The following query uses these:


Return a dimensions grid of women who have been elected to the National Academy of Sciences, the institution where they earned their PhD, and other organizations of which they are members edit

The following query uses these:

p:P463 [ps:P463 wd:Q270794; pq:P580 ?year].

Wednesday edit

hashtags & mentions edit

  1. womeninscience
  2. lovedata18

Return a list of science awards honoring women edit

The following query uses these:

Return a list of women who have won a science award for women and the org the award was conferred by edit

The following query uses these:

Return a list of women who have won a science award for women edit

The following query uses these:

  • Properties: award received (P166)     , image (P18)     
    SELECT ?person ?personLabel ?image  WHERE {
      
      {?person wdt:P166 wd:Q566886}
       UNION {?person wdt:P166 wd:Q1354618.}
       UNION {?person wdt:P166 wd:Q55200.}
       UNION {?person wdt:P166 wd:Q784097.}
       UNION {?person wdt:P166 wd:Q1455366.}
       UNION {?person wdt:P166 wd:Q5424476.}
       UNION {?person wdt:P166 wd:Q6759784.}
       UNION {?person wdt:P166 wd:Q6761225.}
       UNION {?person wdt:P166 wd:Q7158133.}
      UNION {?person wdt:P166 wd:Q7950590.}
      UNION {?person wdt:P166 wd:Q7980447.}
      UNION {?person wdt:P166 wd:Q13512515.}
      UNION {?person wdt:P166 wd:Q30593379.}
      UNION {?person wdt:P166 wd:Q1996511.}
      UNION {?person wdt:P166 wd:Q2177698.}
      UNION {?person wdt:P166 wd:Q4693035.}
      UNION {?person wdt:P166 wd:Q6759993.}
      UNION {?person wdt:P166 wd:Q17005505.}
      OPTIONAL {?person wdt:P18 ?image.}
     SERVICE wikibase:label {
        bd:serviceParam wikibase:language "en" .
    }
      }
    

Same with occupation added edit

The following query uses these:

  • Properties: award received (P166)     , image (P18)     , occupation (P106)     
    SELECT ?person ?personLabel ?occupationLabel ?image  WHERE {
      
      {?person wdt:P166 wd:Q566886}
       UNION {?person wdt:P166 wd:Q1354618.}
       UNION {?person wdt:P166 wd:Q55200.}
       UNION {?person wdt:P166 wd:Q784097.}
       UNION {?person wdt:P166 wd:Q1455366.}
       UNION {?person wdt:P166 wd:Q5424476.}
       UNION {?person wdt:P166 wd:Q6759784.}
       UNION {?person wdt:P166 wd:Q6761225.}
       UNION {?person wdt:P166 wd:Q7158133.}
      UNION {?person wdt:P166 wd:Q7950590.}
      UNION {?person wdt:P166 wd:Q7980447.}
      UNION {?person wdt:P166 wd:Q13512515.}
      UNION {?person wdt:P166 wd:Q30593379.}
      UNION {?person wdt:P166 wd:Q1996511.}
      UNION {?person wdt:P166 wd:Q2177698.}
      UNION {?person wdt:P166 wd:Q4693035.}
      UNION {?person wdt:P166 wd:Q6759993.}
      UNION {?person wdt:P166 wd:Q17005505.}
      OPTIONAL {?person wdt:P18 ?image.}
      OPTIONAL {?person wdt:P106 ?occupation.}
     SERVICE wikibase:label {
        bd:serviceParam wikibase:language "en" .
    }
      }
    

Thursday edit

  1. datacitation
  2. researchdata

Return a list of places to look for data edit

The following query uses these:

  • Properties: instance of (P31)     , subclass of (P279)     
    SELECT DISTINCT ?store ?storeLabel
    
    WHERE {
      
      {?store wdt:P31/wdt:P279* wd:Q5227308 }
      UNION {?store wdt:P31/wdt:P279* wd:Q22692845.}
      UNION {?store wdt:P31/wdt:P279* wd:Q5281480.}
      UNION {?store wdt:P31/wdt:P279* wd:Q212805.}
      UNION {?store wdt:P31/wdt:P279* wd:Q5570651.}     
      UNION {?store wdt:P31/wdt:P279* wd:Q7689673.} 
      UNION {?store wdt:P31/wdt:P279* wd:Q4117139.}  
      SERVICE wikibase:label {
    		bd:serviceParam wikibase:language "en" .
        
    }
      }
    

Friday edit

hashtags & mentions edit

  1. highered
  2. lovedata18

@oberlincollege

Return a timeline of educational institutions in the united states and the date they began co-education (before 1900) edit

The following query uses these:

  • Properties: significant event (P793)     , image (P18)     , start time (P580)     
    #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).
    
    }