you are likely to find Library in/at/on School. Library is related to Room. you are likely to find Bed in/at/on Room. Bed is related to Sofa. 
Oxygen is the opposite of Space. Space is related to Black. 
School <--AtLocation-- Library <--RelatedTo--> Room <--AtLocation-- Bed <--RelatedTo--> Sofa 
Oxygen <--Antonym--> Space <--RelatedTo--> Black 