{"id":15653273,"url":"https://github.com/edsu/wikidata_suggest","last_synced_at":"2025-04-30T21:34:20.324Z","repository":{"id":32324587,"uuid":"35899864","full_name":"edsu/wikidata_suggest","owner":"edsu","description":"a CLI suggestion tool for Wikidata entities","archived":false,"fork":false,"pushed_at":"2016-09-24T00:36:56.000Z","size":194,"stargazers_count":29,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-25T11:39:27.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-19T18:12:26.000Z","updated_at":"2019-10-11T13:41:42.000Z","dependencies_parsed_at":"2022-09-05T04:11:00.844Z","dependency_job_id":null,"html_url":"https://github.com/edsu/wikidata_suggest","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikidata_suggest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikidata_suggest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikidata_suggest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikidata_suggest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsu","download_url":"https://codeload.github.com/edsu/wikidata_suggest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242710885,"owners_count":20173244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:45:11.327Z","updated_at":"2025-03-09T15:30:32.591Z","avatar_url":"https://github.com/edsu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wikidata_suggest\n\n[![Build Status](https://secure.travis-ci.org/edsu/wikidata_suggest.png)](http://travis-ci.org/edsu/wikidata_suggest)\n\n`wikidata_suggest` is a simple command line tool for interactively reconciling \nyour data against [Wikidata](https://wikidata.org). First you'll want to\ninstall:\n\n    % pip install wikidata_suggest\n\nOnce you've installed it you will get a command line tool `wd`:\n\n![](http://edsu.github.io/wikidata_suggest/images/screenshot1.png)\n\nMost likely you will want to use wikidata_suggest as a little data \ncleansing/augmentation library. For example if you have a CSV spreadsheet \nthat has an *author* column that you'd like to link up to Wikidata, you \ncan do something like this:\n\n```python\n\nimport csv\n\nfrom wikidata_suggest import suggest\n\nreader = csv.reader(open(\"data.csv\"))\nwriter = csv.writer(open(\"new_data.csv\", \"wb\"))\n\n# read the csv \nfor row in reader:\n\n    # column 2 has author names\n    author = row[1]\n\n    # drop into interactive session\n    wikidata = suggest(author)\n\n    if wikidata:\n        row.append(wikidata[\"id\"])\n    else:\n        row.append(None)\n  \n    # write our new row \n    writer.writerow(row)\n\nreader.close()\nwriter.close()\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Fwikidata_suggest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsu%2Fwikidata_suggest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Fwikidata_suggest/lists"}