Wikidata:Property proposal/MobyGames genre ID
Jump to navigation
Jump to search
MobyGames genre ID[edit]
Originally proposed at Wikidata:Property proposal/Authority control
Description | identifier of a video game genre in the MobyGames database |
---|---|
Data type | External identifier |
Domain | video game series (Q7058673) |
Allowed values | [1-9]\d* |
Example 1 | platform game (Q828322) → 21 |
Example 2 | simulation video game (Q1610017) → 3 |
Example 3 | role-playing video game (Q744038) → 50 |
Example 4 | association football video game (Q3177956) → 49 |
External links | Use in sister projects: [ar] • [de] • [en] • [es] • [fr] • [he] • [it] • [ja] • [ko] • [nl] • [pl] • [pt] • [ru] • [sv] • [vi] • [zh] • [commons] • [species] • [wd] • [en.wikt] • [fr.wikt]. |
Number of IDs in source | 212 |
Expected completeness | eventually complete (Q21873974) |
Formatter URL | https://www.mobygames.com/genre/sheet/view/genreId,$1/ |
See also | MobyGames game ID (former scheme) (P1933) |
Motivation[edit]
We really need some more video game genre identifiers. MobyGames are a good candidate. Trade (talk) 20:57, 2 May 2019 (UTC)
Discussion[edit]
Notified participants of WikiProject Video games
- Support --Misc (talk) 23:59, 2 May 2019 (UTC)
- Support David (talk) 08:31, 3 May 2019 (UTC)
- Support.--Vulphere 12:40, 27 May 2019 (UTC)
- Comment There are already some usage via described at URL (P973): Try it!
SELECT ?item ?itemLabel (SAMPLE(?typeLabel) as ?nature) ?url WITH { SELECT ?item ?url ?property WHERE { ?item wdt:P973 ?url. FILTER regex (STR(?url), "mobygames.com/browse/games/"). } } AS %items WHERE { INCLUDE %items. ?item wdt:P31 ?type. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?type rdfs:label ?typeLabel. ?item rdfs:label ?itemLabel. ?property rdfs:label ?propertyLabel. } } GROUP BY ?item ?itemLabel ?propertyLabel ?url
- Comment I had a look at that some time ago, and I think this needs some more thinking:
- MobyGames has the following 'primary fields' (ie, which can be used as first-level facet search):
- Platforms − 271 values (already covered via MobyGames platform ID (P5868))
- Genres − 12 values (which include 'Compilation', 'Add-on' and 'Special edition')
- Sports − 28 values
- Themes − 56 values
- Rating systems − 32 values (not relevant to this case)
- Should we cover all of Genres/Sports/Themes? @Trade:, how did you end up with 45 as number of ids?
- (Slightly off-topic: I find it interesting that MobyGames has sports has a separate field entirely − something which was done here too [1], and from which we moved away [2], and with [at least for now] less success [3])
- Jean-Fred (talk) 18:21, 6 June 2019 (UTC)
- MobyGames has the following 'primary fields' (ie, which can be used as first-level facet search):
- [1] Try it!
SELECT ?sport ?sportLabel (COUNT(?item) as ?count) WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P31 wd:Q7889. ?item wdt:P641 ?sport. }GROUP BY ?sport ?sportLabel
- [2] Try it!
#defaultView:Graph SELECT DISTINCT ?genre ?genreLabel ?rgb ?OLAC ?_subclass_of ?_subclass_ofLabel WHERE { ?genre wdt:P279 wd:Q868217. OPTIONAL { ?genre wdt:P279 ?_subclass_of. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }|
- [3] Try it!
SELECT ?genre ?genreLabel (COUNT(?item) as ?count) WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?genre wdt:P279* wd:Q868217. ?item wdt:P136 ?genre. }GROUP BY ?genre ?genreLabel
- I tried to count the number of genres and ignore everything else. Unfortunately, i forgot to view the complete list. --Trade (talk) 00:30, 8 June 2019 (UTC)
- Jean-Fred, most of these themes can easily be considered vidoe game genres so yes i do belive they should be included. --Trade (talk) 23:23, 8 June 2019 (UTC)
- I tried to count the number of genres and ignore everything else. Unfortunately, i forgot to view the complete list. --Trade (talk) 00:30, 8 June 2019 (UTC)
- As I remembered there was a potentially nicer formatter URL (P1630), I found back the
/genre/sheet
− eg for a “Basic genre”: action, for a “Theme/Gameplay” 4x. This made me rediscover the additional dimensions that Mobygames uses under the “Genre” umbrella:- “Art Style”, eg fmv (5 values)
- “Perspective”, eg top-down (8 values)
- “Visual Presentation”, eg 2d-scrolling (5 values)
- “Interface/Control”, eg motion_control (7 values)
- “Setting”, eg egypt-ancient (28 values)
- “Narrative Theme/Topic”, eg horror (10 values)
- “Educational Categories”, eg science (14 values)
- “Vehicular Themes”, eg helicopter (19 values)
- “Special Edition”, eg digital_extras (3 values)
- “Other Attributes” eg licensed-title (2 values)
- There might be more that I missed :-) Jean-Fred (talk) 09:25, 9 June 2019 (UTC)
- Support Great idea, I think there is unanimous consent. MobyGames is a reliable site, their URL schemes are good. --Ysangkok (talk) 20:01, 8 July 2019 (UTC)
- Comment I requested an API key for Mobygames and Simon Carless (Q7518414) was kind enough to provide one for me. I played a bit with the data − my manual analysis above was not that far off.
- There are 212 identifiers under /genres/. Each genre has a category. Here is the breakdown per category:
- 2 "Other Attributes"
- 3 "Special Edition"
- 4 "Pacing"
- 5 "Art Style"
- 5 "Visual Presentation"
- 7 "Interface/Control"
- 8 "Perspective"
- 10 "DLC/Add-on"
- 11 "Narrative Theme/Topic"
- 12 "Basic Genres"
- 14 "Educational Categories"
- 19 "Vehicular Themes"
- 28 "Setting"
- 28 "Sports Themes"
- 56 "Gameplay"
- (Eventually I will throw that in a Mix’n’match catalogue (I can’t do whatever I want with the API, but that much should definitely be ok)
- Jean-Fred (talk) 21:08, 8 July 2019 (UTC)
- I imagine we could use this as a general identifier for items other than video games, game developers and video game companies. --Trade (talk) 21:19, 8 July 2019 (UTC)
- Actually, I think it’s probably fine to keep it as “MobyGames genre ID” − because for better or for worse, that’s what MobyGames themselves call it :) I just wanted us to be very aware of what exactly is in this bag before we create the property. :-) This also means that I don’t think we should create items with video game genre (Q659563) for every one of these IDs: some will map to non-genre (eg, egypt-ancient should map, I think, to Ancient Egypt (Q11768)). Jean-Fred (talk) 10:46, 9 July 2019 (UTC)
- I imagine we could use this as a general identifier for items other than video games, game developers and video game companies. --Trade (talk) 21:19, 8 July 2019 (UTC)
- There are 212 identifiers under /genres/. Each genre has a category. Here is the breakdown per category:
- Comment So, now one last thing from: should we be using the slug, or the ID? Because egypt-ancient is just a sluggified version of the 'Genre' name,
"Egypt (Ancient)"
, its internal ID being201
(I can see it in the API results). We actually already use the ID for MobyGames person ID (P3913) (because they don’t expose a sluggified URL for some reason). Playing a bit around, by mimicking the URLs of companies, I could figure out the formatter URL from the genre ID:https://www.mobygames.com/genre/sheet/view/genreId,$1/
− eg https://www.mobygames.com/genre/sheet/view/genreId,201/- I would be keen on using the ID and not the slug. Slugs may change − a genre may get renamed slightly, or the sluggification algorithm might be tweaked − meanwhile IDs are rock-stable, and never reused. There’s argument to be made that IDs are not ideal as they are not exposed in the UI − I think that’s valid for the games (ever-expanding catalog, heavily decentralized work on it) ; but for the genres the list is mostly finite, and the best way to tackle it will be to use Mix’n’match. Jean-Fred (talk) 10:46, 9 July 2019 (UTC)
- Support using the ID and not the slug. --Ysangkok (talk) 01:40, 9 September 2019 (UTC)
- @Jean-Frédéric: can we proceed or you have any kind of objection. Regards, ZI Jony (Talk) 16:55, 17 September 2019 (UTC)
- @ZI Jony: Thanks for the ping. I have tentatively updated the proposal to use IDs − @Trade:, would that be okay with you? Jean-Fred (talk) 21:03, 17 September 2019 (UTC)
- Comment Yes --Trade (talk) 21:04, 17 September 2019 (UTC)
@ديفيد عادل وهبة خليل 2, Misc, ZI Jony, Trade, Vulphere, Jean-Frédéric: @Ysangkok: Done: MobyGames genre ID (P7326). − Pintoch (talk) 08:39, 18 September 2019 (UTC)