ejp-rd-vp / resource-metadata-schema

Metadata model and schemas for the EJP virtual platform
https://ejp-rd-vp.github.io/resource-metadata-schema/
Creative Commons Zero v1.0 Universal
14 stars 10 forks source link

How to properly fill in the field "Contact Point" from Dataset #72

Closed mirgin01 closed 6 months ago

mirgin01 commented 6 months ago

Hi! I'm currently working to create the FDP for the EGA level 1. We've already deployed a regular FDP (not a FiaB) and I've been following these instructions. I was able to follow them and create the schemas and links. Once this was done, I created a Catalog with the EGA information and then a Dataset linked to this Catalog. However, I encountered an issue that prevents the saving of the Dataset information. When I don't fill in the Contact point section (which is not tagged as mandatory) I get the error of photo1. And, when I fill it with the EGA contact form URL, it raises ther error in photo2. Could you help me with the format this section needs? Thanks!! Mireia

photo2

photo1

@andrawaag @ericprud @markwilkinson @HaddadTala

markwilkinson commented 6 months ago

Hi Mireia,

It appears that you are not using the latest shacl that is in the Configuration instructions github. Contact Point should not look like that in the web interface - it should have a "URL" sub-property

:ContactShape a sh:NodeShape ;  # New section
  sh:targetClass vcard:Agent ;
  sh:property [
    sh:path vcard:url;
    sh:name "URL" ;
    sh:nodeKind sh:IRI ;
    sh:minCount 1 ;
    sh:maxCount  1 ;
    dash:editor dash:URIEditor ;
    dash:viewer dash:LabelViewer ;
  ] .
markwilkinson commented 6 months ago

I suggest that you edit the Schema for "Dataset" and replace the shacl with this one: https://github.com/ejp-rd-vp/FDP-Reference-Implementation-Configuration/blob/main/shacl/dataset.shacl

That should get you on your way!

mirgin01 commented 6 months ago

Thanks for your quick answer, it worked !! In the instructions I was following the only shacl that needed to be modified were Resource, Data service and Patient registry. Maybe it's because they are specific for FiaB and not for FDP.

markwilkinson commented 6 months ago

No, it's an error in the documentation. I forgot that we moved the contact point up into the Resource and removed it from Dataset... so the editing of Dataset is a missing step in the docs. I will fix that right now! Thanks for noticing!