Wikidata:Property proposal/TheCocktailDB ID
TheCocktailDB drink ID edit
Originally proposed at Wikidata:Property proposal/Generic
Description | ID of a drink in thecocktaildb.com database |
---|---|
Represents | cocktail (Q134768), IBA official cocktail (Q2536409) |
Data type | External identifier |
Domain | property |
Allowed values | [1-9][0-9]* |
Example 1 | Negroni (Q1401202) → 11003 (Site: https://www.thecocktaildb.com/drink/11003) (API: https://www.thecocktaildb.com/api/json/v1/1/lookup.php?i=11003) |
Example 2 | John Collins (Q23666867) → 11580 |
Example 3 | White Russian (Q283543) → 12528 |
Example 4 | Screwdriver (Q667951) → 12162 |
Planned use | Add it to the various cocktails and add in wikidata the missing cocktails |
Number of IDs in source | 612 |
Expected completeness | eventually complete (Q21873974) |
Formatter URL | https://www.thecocktaildb.com/drink/$1 or https://www.thecocktaildb.com/api/json/v1/1/lookup.php?i=$1 |
Single-value constraint | yes |
Distinct-values constraint | yes |
TheCocktailDB ingredient ID edit
Originally proposed at Wikidata:Property proposal/Generic
Description | ID of an ingredient in thecocktaildb.com database |
---|---|
Represents | cocktail (Q134768), IBA official cocktail (Q2536409) |
Data type | External identifier |
Domain | property |
Allowed values | [1-9][0-9]* |
Example 1 | Angostura bitters (Q542594) → 20 (Site: https://www.thecocktaildb.com/ingredient/20) (API: https://www.thecocktaildb.com/api/json/v1/1/lookup.php?iid=20) |
Example 2 | maraschino cherry (Q1078150) → 322 |
Example 3 | ginger ale (Q1162763) → 228 |
Example 4 | Curaçao (Q10223) → 67 |
Planned use | Add it to the various cockatil ingredients and add in wikidata the missing ingredients |
Number of IDs in source | 484 |
Formatter URL | https://www.thecocktaildb.com/ingredient/$1 or https://www.thecocktaildb.com/api/json/v1/1/lookup.php?iid=$1 |
Single-value constraint | yes |
Distinct-values constraint | yes |
Motivation edit
The Cocktail DB has got hundreds of records. It is accessible from an useful API. Furthermore, cocktails and beverages in wikidata are still very disordered with few properties. There's a lot of work to do.
Discussion edit
- @Luca.favorido: this should be renamed to TheCocktailDB Drink ID. Can we also add an ingredient id? for instance
498
→ https://www.thecocktaildb.com/ingredient/498-Triple-sec --Shisma (talk) 18:28, 1 January 2021 (UTC) - @Shisma: useful note, thanks for the suggestion! I've changed the property into drink id and added the ingredient id as a sibling of this one. --Luca.favorido (talk) 18:58, 1 January 2021 (UTC)
- Support --Shisma (talk) 19:04, 1 January 2021 (UTC)
- Support to both properties. Jean-Fred (talk) 11:30, 11 January 2021 (UTC)