bulkTaggingPathMapExtention #381

Merged
claudio.atzori merged 7 commits from bulkTaggingPathMapExtention into beta 1 month ago
Collaborator

Extention of the definition of the pathMap to allow the execution of actions on the values to be used for the constraints verification

Extention of the definition of the pathMap to allow the execution of actions on the values to be used for the constraints verification
alessia.bardi was assigned by miriam.baglioni 3 months ago
claudio.atzori was assigned by miriam.baglioni 3 months ago
miriam.baglioni added 3 commits 3 months ago
Poster
Collaborator

this is the new pathMap parameter

pathMap={"author":{"path":"$['author'][]['fullname']"},
"title":{"path":"$['title'][
]['value']"},
"orcid":{"path":"$['author'][]['pid'][][?(@['qualifier']['classid']=='orcid')]['value']"} ,
"orcid_pending":{"path":"$['author'][]['pid'][][?(@['qualifier']['classid']=='orcid_pending')]['value']"} ,
"contributor" : {"path":"$['contributor'][]['value']"},
"description" : {"path":"$['description'][
]['value']"},
"subject" :{"path":"$['subject'][]['value']"},
"fos" : {"path":"$['subject'][?(@['qualifier']['classid']=='FOS')].value"} ,
"sdg" : {"path":"$['subject'][?(@['qualifier']['classid']=='SDG')].value"},
"journal":{"path":"$['journal'].name"},
"hostedby":{"path":"$['instance'][
]['hostedby']['key']"},
"collectedfrom":{"path":"$['instance'][*]['collectedfrom']['key']"},
"publisher":{"path":"$['publisher'].value"},
"publicationyear":{"path":"$['dateofacceptance'].value",
"action":{"class":"eu.dnetlib.dhp.bulktag.actions.ExecSubstringAction",
"method":"execSubstring",
"params":[
{"param_name":"From","param_value":0},
{"param_name":"To","param_value":4}]}}}

this is the new pathMap parameter pathMap={"author":{"path":"$['author'][*]['fullname']"}, "title":{"path":"$['title'][*]['value']"}, "orcid":{"path":"$['author'][*]['pid'][*][?(@['qualifier']['classid']=='orcid')]['value']"} , "orcid_pending":{"path":"$['author'][*]['pid'][*][?(@['qualifier']['classid']=='orcid_pending')]['value']"} , "contributor" : {"path":"$['contributor'][*]['value']"}, "description" : {"path":"$['description'][*]['value']"}, "subject" :{"path":"$['subject'][*]['value']"}, "fos" : {"path":"$['subject'][?(@['qualifier']['classid']=='FOS')].value"} , "sdg" : {"path":"$['subject'][?(@['qualifier']['classid']=='SDG')].value"}, "journal":{"path":"$['journal'].name"}, "hostedby":{"path":"$['instance'][*]['hostedby']['key']"}, "collectedfrom":{"path":"$['instance'][*]['collectedfrom']['key']"}, "publisher":{"path":"$['publisher'].value"}, "publicationyear":{"path":"$['dateofacceptance'].value", "action":{"class":"eu.dnetlib.dhp.bulktag.actions.ExecSubstringAction", "method":"execSubstring", "params":[ {"param_name":"From","param_value":0}, {"param_name":"To","param_value":4}]}}}
miriam.baglioni added 2 commits 3 months ago
claudio.atzori added 1 commit 1 month ago
claudio.atzori added 1 commit 1 month ago
claudio.atzori merged commit c3c9bdb59c into beta 1 month ago
The pull request has been merged as c3c9bdb59c.
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 bulkTaggingPathMapExtention beta
git pull origin bulkTaggingPathMapExtention

Step 2:

Merge the changes and update on Gitea.
git checkout beta
git merge --no-ff bulkTaggingPathMapExtention
git push origin beta
Sign in to join this conversation.
No reviewers
No Milestone
No project
3 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#381
Loading…
There is no content yet.