Wikidata:Property proposal/Amazon Luna game ID

From Wikidata
Jump to navigation Jump to search

Amazon Luna game ID[edit]

Originally proposed at Wikidata:Property proposal/Creative work

Descriptionidentifier of a video game in the Amazon Luna database
RepresentsAmazon Luna (Q99582374)
Data typeExternal identifier
Domainvideo game (Q7889)
Allowed values^B0(?:8|9|B|C)[\dA-Z]{7}$ (with an exception to constraint for Fortnite (Q349375))
Example 1Control: Ultimate Edition (Q114284709)B09QRFS597
Example 2Resident Evil 2 (Q54920200)B0B3BR5CH6
Example 3Mortal Shell (Q96991833)B09M7MSSTY
Example 4Alien: Isolation (Q15613717)B09HFKWMTQ
Example 5Batman: Arkham Knight (Q15891648)B0C3QB7QKV
Example 6Fortnite (Q349375)fortnite
Sourcehttps://luna.amazon.com
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 source180 (as of 20.03.2024)
Expected completenessalways incomplete (Q21873886)
Formatter URLhttps://luna.amazon.com/game/$1 (main formatter URL, preferred rank); https://www.amazon.com/luna/game/$1 (alternative formatter URL, normal rank)
Applicable "stated in"-valueAmazon Luna (Q99582374)
Single-value constraintYes
Distinct-values constraintYes
Wikidata projectWikiProject Video games (Q8485882)

Motivation[edit]

applsdev Arlo Barnes BugWarp Coloradohusky CptViraj Cupkake4Yoshi Cwf97 Cynde Moya Danrok Datumizer Dexxor Diggr Dispenser Dollarsign8 DoublePendulumAttractor EdoAug Edolusill Eniehack Facenapalm Floyd-out FullyAwesome Harshrathod50 Jean-Frédéric Jotamide Keplersj Kirilloparma Lewis Hulbert LotsofTheories Macocobovi Macrike Master Of Ninja Matthias M. Metafire18 Nicereddy Nw520 Oduci Poslovitch Rampagingcarrot RampantSpirit Sanqui Santer Sight Contamination Sir Lothar thgiex Tomodachi94 VGPaleontologist Wd-Ryan WikiSyn YotaMoteuchi

Notified participants of WikiProject Video games

Amazon Luna (Q99582374) is a cloud gaming service (Q85632250) by Amazon and digital store for video games that run on it. I don't think we've ever had properties like this before, although I once wanted to create a similar one for Google Stadia (Q60309635), but changed my mind because that service was going to shut down in a couple weeks when I was writing the proposal. P.S. As you can see according to example no. 6, unfortunately, there is one entry in this database that doesn't work for my proposed formatter URL: for some unknown reason, this entry doesn't have a unique Amazon identifier. Regards Kirilloparma (talk) 19:00, 20 March 2024 (UTC)[reply]

Discussion[edit]

 Comment It looks like this is the same as Amazon Standard Identification Number (P5749): https://www.amazon.com/dp/B09QRFS597 sends to Luna. Jean-Fred (talk) 19:34, 20 March 2024 (UTC)[reply]

Yes, there is an option to use ASIN (as an alternative) of course, however I think this property has more cons than pros, and here's the point:
  1. ASIN is essentially no different than Metacritic, that is, it is broad in scope and it is very challenging to keep track of specific items. You can see this with a simple SPARQL query:
    SELECT DISTINCT ?item ?itemLabel ?ASIN ?statement WHERE {
       hint:Query hint:optimizer "None".
       ?item wdt:P31 wd:Q7889;
       p:P5749 ?statement.
       ?statement ps:P5749 ?ASIN.
       SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
    }
    ORDER BY (UCASE(STR(?itemLabel)))
    
    Try it!
    If we try to filter using my suggested regex from above,
    SELECT DISTINCT ?item ?itemLabel ?ASIN ?statement WHERE {
       hint:Query hint:optimizer "None".
       ?item wdt:P31 wd:Q7889;
       p:P5749 ?statement.
       ?statement ps:P5749 ?ASIN.
       FILTER(REGEX(?ASIN, "^(B0(?:8|9|B|C)[\\dA-Z]{7})$"))
       SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
    }
    ORDER BY (UCASE(STR(?itemLabel)))
    
    Try it!
    we can see that some unique IDs are not only for games leading to Luna, but also for individual games that can be purchased on regular Amazon, which is not what we need, so it becomes almost impossible to distinguish between games for Luna and games for regular purchase. The identifiers will just be mixed up with other identifiers. There are Amazon author ID (P4862), Amazon Music artist ID (P6276) and Amazon Prime Video ID (P8055) that were created separately from ASIN, which is what I actually propose to do for games.
  2. ASIN doesn't allow you to add separate constraints to track games for Amazon Luna. For instance we can't add
    item-requires-statement constraint (Q21503247) >>
    property (P2306) >> distributed by (P750)
    item of property constraint (P2305) >> Amazon Luna (Q99582374) because it's a universal identifier and it wouldn't make sense to require this constraint for all items that use this property.
  3. Amazon Luna has its own web version of the site for games, which gives us the advantage of not being dependent on the official Amazon site and that's why I suggested it as the main formatter URL.
Based on the above, I'm still leaning towards creating a separate property rather than using ASIN. With a separate property it will be much simpler to maintain video games that run on Luna. Regards Kirilloparma (talk) 03:50, 21 March 2024 (UTC)[reply]
  • Update: Now I think it is possible to preserve the ID from example #6. It would be enough to change the current formatter URL without using underscores, hyphens or anything else, i.e. from https://luna.amazon.com/game/-/$1 to https://luna.amazon.com/game/$1. This way we can make an exception to the format constraint. It's actually strange that the IDs work now without the need for any characters, since when I was writing the proposal they didn't work until now, maybe the database has been updated or I had something wrong, I dunno. In any case, this is another reason why ASIN isn't quite the best option in this case. Regards Kirilloparma (talk) 17:00, 22 March 2024 (UTC)[reply]
In this regard, I've tweaked the formatter URL and the proposal examples. Regards Kirilloparma (talk) 06:05, 23 March 2024 (UTC)[reply]
That's perfect! Regards Kirilloparma (talk) 21:01, 27 March 2024 (UTC)[reply]

For property creators[edit]

  • In order to make life easier for property creator who will create this property, I have prepared a ready to run QS batch with all the necessary values for the new property. When you decide to create it, just follow that link. All you have to do is click on the Run button, but not Run in background, because for some unknown reason properties are not created correctly in this mode. Warning! When checking this file, be extremely careful not to accidentally run this batch before its time. Also before you run it, make sure that the P-number is not occupied to avoid adding values of another property. The current last property is SteamGridDB ID (P12561), the PID of the new property when you create it will be Amazon Luna game ID (P12562). If the number does change (you see that the link is no longer red and the property has a different label/description), just let me know by pinging me and I'll replace it with another one. Regards Kirilloparma (talk) 17:05, 27 March 2024 (UTC)[reply]