Wikidata:Property proposal/TheCocktailDB ID

TheCocktailDB drink ID edit

Originally proposed at Wikidata:Property proposal/Generic

DescriptionID of a drink in thecocktaildb.com database
Representscocktail (Q134768), IBA official cocktail (Q2536409)
Data typeExternal identifier
Domainproperty
Allowed values[1-9][0-9]*
Example 1Negroni (Q1401202) → 11003 (Site: https://www.thecocktaildb.com/drink/11003) (API: https://www.thecocktaildb.com/api/json/v1/1/lookup.php?i=11003)
Example 2John Collins (Q23666867) → 11580
Example 3White Russian (Q283543) → 12528
Example 4Screwdriver (Q667951) → 12162
Planned useAdd it to the various cocktails and add in wikidata the missing cocktails
Number of IDs in source612
Expected completenesseventually complete (Q21873974)
Formatter URLhttps://www.thecocktaildb.com/drink/$1 or https://www.thecocktaildb.com/api/json/v1/1/lookup.php?i=$1
Single-value constraintyes
Distinct-values constraintyes

TheCocktailDB ingredient ID edit

Originally proposed at Wikidata:Property proposal/Generic

DescriptionID of an ingredient in thecocktaildb.com database
Representscocktail (Q134768), IBA official cocktail (Q2536409)
Data typeExternal identifier
Domainproperty
Allowed values[1-9][0-9]*
Example 1Angostura bitters (Q542594) → 20 (Site: https://www.thecocktaildb.com/ingredient/20) (API: https://www.thecocktaildb.com/api/json/v1/1/lookup.php?iid=20)
Example 2maraschino cherry (Q1078150) → 322
Example 3ginger ale (Q1162763) → 228
Example 4Curaçao (Q10223) → 67
Planned useAdd it to the various cockatil ingredients and add in wikidata the missing ingredients
Number of IDs in source484
Formatter URLhttps://www.thecocktaildb.com/ingredient/$1 or https://www.thecocktaildb.com/api/json/v1/1/lookup.php?iid=$1
Single-value constraintyes
Distinct-values constraintyes


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, Shisma, Jean-Frédéric:   Done TheCocktailDB drink ID (P9056) & TheCocktailDB ingredient ID (P9057) Pamputt (talk) 12:22, 14 January 2021 (UTC)[reply]