Added objectProperty types for relationships
refactored a bug