Ejemplo n.º 1
0
print(recipeIds)
recipeIds = database.GetRecipeIds("chicken")
print(recipeIds)
recipeIds = database.GetRecipeIds("spinach")
print(recipeIds)
recipeIds = database.GetRecipeIds("fish")
print(recipeIds)
recipeIds = database.GetRecipeIds("corn oil")
print(recipeIds)
recipeIds = database.GetRecipeIds("oil")
print(recipeIds)
recipeIds = database.GetRecipeIds("haggis")
print(recipeIds)

print("Adding ingredient synonyms to database.")
database.AddIngredientSynonymsToIngredientIndexTable('olive oil', 'oil,corn oil')
database.AddIngredientSynonymsToIngredientIndexTable('corn oil', 'oil,olive oil')

print("Retrieving ingredient synonyms to database.")
ingredientSynonyms = database.GetIngredientSynonyms('olive oil')
print(ingredientSynonyms)
ingredientSynonyms = database.GetIngredientSynonyms('chicken')
print(ingredientSynonyms)
ingredientSynonyms = database.GetIngredientSynonyms('spinach')
print(ingredientSynonyms)
ingredientSynonyms = database.GetIngredientSynonyms('fish')
print(ingredientSynonyms)
ingredientSynonyms = database.GetIngredientSynonyms('corn oil')
print(ingredientSynonyms)
ingredientSynonyms = database.GetIngredientSynonyms('oil')
print(ingredientSynonyms)