Hello,
Suppose I want to establish multiple relationships between two entity types as follows:
Entities:
Relationships:
- isAuthorOfPublication
- isEditorOfPublication
- isAdvisorOfPublication
I set up the entities/relationships configuration like this:
<type>
<leftType>Publication</leftType>
<rightType>Person</rightType>
<leftwardType>isAuthorOfPublication</leftwardType>
<rightwardType>isPublicationOfAuthor</rightwardType>
<leftCardinality>
<min>0</min>
</leftCardinality>
<rightCardinality>
<min>0</min>
</rightCardinality>
<copyToLeft>true</copyToLeft>
</type>
<type>
<leftType>Publication</leftType>
<rightType>Person</rightType>
<leftwardType>isEditorOfPublication</leftwardType>
<rightwardType>isPublicationOfEditor</rightwardType>
<leftCardinality>
<min>0</min>
</leftCardinality>
<rightCardinality>
<min>0</min>
</rightCardinality>
<copyToLeft>true</copyToLeft>
</type>
<type>
<leftType>Publication</leftType>
<rightType>Person</rightType>
<leftwardType>isAdvisorOfPublication</leftwardType>
<rightwardType>isPublicationOfAdvisor</rightwardType>
<leftCardinality>
<min>0</min>
</leftCardinality>
<rightCardinality>
<min>0</min>
</rightCardinality>
<copyToLeft>true</copyToLeft>
</type>
This approach allows me to inject virtual metadata into specific fields of a publication entity (e.g., dc.contributor.author, dc.contributor.editor, dc.contributor.advisor).
On the Edit Item page under the Relationship tab for a publication, I can see relevant headings such as (without translation):
- relationships.isAuthorOf.Person
- relationships.isEditorOf.Person
- relationships.isAdvisorOf.Person
These headings are useful for setting up user-friendly labels that help create specific relationships between a publication and a person. However, on the analogous page for a person entity, I only see the same three headings:
- relationships.isPublicationOf
- relationships.isPublicationOf
- relationships.isPublicationOf
There’s no clear distinction in the relationship type (i.e., contributorship type). Thus, when creating a relationship from the person’s Edit Item page, it’s not immediately clear which specific relationship is being initiated.
I’m wondering if this is due to a glitch in my relationship configuration or if it’s the expected behavior. I’ve tried setting up the relationships differently, but this only resulted in creating new relationships with the same issue persisting — just reversed (in publications rather than persons).
Thanks
Peter