Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lisongx/wikidata-graphql
Wikidata + GraphQL (Dream API for everything)
https://github.com/lisongx/wikidata-graphql
api graphql semantic-web wikidata wikipedia
Last synced: 3 months ago
JSON representation
Wikidata + GraphQL (Dream API for everything)
- Host: GitHub
- URL: https://github.com/lisongx/wikidata-graphql
- Owner: lisongx
- License: mit
- Created: 2017-09-14T14:53:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T04:12:41.000Z (about 2 years ago)
- Last Synced: 2024-11-04T01:32:53.329Z (3 months ago)
- Topics: api, graphql, semantic-web, wikidata, wikipedia
- Language: JavaScript
- Homepage:
- Size: 170 KB
- Stars: 46
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-starred - lisongx/wikidata-graphql - Wikidata + GraphQL (Dream API for everything) (api)
README
# Wikidata + GraphQL: Dream API In 2017
## Example query 1:
Get the all members of _the Beatles_ and where they were born and their twitter username.
(permalink for this query at http://bit.ly/2eXTmbG )
```
{
entity(id: "Q1299") {
label(lang: "en")
has_part {
mainsnak {
label(lang: "en")
award_received {
mainsnak {
label(lang: "en")
}
}
place_of_birth {
mainsnak {
label(lang: "en")
}
}
twitter_username {
mainsnak
}
}
}
}
}
```## Example query 2
Get China's all past head_of_government, and where they educated_at, and what other positions they've held before.
(permalink for this query at http://bit.ly/2xmxaT1 )
```
{
entity(id: "Q148") {
label(lang: "en")
head_of_government {
mainsnak {
label(lang: "en")
educated_at {
mainsnak {
id
label(lang: "en")
}
}
position_held {
mainsnak {
label(lang: "en")
}
}
}
}
}
}
```# TODOS
1. need add reference and qualifiers
2. support search entities
3. other datatype like Time and Media, Geographic object to the graphql schema
4. and maybe thing to help make some of reverse lookup possible