Configured Entities will not Update Relationship Types

77 views
Skip to first unread message

Arta Seyedian

unread,
Jul 24, 2024, 5:39:29 PM7/24/24
to DSpace Technical Support
Hi, 

is there a way for me to purge old Entity-Relationship versions from my DSpace? I'm learning to use virtual-metadata.xml and some of these relationship types, such as resultsInConceptSet and resultsInPhenotype are outdated, because I switched these relationship types to ones that are more explicit and have the Entities involved in the names e.g. is[Entity A]Of[Entity B]. Some of the new ones are showing up, and some of them aren't, and I'm also noticing that there are other relationships showing up as relationships.is*Of.*  and I just want to know how to force DSpace to use my new set of relationship type names.

image.png

Screenshot 2024-07-24 at 5.35.15 PM.png

As you can see, my relationship_type table has a bunch of relationship types in them, many of which are redundant. I want, as a primary example, for my Study entity to the NEW relationship types (`is*Of*`) instead of the old ones. But instead, only the old ones show.

I have updated my `virtual-metadata.xml`, `relationship-type.xml` and `relationship-formats.xml`. I've attached them here. Hopefully they help.

PS I did manually change all of these `type_id`s from `18` to `32` thinking that would help but it did nothing. 

Screenshot 2024-07-24 at 5.38.43 PM.png
virtual-metadata.xml
relationship-types.xml
relationship-formats.xml

DSpace Technical Support

unread,
Jul 25, 2024, 5:23:01 PM7/25/24
to DSpace Technical Support
Hi Arta,

As I noted on Slack, I believe the only way to *delete* Entity Types and Relationships at this time is to remove them from the database.  Currently, you can reimport the "relationship-types.xml" in order to *update* existing Entity Types or Relationships.  But, it doesn't yet have a deletion option, and there's no way to delete these types from the User Interface yet.

I just wanted to ensure this answer was also captured in this mailing list question, in case others have additional ideas to share.

Tim

Reply all
Reply to author
Forward
0 new messages