BulkTagging extension #250

Merged
claudio.atzori merged 10 commits from horizontalConstraints into beta 2 years ago
Collaborator

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 2 years ago
claudio.atzori was assigned by miriam.baglioni 2 years ago
miriam.baglioni added 6 commits 2 years ago
miriam.baglioni added 1 commit 2 years ago
miriam.baglioni added 1 commit 2 years ago
Poster
Collaborator

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 2 years ago
claudio.atzori added 1 commit 2 years ago
claudio.atzori added 1 commit 2 years ago
claudio.atzori merged commit b4b6a4457c into beta 2 years ago
The pull request has been merged as b4b6a4457c.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b horizontalConstraints beta
git pull origin horizontalConstraints

Step 2:

Merge the changes and update on Gitea.
git checkout beta
git merge --no-ff horizontalConstraints
git push origin beta
Sign in to join this conversation.
No reviewers
No Milestone
No project
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: D-Net/dnet-hadoop#250
Loading…
There is no content yet.