you are likely to find Snake in/at/on Shed. you are likely to find Snake in/at/on River. 
Rim is a synonym of Edge. Edge is related to Sword. 
Shed <--AtLocation-- Snake --AtLocation--> River 
Rim <--Synonym--> Edge <--RelatedTo--> Sword 