Wikidata:Property proposal/MobyGames genre ID

MobyGames genre ID edit

Originally proposed at Wikidata:Property proposal/Authority control

Descriptionidentifier of a video game genre in the MobyGames database
Data typeExternal identifier
Domainvideo game series (Q7058673)
Allowed values[1-9]\d*
Example 1platform game (Q828322)21
Example 2simulation video game (Q1610017)3
Example 3role-playing video game (Q744038)50
Example 4association football video game (Q3177956)49
External linksUse 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 source212
Expected completenesseventually complete (Q21873974)
Formatter URLhttps://www.mobygames.com/genre/sheet/view/genreId,$1/
See alsoMobyGames 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)[reply]

Discussion edit

  Notified participants of WikiProject Video games

  •   Support --Misc (talk) 23:59, 2 May 2019 (UTC)[reply]
  •   Support David (talk) 08:31, 3 May 2019 (UTC)[reply]
  •   Support.--Vulphere 12:40, 27 May 2019 (UTC)[reply]
  •   Comment There are already some usage via described at URL (P973):
    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
    
    Try it!
  •   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):
    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)[reply]


  • [1]
    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
    
    Try it!
  • [2]
    #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". }
    }|
    
    Try it!
  • [3]
    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
    
    Try it!
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)[reply]
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)[reply]
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:
There might be more that I missed :-) Jean-Fred (talk) 09:25, 9 June 2019 (UTC)[reply]
  •   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)[reply]
  •   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)[reply]
    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)[reply]
    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)[reply]
  •   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 being 201 (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)[reply]
  •   Support using the ID and not the slug. --Ysangkok (talk) 01:40, 9 September 2019 (UTC)[reply]
  • @Jean-Frédéric: can we proceed or you have any kind of objection. Regards, ZI Jony (Talk) 16:55, 17 September 2019 (UTC)[reply]
  • @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)[reply]
  •   Comment Yes --Trade (talk) 21:04, 17 September 2019 (UTC)[reply]

@ديفيد عادل وهبة خليل 2, Misc, ZI Jony, Trade, Vulphere, Jean-Frédéric: @Ysangkok:   Done: MobyGames genre ID (P7326). − Pintoch (talk) 08:39, 18 September 2019 (UTC)[reply]