Skip to content

Commit

Permalink
Only find people with relevant P39s
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Aug 23, 2018
1 parent 8a89866 commit 2623f86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scraper.rb
Expand Up @@ -3,6 +3,5 @@

require 'wikidata/fetcher'

names = EveryPolitician::Wikidata.morph_wikinames(source: 'tmtmtmtm/china-national-peoples-congress', column: 'wikiname')
EveryPolitician::Wikidata.scrape_wikidata(names: { zh: names })

sparq = 'SELECT DISTINCT ?item WHERE { ?item p:P39 [ ps:P39 wd:Q10891456 ; pq:P2937 wd:Q247766 ] }'
ids = EveryPolitician::Wikidata.sparql(sparq)

0 comments on commit 2623f86

Please sign in to comment.