Add relationships to metadata