redbox-mint / redbox

http://www.redboxresearchdata.com.au
GNU General Public License v2.0
5 stars 10 forks source link

Issues re services in RIF-CS #60

Open grantj-re3 opened 10 years ago

grantj-re3 commented 10 years ago

ReDBox-Mint 1.6.1

A) Problem with reverse relationship shown in Mint

I don't know if this is a Mint or ReDBox issue, but the RIF-CS for a service record always seems to show the relationship to the collection as "hasAssociationWith". I think it should show the reverse relationship of that selected in the ReDBox Related Services in the Description tab.

B) Problem with a collection record's representation of a service in RIF-CS

If I link to a service record (using Related Services in the Description tab on the main workflow) the resulting RIF-CS has three components regarding the service as follows. (Note that I have modified Mint home/harvest/Services.json to use the handle transformer for curation.)

a) a "related-object" where the object's key is a handle [good]

b) a "related-object" where the object's key is a local ID (ie. redboxmint_flinders_edu_au/services/3) [bad for me because 1) I do not want to show the local ID externally, only the handle; 2) this is a repeat of item-a (but I did not check to see how RDA interprets it)]

c) "related-info" with the text description of the service and URI of the local ID (ie. redboxmint_flinders_edu_au/services/3) [bad for me because 1) this element is interpreted by RDA as another service (although it is the same service as item-a); 2) this ID is not a URI but RDA tries to interpret it as one which results in an invalid hyperlink]

Hence I removed these 2 lines from my config (hopefully without other side-effects):

https://github.com/redbox-mint/redbox/blob/redbox-1.6.1/config/src/main/config/home/templates/rif.vm#L333-334

This means that the following code fragment allows services to be shown in a similar (RIF-CS) manner as person and local-project records:

https://github.com/redbox-mint/redbox/blob/redbox-1.6.1/config/src/main/config/home/templates/rif.vm#L234-256

grantj-re3 commented 8 years ago

Regarding item A above, I have found some old examples at RDA demo of showing lack of inverse linking via Related Objects.

ghost commented 8 years ago

Thanks Grant. I'll ensure we refer to these for testing against rifcs161.