1 |
53047
|
claudio.at
|
package eu.dnetlib.data.mapreduce.hbase.propagation;
|
2 |
|
|
|
3 |
54836
|
miriam.bag
|
import com.google.common.collect.Sets;
|
4 |
|
|
import eu.dnetlib.data.proto.RelTypeProtos;
|
5 |
53269
|
miriam.bag
|
import eu.dnetlib.data.proto.TypeProtos;
|
6 |
|
|
|
7 |
54836
|
miriam.bag
|
import java.util.Set;
|
8 |
|
|
|
9 |
53047
|
claudio.at
|
public class PropagationConstants {
|
10 |
|
|
|
11 |
54836
|
miriam.bag
|
public enum Type {
|
12 |
|
|
valid,
|
13 |
|
|
notvalid,
|
14 |
|
|
fromsemrel,
|
15 |
56868
|
miriam.bag
|
fromresult,
|
16 |
|
|
fromorganization;
|
17 |
54836
|
miriam.bag
|
}
|
18 |
53047
|
claudio.at
|
|
19 |
56868
|
miriam.bag
|
public final static String ORGANIZATION_COMMUNITY_TRUST = "0.85";
|
20 |
57432
|
miriam.bag
|
public static final String ORCID_RESULT_TRUST = "0.85";
|
21 |
56868
|
miriam.bag
|
|
22 |
53047
|
claudio.at
|
public static final String ZERO = "0";
|
23 |
|
|
public static final String ONE = "1";
|
24 |
|
|
|
25 |
|
|
public static final String COUNTER_PROPAGATION = "Propagation";
|
26 |
|
|
|
27 |
54836
|
miriam.bag
|
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 |
56868
|
miriam.bag
|
//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 |
56082
|
miriam.bag
|
public final static String CLASS_COUNTRY_ID = "propagation:country:instrepos";
|
39 |
56868
|
miriam.bag
|
public final static String CLASS_NAME_COUNTRY = "Propagation of country information from datasources belonging to institutional repositories";
|
40 |
54836
|
miriam.bag
|
|
41 |
56868
|
miriam.bag
|
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 |
57432
|
miriam.bag
|
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 |
54836
|
miriam.bag
|
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 |
56868
|
miriam.bag
|
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 |
54836
|
miriam.bag
|
|
64 |
57432
|
miriam.bag
|
public static final String[] DEFAULT_RESULT_RELATION_SET = new String[]{"resultResult_supplement_isSupplementedBy","resultResult_supplement_isSupplementTo"};
|
65 |
54836
|
miriam.bag
|
|
66 |
57432
|
miriam.bag
|
|
67 |
56868
|
miriam.bag
|
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 |
56884
|
miriam.bag
|
|
75 |
56868
|
miriam.bag
|
public static final RelTypeProtos.SubRelType SUBREL_DEDUP = RelTypeProtos.SubRelType.dedup;
|
76 |
56884
|
miriam.bag
|
public static final RelTypeProtos.RelType REL_TYPE_DEDUP_ORGANIZATION = RelTypeProtos.RelType.organizationOrganization;
|
77 |
56868
|
miriam.bag
|
|
78 |
56884
|
miriam.bag
|
public static final String DEDUP_RELATION_ORGANIZATION = REL_TYPE_DEDUP_ORGANIZATION + "_" + SUBREL_DEDUP + "_";
|
79 |
56868
|
miriam.bag
|
|
80 |
56884
|
miriam.bag
|
public static final String REL_DEDUP_RESULT_REPRESENTATIVE = "isMergedIn";
|
81 |
|
|
public static final String REL_DEDUP_REPRESENTATIVE_RESULT = "merges";
|
82 |
56868
|
miriam.bag
|
|
83 |
56884
|
miriam.bag
|
public static final String DEDUP_RELATION_RESULT = REL_TYPE_RESULT + "_" + SUBREL_DEDUP + "_";
|
84 |
56868
|
miriam.bag
|
|
85 |
57432
|
miriam.bag
|
public static final String AUTHOR_PID = "ORCID";
|
86 |
57211
|
miriam.bag
|
//public static final String[] DEFAULT_ORGANIZATION_RELATION_SET = new String[]{"resultOrganization_affiliation_isAuthorInstitutionOf","resultOrganization_affiliation_hasAuthorInstitution"};
|
87 |
56868
|
miriam.bag
|
|
88 |
|
|
|
89 |
54836
|
miriam.bag
|
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 |
56868
|
miriam.bag
|
|
95 |
|
|
|
96 |
53047
|
claudio.at
|
}
|