you are likely to find Flour in/at/on Cabinet. Shelf is part of Cabinet. you are likely to find Speaker in/at/on Shelf. Speaker is the opposite of Listener. 
Sample is related to Taste. Taste is related to Eating. Eating is a form of Eat. Eat is related to Bread. 
Flour --AtLocation--> Cabinet <--PartOf-- Shelf <--AtLocation-- Speaker <--Antonym--> Listener 
Sample <--RelatedTo--> Taste <--RelatedTo--> Eating --FormOf--> Eat <--RelatedTo--> Bread 