Wikidata:Property proposal/Internet Game Database numeric game ID
Jump to navigation
Jump to search
Internet Game Database numeric game ID[edit]
Originally proposed at Wikidata:Property proposal/Creative work
Description | numeric identifier for a game on IGDB; use as qualifier for P5794 "Internet Game Database game ID" |
---|---|
Represents | Internet Game Database (Q20056333) |
Data type | External identifier |
Domain | video game (Q7889) |
Allowed values | [1-9]\d+ |
Example 1 | Super Mario Odyssey (Q28234671) → 26758 |
Example 2 | Half-Life 2 (Q193581) → 233 |
Example 3 | Portal 2 (Q279446) → 72 |
Example 4 | The Legend of Zelda: Breath of the Wild (Q17185964) → 7346 |
Source | https://www.igdb.com |
Planned use | I intend to write a script for my bot to import these qualifiers for all existing IGDB IDs via the IGDB API. |
Number of IDs in source | Around 251,439, same as Internet Game Database game ID (P5794) |
Expected completeness | always incomplete (Q21873886) |
See also | Internet Game Database game ID (P5794) |
Single-value constraint | yes |
Distinct-values constraint | yes |
Motivation[edit]
Currently, we only have the URL slugs from IGDB, but they're not stable and can be broken in the future if the game's name changes.
The numeric ID would be used as a qualifier to keep track of games that have been renamed. I'll write a script for my bot to automatically attach these on all existing IGDB IDs using the IGDB API. Very similar use case to X numeric user ID (P6552).
Note that there is no formatter URL because IGDB doesn't allow you to link to a page via the numeric ID currently. Nicereddy (talk) 18:23, 23 December 2020 (UTC)
Notified participants of WikiProject Video games -Nicereddy (talk) 18:25, 23 December 2020 (UTC)
Discussion[edit]
- Support I have long wrestled with this problem − unstable but visible slugs ; stable but 'hidden' and unresolveable numeric IDs − and was never sure how to get the best of both worlds. The solution Nicereddy puts forwards seems the best one to me. Jean-Fred (talk) 21:23, 23 December 2020 (UTC)
- Comment “IGDB doesn't allow you to link to a page via the numeric ID currently.” actually, I read once on the Discord (as Diggr was asking) that “You can base36 encode the ID to create a short url like https://www.igdb.com/g/$1 ” − then I guess it’s sort-of-possible (with a middleman like toolforge:wikidata-externalid-url) ^_^ (I just checked with Super Mario Odyssey: ID=26758 → https://www.igdb.com/g/KNA does resolve). Jean-Fred (talk) 21:23, 23 December 2020 (UTC)
- @Jean-Frédéric: we might want to make sure IGDB committed to keeping that workaround functional until a direct link to the numeric ID is possible, but that sounds like a good solution to me. Nicereddy (talk) 23:13, 23 December 2020 (UTC)
- Support If you click on the share tab on the Odyssey page, you can see the https://www.igdb.com/g/kna link. So I do not think it is a temporary workaround. A direct link would be better of course. The numeric id can also be taken from the HTML source. —Dexxor (talk) 09:08, 24 December 2020 (UTC)
- @Jean-Frédéric: we might want to make sure IGDB committed to keeping that workaround functional until a direct link to the numeric ID is possible, but that sounds like a good solution to me. Nicereddy (talk) 23:13, 23 December 2020 (UTC)
- Support --Trade (talk) 20:12, 25 December 2020 (UTC)
- Support AntisocialRyan (talk) 02:28, 27 December 2020 (UTC)
- Support Sir Lothar (talk) 15:15, 31 December 2020 (UTC)