Project

General

Profile

1
package eu.dnetlib.data.mapreduce.hbase.propagation;
2

    
3
import com.google.common.collect.Sets;
4
import eu.dnetlib.data.proto.RelTypeProtos;
5
import eu.dnetlib.data.proto.TypeProtos;
6

    
7
import java.util.Set;
8

    
9
public class PropagationConstants {
10

    
11
    public enum Type {
12
        valid,
13
        notvalid,
14
        fromsemrel,
15
        fromresult,
16
        fromorganization;
17
    }
18

    
19
    public final static String ORGANIZATION_COMMUNITY_TRUST = "0.85";
20
    public static final String ORCID_RESULT_TRUST = "0.85";
21
    public static final String PRODUCT_TO_ORGANIZATION = "0.85";
22

    
23
    public static final String ZERO = "0";
24
    public static final String ONE = "1";
25

    
26
    public static final String COUNTER_PROPAGATION = "Propagation";
27

    
28
    public final static String DATA_INFO_TYPE = "propagation";
29
    public final static String SCHEMA_NAME = "dnet:provenanceActions";
30
    public final static String SCHEMA_ID = "dnet:provenanceActions";
31

    
32
    public final static String DNET_COUNTRY_SCHEMA = "dnet:countries";
33
    public final static String DNET_RELATION_SCHEMA_PROJECTS = "dnet:result_project_relations";
34
    public final static String DNET_RELATION_SCHEMA_ORGANIZATION = "dnet:result_organization_relation";
35

    
36
    public final static String CLASS_PROJECT_ID = "propagation:project:productsthroughsemrel";
37
    public final static String CLASS_PROJECT_NAME = "Propagation of relation to project through semantic relation among results";
38

    
39
    public final static String CLASS_COUNTRY_ID = "propagation:country:instrepos";
40
    public final static String CLASS_NAME_COUNTRY = "Propagation of country information from datasources belonging to institutional repositories";
41

    
42
    public final static String CLASS_COMMUNITY_ID = "propagation:community:productsthroughsemrel";
43
    public final static String CLASS_COMMUNITY_NAME = " Propagation of result belonging to community through semantic relation";
44

    
45
    public final static String CLASS_ORGANIZATION_ID = "propagation:community:organizationtoresult";
46
    public final static String CLASS_ORGANIZATION_NAME = "Propagation of community result through organization to result association";
47

    
48
    public final static String CLASS_ORCID_ID = "propagation:orcid:result";
49
    public static final String CLASS_ORCID_NAME = "Propagation of ORCID through result linked by isSupplementedBy or isSupplementTo semantic relations";
50

    
51
    public static final String CLASS_ORGANIZATION_RESULT_ID = "propagation:result:organizationtoresult";
52
    public static final String CLASS_ORGANIZATION_RESULT_SEMREL_NAME = "Propagation of result linked to organization to result through result linked by isSupplementTo or isSupplementedBy";
53
    public static final String CLASS_ORGANIZATION_RESULT_NAME = "Propagation of result to organization through datasource belongingness";
54

    
55
    public final static int PROJECT = TypeProtos.Type.project.getNumber();//40
56
    public final static int DATASOURCE = TypeProtos.Type.datasource.getNumber();//10
57
    public final static int ORGANIZATION = TypeProtos.Type.organization.getNumber();//20
58
    public final static int PUBLICATION = TypeProtos.Type.result.getNumber();//50
59

    
60
    public final static RelTypeProtos.RelType REL_TYPE_PROJECT = RelTypeProtos.RelType.resultProject;
61
    public final static RelTypeProtos.SubRelType SUBREL_TYPE_PROJECT = RelTypeProtos.SubRelType.outcome;
62
    public static final String REL_PROJECT_RESULT = "produces";
63
    public static final String REL_RESULT_PROJECT = "isProducedBy";
64
    public static final String RELATION = REL_TYPE_PROJECT + "_" + SUBREL_TYPE_PROJECT + "_";
65
    public static final String OUTCOME_PRODUCEDBY = RELATION + REL_RESULT_PROJECT;
66

    
67
    public static final String[] DEFAULT_PROJECT_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
68
    public static final String[] DEFAULT_COMMUNITY_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
69
    public static final String[] DEFAULT_ORGANIZATION_RESULT_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
70

    
71
    public static final String[] DEFAULT_RESULT_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
72

    
73

    
74
    public final static RelTypeProtos.RelType REL_TYPE_ORGANIZATION = RelTypeProtos.RelType.resultOrganization;
75
    public final static RelTypeProtos.SubRelType SUBREL_TYPE_ORGANIZATION = RelTypeProtos.SubRelType.affiliation;
76
    public static final String REL_ORGANIZATIO_RESULT = "isAuthorInstitutionOf";
77
    public static final String REL_RESULT_ORGANIZATION = "hasAuthorInstitution";
78
    public static final String RELATION_ORGANIZATION = REL_TYPE_ORGANIZATION + "_" + SUBREL_TYPE_ORGANIZATION + "_";
79

    
80
    public static final RelTypeProtos.RelType REL_TYPE_RESULT = RelTypeProtos.RelType.resultResult;
81

    
82
    public static final RelTypeProtos.SubRelType SUBREL_DEDUP = RelTypeProtos.SubRelType.dedup;
83
    public static final RelTypeProtos.RelType REL_TYPE_DEDUP_ORGANIZATION = RelTypeProtos.RelType.organizationOrganization;
84

    
85
    public static final String DEDUP_RELATION_ORGANIZATION = REL_TYPE_DEDUP_ORGANIZATION + "_" + SUBREL_DEDUP + "_";
86

    
87
    public static final RelTypeProtos.RelType REL_TYPE_DATASOURCE_ORGANIZATION = RelTypeProtos.RelType.datasourceOrganization;
88
    public static final RelTypeProtos.SubRelType SUBREL_DATASOURCE_ORGANIZATION = RelTypeProtos.SubRelType.provision;
89
    public static final String REL_DATASOURCE_ORGANIZATION = "provides";
90
    public static final String REL_ORGANIZATION_DATASOURCE = "isProvidedBy";
91
    public static final String DATASOURCE_RELATION_ORGANIZATION = REL_TYPE_DATASOURCE_ORGANIZATION + "_" + SUBREL_DATASOURCE_ORGANIZATION + "_" ;
92

    
93

    
94
    public static final String REL_DEDUP_RESULT_REPRESENTATIVE = "isMergedIn";
95
    public static final String REL_DEDUP_REPRESENTATIVE_RESULT = "merges";
96

    
97
    public static final String DEDUP_RELATION_RESULT = REL_TYPE_RESULT + "_" + SUBREL_DEDUP + "_";
98

    
99
    public static final String AUTHOR_PID = "ORCID";
100
    //public static final String[] DEFAULT_ORGANIZATION_RELATION_SET = new String[]{"resultOrganization_affiliation_isAuthorInstitutionOf","resultOrganization_affiliation_hasAuthorInstitution"};
101

    
102

    
103
    public static final Set<String> DEFAULT_ALLOWED_DATASOURCES = Sets.newHashSet("pubsrepository::institutional");
104

    
105
    private Set<String> whiteList = Sets.newHashSet("10|opendoar____::300891a62162b960cf02ce3827bb363c");
106
    private Set<String> blackList = Sets.newHashSet("");
107

    
108

    
109

    
110
}
(2-2/5)