BulkTagging extension #250

Merged
claudio.atzori merged 10 commits from horizontalConstraints into beta 2022-09-27 14:56:33 +02:00

This PR is to add the possibility of applying constraints horizzontally on all the results.
A new element (advancedConstraint) is supposed to exist in the context of the community where it is possible to express constraints to be verified in the same syntax used to express constraints on the datasources.
The set of result fields that can be used to express the costraint should be extended with the subject field.

The pathMap parameter should be modified as

{
    "author": "$['author'][*]['fullname']",
    "title": "$['title'][*]['value']",
    "orcid": "$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']",
    "contributor": "$['contributor'][*]['value']",
    "description": "$['description'][*]['value']",
    "subject": "$['subject'][*]['value']"
}

It also considers FOS and SGD stored in specific param withing the context, respectively

<param name="fos">fos1,fos2</param>

and

<param name="sdg">dg1,sdg2</param>

They will be added to the subject set for the tagging, but considered separetely when dealing with the api.

This PR is to add the possibility of applying constraints horizzontally on all the results. A new element (**advancedConstraint**) is supposed to exist in the context of the community where it is possible to express constraints to be verified in the same syntax used to express constraints on the datasources. The set of result fields that can be used to express the costraint should be extended with the subject field. The `pathMap` parameter should be modified as ``` { "author": "$['author'][*]['fullname']", "title": "$['title'][*]['value']", "orcid": "$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']", "contributor": "$['contributor'][*]['value']", "description": "$['description'][*]['value']", "subject": "$['subject'][*]['value']" } ``` It also considers FOS and SGD stored in specific param withing the context, respectively ```<param name="fos">fos1,fos2</param>``` and ```<param name="sdg">dg1,sdg2</param>``` They will be added to the subject set for the tagging, but considered separetely when dealing with the api.
alessia.bardi was assigned by miriam.baglioni 2022-09-23 16:22:31 +02:00
claudio.atzori was assigned by miriam.baglioni 2022-09-23 16:22:31 +02:00
miriam.baglioni added 6 commits 2022-09-23 16:22:35 +02:00
miriam.baglioni added 1 commit 2022-09-23 16:47:26 +02:00
miriam.baglioni added 1 commit 2022-09-23 17:08:00 +02:00
Author
Member

I decided to put all together in the same PR since there was no reason to create a PR just to accomodate commit ca216a92ad

I decided to put all together in the same PR since there was no reason to create a PR just to accomodate commit https://code-repo.d4science.org/D-Net/dnet-hadoop/commit/ca216a92ad8db5bd658e45c72f93ed861f27a7cb
claudio.atzori changed title from BulkTagging extention to BulkTagging extension 2022-09-27 14:10:53 +02:00
claudio.atzori added 1 commit 2022-09-27 14:39:34 +02:00
claudio.atzori added 1 commit 2022-09-27 14:55:17 +02:00
claudio.atzori merged commit b4b6a4457c into beta 2022-09-27 14:56:32 +02:00
Sign in to join this conversation.
No description provided.