molgenis / molgenis-emx2

MOLGENIS EMX2, the latest version of the MOLGENIS data platform.
GNU Lesser General Public License v3.0
11 stars 16 forks source link

fdp: add the possibility to have customizable ldp:memberRelation #3944

Open svituz opened 3 days ago

svituz commented 3 days ago

Is your feature request related to a problem? Please describe. The default property to navigate the FDP's children of dcat:Catalog is dcat:dataset, specified in the ldp:memberRelation property of the ldp:DirectContainer. There are some use cases where a different property needs to be used. For example, the Schema of EJP-RD foresees the usage of the property dcat:hasPart to link the Catalog to an ejprd:Biobank. Currently, the FDP module statically uses dcat:dataset. NB: dcat:Catalog was used as an example, but this is the same for other dcat:Resources (e.g. dcat:dataset)

Describe the solution you'd like I'd like the possibility to specify which property should be used to navigate from dcat:catalog. An example of the required output is:

<https://directory.bbmri-eric.eu/api/fdp/fdp_Catalog/bbmri-directory> a dcat:Resource,
    dcat:Catalog;
...
dct:hasPart <https://directory.bbmri-eric.eu/api/fdp/fdp_Collection/bbmri-eric:ID:EXT_76823:collection:MainCollection>

<https://directory.bbmri-eric.eu/api/fdp/fdp_Catalog/bbmri-directory/dc> a ldp:DirectContainer;
  ldp:membershipResource <https://directory.bbmri-eric.eu/api/fdp/fdp_Catalog/bbmri-directory>;
  ldp:hasMemberRelation dcat:hasPart;

Describe alternatives you've considered I can't find any other alternative

Additional context As an example, in the old Molgenis this was possible by setting the IRI of the property to the hasMemberRelation attribute of the DCAT Catalog entiy