{"id":13553798,"url":"https://github.com/lisongx/wikidata-graphql","last_synced_at":"2025-04-07T21:32:21.167Z","repository":{"id":44115784,"uuid":"103545558","full_name":"lisongx/wikidata-graphql","owner":"lisongx","description":"Wikidata + GraphQL (Dream API for everything)","archived":false,"fork":false,"pushed_at":"2022-12-07T04:12:41.000Z","size":174,"stargazers_count":46,"open_issues_count":11,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T01:01:42.425Z","etag":null,"topics":["api","graphql","semantic-web","wikidata","wikipedia"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lisongx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-14T14:53:33.000Z","updated_at":"2024-01-17T22:31:10.000Z","dependencies_parsed_at":"2023-01-24T13:16:35.529Z","dependency_job_id":null,"html_url":"https://github.com/lisongx/wikidata-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisongx%2Fwikidata-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisongx%2Fwikidata-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisongx%2Fwikidata-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisongx%2Fwikidata-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lisongx","download_url":"https://codeload.github.com/lisongx/wikidata-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247732674,"owners_count":20986900,"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":["api","graphql","semantic-web","wikidata","wikipedia"],"created_at":"2024-08-01T12:02:33.526Z","updated_at":"2025-04-07T21:32:16.156Z","avatar_url":"https://github.com/lisongx.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","graphql"],"sub_categories":[],"readme":"# Wikidata + GraphQL: Dream API In 2017\n\n## Example query 1:\n\nGet the all members of _the Beatles_  and where they were born and their twitter username.\n\n(permalink for this query at http://bit.ly/2eXTmbG )\n\n```\n{\n  entity(id: \"Q1299\") {\n    label(lang: \"en\")\n    has_part {\n      mainsnak {\n        label(lang: \"en\")\n        award_received {\n          mainsnak {\n            label(lang: \"en\")\n          }\n        }\n        place_of_birth {\n          mainsnak {\n            label(lang: \"en\")\n          }\n        }\n        twitter_username {\n          mainsnak\n        }\n      }\n    }\n  }\n}\n```\n\n## Example query 2\n\nGet China's all past head_of_government,  and where they educated_at, and what other positions they've held before.\n\n(permalink for this query at http://bit.ly/2xmxaT1 )\n\n```\n{\n  entity(id: \"Q148\") {\n    label(lang: \"en\")\n    head_of_government {\n      mainsnak {\n        label(lang: \"en\")\n        educated_at {\n          mainsnak {\n            id\n            label(lang: \"en\")\n          }\n        }\n        position_held {\n         \tmainsnak {\n            label(lang: \"en\")\n          }\n        }\n      }\n    }\n  }\n}\n```\n\n\n# TODOS\n\n1. need add reference and qualifiers\n2. support search entities\n3. other datatype like Time and Media, Geographic object to the graphql schema\n4. and maybe thing to help make some of reverse lookup possible\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisongx%2Fwikidata-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisongx%2Fwikidata-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisongx%2Fwikidata-graphql/lists"}