It's possible to envision a web/network/tree, or more formally a graph () in which there are three types of nodes: source, ingredient, dish. A source is usually an animal, plant, fungi etc. species. eg. Cattle (species name is "Bos taurus") An ingredient is a component etc. taken from a source. eg. Sirloin steak, a cut of beef from cattle A dish is something that can be consumed directly. (Eg. Fresh milk, caviar, a cake, bread) Many "ingredients" can also be a "dish", under this definition.
The edges (represented by "arrows") would then represent the "is used to make" relation. So Cattle -> Sirloin steak Chicken -> Egg -> Cake (oversimplified.. as there are many kinds of cakes.. but you get the drift..)
By extension, the edges can even be labelled with certain processing, cooking etc. methods. Eg. Pig -> Pork -(salt-cured)-> Bacon
Are there such databases / datasets in the public domain / on the internet?