All Versions
DSpace Documentation
...
You can also design your own model from scratch (see "Designing your own model" section below). So, feel free to start by modifying relationship-types.xml, or creating your own model based on the relationship-types.dtd.
A simple XML configuration file is used to determine the relations. This configuration is read into the database (making modeling the data from the UI possible in future versions as well). A sample of how to define a relationship between Publication and Person is shown below:
| Code Block |
|---|
<!-- This relationship defines both the Publication and Person Entities, along with how they are related together. -->
<relationships>
<type>
<leftType>Publication</leftType>
<rightType>Person</rightType>
<leftLabel>isAuthorOfPublication</leftLabel>
<rightLabel>isPublicationOfAuthor</rightLabel>
<leftCardinality>
<min>0</min>
<!--<max></max> not specified, unlimited-->
</leftCardinality>
<rightCardinality>
<min>0</min>
<!--<max></max> not specified, unlimited-->
</rightCardinality>
</type>
</relationships> |
...
...