Friendly is a synonym of Familiar. Familiar is related to Pet. Pet is related to Type. 
Soldier is related to Uniform. 
Friendly <--Synonym--> Familiar <--RelatedTo--> Pet <--RelatedTo--> Type 
Soldier <--RelatedTo--> Uniform 