From 88e4c3b75174cb5cccf89f9ea6deacdf8354b2d2 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Tue, 4 Aug 2020 10:13:25 +0200 Subject: [PATCH] added default trust to context bulktagged --- .../dhp/bulktag/community/ResultTagger.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java index c941cf205..c9ff26963 100644 --- a/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java +++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java @@ -20,8 +20,6 @@ import eu.dnetlib.dhp.schema.oaf.*; /** Created by miriam on 02/08/2018. */ public class ResultTagger implements Serializable { - - private boolean clearContext(Result result) { int tmp = result.getContext().size(); List clist = result @@ -172,7 +170,7 @@ public class ResultTagger implements Serializable { BULKTAG_DATA_INFO_TYPE, CLASS_ID_SUBJECT, CLASS_NAME_BULKTAG_SUBJECT, - TAGGING_TRUST)); + TAGGING_TRUST)); if (datasources.contains(c.getId())) dataInfoList .add( @@ -180,7 +178,7 @@ public class ResultTagger implements Serializable { BULKTAG_DATA_INFO_TYPE, CLASS_ID_DATASOURCE, CLASS_NAME_BULKTAG_DATASOURCE, - TAGGING_TRUST)); + TAGGING_TRUST)); if (czenodo.contains(c.getId())) dataInfoList .add( @@ -188,7 +186,7 @@ public class ResultTagger implements Serializable { BULKTAG_DATA_INFO_TYPE, CLASS_ID_CZENODO, CLASS_NAME_BULKTAG_ZENODO, - TAGGING_TRUST)); + TAGGING_TRUST)); } return c; }) @@ -215,7 +213,7 @@ public class ResultTagger implements Serializable { BULKTAG_DATA_INFO_TYPE, CLASS_ID_SUBJECT, CLASS_NAME_BULKTAG_SUBJECT, - TAGGING_TRUST)); + TAGGING_TRUST)); if (datasources.contains(c)) dataInfoList .add( @@ -223,7 +221,7 @@ public class ResultTagger implements Serializable { BULKTAG_DATA_INFO_TYPE, CLASS_ID_DATASOURCE, CLASS_NAME_BULKTAG_DATASOURCE, - TAGGING_TRUST)); + TAGGING_TRUST)); if (czenodo.contains(c)) dataInfoList .add( @@ -231,7 +229,7 @@ public class ResultTagger implements Serializable { BULKTAG_DATA_INFO_TYPE, CLASS_ID_CZENODO, CLASS_NAME_BULKTAG_ZENODO, - TAGGING_TRUST)); + TAGGING_TRUST)); context.setDataInfo(dataInfoList); return context; })