Wikidata:Property proposal/Amazon Luna game ID
Amazon Luna game ID
[edit]Originally proposed at Wikidata:Property proposal/Creative work
Description | identifier of a video game in the Amazon Luna database |
---|---|
Represents | Amazon Luna (Q99582374) |
Data type | External identifier |
Domain | video game (Q7889) |
Allowed values | ^B0(?:8|9|B|C)[\dA-Z]{7}$ (with an exception to constraint for Fortnite (Q349375)) |
Example 1 | Control: Ultimate Edition (Q114284709)→B09QRFS597 |
Example 2 | Resident Evil 2 (Q54920200)→B0B3BR5CH6 |
Example 3 | Mortal Shell (Q96991833)→B09M7MSSTY |
Example 4 | Alien: Isolation (Q15613717)→B09HFKWMTQ |
Example 5 | Batman: Arkham Knight (Q15891648)→B0C3QB7QKV |
Example 6 | Fortnite (Q349375)→fortnite |
Source | https://luna.amazon.com |
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 | 180 (as of 20.03.2024) |
Expected completeness | always incomplete (Q21873886) |
Formatter URL | https://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"-value | Amazon Luna (Q99582374) |
Single-value constraint | Yes |
Distinct-values constraint | Yes |
Wikidata project | WikiProject Video games (Q8485882) |
Motivation
[edit]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)
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)
- 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:
- 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: If we try to filter using my suggested regex from above,Try it!
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)))
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.Try it!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)))
- 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. - 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)
- 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
tohttps://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)
- In this regard, I've tweaked the formatter URL and the proposal examples. Regards Kirilloparma (talk) 06:05, 23 March 2024 (UTC)
- Support The arguments brought forth by Kirilloparma make sense to me. Jean-Fred (talk) 08:56, 25 March 2024 (UTC)
- Done @Kirilloparma, Jean-Frédéric:--Trade (talk) 20:42, 27 March 2024 (UTC)
- That's perfect! Regards Kirilloparma (talk) 21:01, 27 March 2024 (UTC)
For property creators
[edit]Warning! This note is for property creators only, so you can safely skip it if you are not one. |
- 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)