Dog is related to Guard. 
Building can Target. you are likely to find Doorway in/at/on Building. you are likely to find Doorway in/at/on Library. Library is a type of Organization. 
Dog <--RelatedTo--> Guard 
Target <--CapableOf-- Building <--AtLocation-- Doorway --AtLocation--> Library --IsA--> Organization 