Leverage JPQL search expressions in the configuration #27
Labels
idea
Idea that might need some more reflection before considering it a regular feature request
Milestone
The current configuration is too complicated and inefficient. It might be simplified if we could leverage JPQL search expressions in the config files.
Due to the design of
icat.oaipmh
, we need to configure, which properties from which objects in ICAT to consider for an object to be disseminated over OAI-PMH in a first step. From this, an internal XML representation of these objects is created. In a second step, this internal representation is transformed using XSLT.Only to compile all the ICAT entity objects needed for the metadata of a data publication, the following configuration lines are needed:
This seems to be too clumsy.
Roughly the same could be achieved with a single JPQL search expression:
Furthermore, the internal XML representation roughly corresponds one to one to the ICAT schema. This means that if we want to include the experimental techniques being used in an investigation, we need to include all datasets from that investigation in the internal representation, which might look something like:
Note that there may be hundreds of datasets in one investigation. Often they all have the same technique, but that is not guaranteed. The distinct techniques must then be extracted from that using XSLT, which is also somewhat involved.
In princlple, we could select the list of distinct techniques related to an investigation using one simple JPQL search statement like:
(where the
%d
would need to be substituted with the internal id of that investigation.)So if we could compile the internal XML representation by a couple JPQL searches configured in the config file, things might become significantly simpler.
The text was updated successfully, but these errors were encountered: