Run is a type of Liberty. Liberty is related to Free. Free is related to Philosophy. Philosophy is a synonym of Doctrine. 
Shore is a type of Beam. Shore can be used for Swim. 
Run --IsA--> Liberty <--RelatedTo--> Free <--RelatedTo--> Philosophy <--Synonym--> Doctrine 
Beam <--IsA-- Shore --UsedFor--> Swim 