Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count number of authors #13

Open
nichtich opened this issue Dec 5, 2017 · 0 comments
Open

Count number of authors #13

nichtich opened this issue Dec 5, 2017 · 0 comments

Comments

@nichtich
Copy link
Contributor

nichtich commented Dec 5, 2017

The number of identified authors can be counted with P50:

$ zcat 20171120/wikidata-20171120-publications.ndjson.gz | \
    jq .claims.P50[]? -r | uniq | sort | uniq | wc -l
120821

this takes 7 minutes to run on my machine. Indexing the whole dataset in a database should be faster and more flexible for additional analytics. For instance the number of identified author statements:

$ zcat 20171120/wikidata-20171120-publications.ndjson.gz | jq .claims.P50[]? -r | wc -l
974191

The number of unidentified author statements with P2093 can be counted in the same way:

$ zcat 20171120/wikidata-20171120-publications.ndjson.gz | jq .claims.P2093[]? -r | wc -l
43206518
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant