Shape is a synonym of Pattern. Pattern is a synonym of Example. Example is related to Instance. Instance is related to Class. 
Rail is a type of Transport. Rail is related to Post. 
Shape <--Synonym--> Pattern <--Synonym--> Example <--RelatedTo--> Instance <--RelatedTo--> Class 
Transport <--IsA-- Rail <--RelatedTo--> Post 