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

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

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

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

    
31
    public final static String DNET_COUNTRY_SCHEMA = "dnet:countries";
32
    public final static String DNET_RELATION_SCHEMA = "dnet:result_project_relations";
33
    //public final static String DNET_COMMUNITY_RELATION_SCHEMA = "dnet:result_result_relations";
34

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

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

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

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

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

    
50
    public final static int PROJECT = TypeProtos.Type.project.getNumber();//40
51
    public final static int DATASOURCE = TypeProtos.Type.datasource.getNumber();//10
52
    public final static int ORGANIZATION = TypeProtos.Type.organization.getNumber();//20
53
    public final static int PUBLICATION = TypeProtos.Type.result.getNumber();//50
54

    
55
    public final static RelTypeProtos.RelType REL_TYPE = RelTypeProtos.RelType.resultProject;
56
    public final static RelTypeProtos.SubRelType SUBREL_TYPE = RelTypeProtos.SubRelType.outcome;
57
    public static final String REL_PROJECT_RESULT = "produces";
58
    public static final String REL_RESULT_PROJECT = "isProducedBy";
59
    public static final String RELATION = REL_TYPE + "_" + SUBREL_TYPE + "_";
60
    public static final String OUTCOME_PRODUCEDBY = RELATION + REL_RESULT_PROJECT;
61
    public static final String[] DEFAULT_PROJECT_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
62
    public static final String[] DEFAULT_COMMUNITY_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
63

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

    
66

    
67
    public final static RelTypeProtos.RelType REL_TYPE_ORGANIZATION = RelTypeProtos.RelType.resultOrganization;
68
    public final static RelTypeProtos.SubRelType SUBREL_TYPE_ORGANIZATION = RelTypeProtos.SubRelType.affiliation;
69
    public static final String REL_ORGANIZATIO_RESULT = "isAuthorInstitutionOf";
70
    public static final String REL_RESULT_ORGANIZATION = "hasAuthorInstitution";
71
    public static final String RELATION_ORGANIZATION = REL_TYPE_ORGANIZATION + "_" + SUBREL_TYPE_ORGANIZATION + "_";
72

    
73
    public static final RelTypeProtos.RelType REL_TYPE_RESULT = RelTypeProtos.RelType.resultResult;
74

    
75
    public static final RelTypeProtos.SubRelType SUBREL_DEDUP = RelTypeProtos.SubRelType.dedup;
76
    public static final RelTypeProtos.RelType REL_TYPE_DEDUP_ORGANIZATION = RelTypeProtos.RelType.organizationOrganization;
77

    
78
    public static final String DEDUP_RELATION_ORGANIZATION = REL_TYPE_DEDUP_ORGANIZATION + "_" + SUBREL_DEDUP + "_";
79

    
80
    public static final String REL_DEDUP_RESULT_REPRESENTATIVE = "isMergedIn";
81
    public static final String REL_DEDUP_REPRESENTATIVE_RESULT = "merges";
82

    
83
    public static final String DEDUP_RELATION_RESULT = REL_TYPE_RESULT + "_" + SUBREL_DEDUP + "_";
84

    
85
    public static final String AUTHOR_PID = "ORCID";
86
    //public static final String[] DEFAULT_ORGANIZATION_RELATION_SET = new String[]{"resultOrganization_affiliation_isAuthorInstitutionOf","resultOrganization_affiliation_hasAuthorInstitution"};
87

    
88

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

    
91
    private Set<String> whiteList = Sets.newHashSet("10|opendoar____::300891a62162b960cf02ce3827bb363c");
92
    private Set<String> blackList = Sets.newHashSet("");
93

    
94

    
95

    
96
}
(2-2/5)