2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:12:14 +02:00
|
|
|
package eu.dnetlib.dhp.oa.graph.dump;
|
2020-06-09 15:39:03 +02:00
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2020-06-15 11:12:14 +02:00
|
|
|
import com.google.common.collect.Maps;
|
|
|
|
|
2021-10-04 18:40:07 +02:00
|
|
|
import eu.dnetlib.dhp.schema.common.ModelConstants;
|
|
|
|
|
2020-06-09 15:37:46 +02:00
|
|
|
public class Constants {
|
2020-06-09 15:39:03 +02:00
|
|
|
|
2021-10-04 18:40:07 +02:00
|
|
|
protected static final Map<String, String> accessRightsCoarMap = Maps.newHashMap();
|
|
|
|
protected static final Map<String, String> coarCodeLabelMap = Maps.newHashMap();
|
2020-06-15 11:12:14 +02:00
|
|
|
|
2020-08-07 17:46:47 +02:00
|
|
|
public static final String INFERRED = "Inferred by OpenAIRE";
|
2021-10-04 18:40:07 +02:00
|
|
|
public static final String CABF2 = "c_abf2";
|
2020-08-07 17:46:47 +02:00
|
|
|
|
|
|
|
public static final String HARVESTED = "Harvested";
|
|
|
|
public static final String DEFAULT_TRUST = "0.9";
|
2021-05-14 10:58:12 +02:00
|
|
|
public static final String USER_CLAIM = "Linked by user";
|
2020-08-07 17:46:47 +02:00
|
|
|
|
2021-10-04 18:40:07 +02:00
|
|
|
public static final String COAR_ACCESS_RIGHT_SCHEMA = "http://vocabularies.coar-repositories.org/documentation/access_rights/";
|
2020-06-15 11:12:14 +02:00
|
|
|
|
2021-10-04 18:40:07 +02:00
|
|
|
public static final String ZENODO_COMMUNITY_PREFIX = "https://zenodo.org/communities/";
|
2020-07-29 16:58:40 +02:00
|
|
|
|
2021-10-04 18:40:07 +02:00
|
|
|
public static final String RESEARCH_COMMUNITY = "Research Community";
|
2020-07-29 16:58:40 +02:00
|
|
|
|
2021-10-04 18:40:07 +02:00
|
|
|
public static final String RESEARCH_INFRASTRUCTURE = "Research Infrastructure/Initiative";
|
2020-07-29 16:58:40 +02:00
|
|
|
|
2020-06-15 11:12:14 +02:00
|
|
|
static {
|
2021-10-04 18:40:07 +02:00
|
|
|
accessRightsCoarMap.put(ModelConstants.ACCESS_RIGHT_OPEN, CABF2);
|
2020-06-15 11:12:14 +02:00
|
|
|
accessRightsCoarMap.put("RESTRICTED", "c_16ec");
|
2021-10-04 18:40:07 +02:00
|
|
|
accessRightsCoarMap.put("OPEN SOURCE", CABF2);
|
|
|
|
accessRightsCoarMap.put(ModelConstants.ACCESS_RIGHT_CLOSED, "c_14cb");
|
|
|
|
accessRightsCoarMap.put(ModelConstants.ACCESS_RIGHT_EMBARGO, "c_f1cf");
|
2020-06-15 11:12:14 +02:00
|
|
|
}
|
2020-06-09 15:39:03 +02:00
|
|
|
|
2020-06-15 11:12:14 +02:00
|
|
|
static {
|
2021-10-04 18:40:07 +02:00
|
|
|
coarCodeLabelMap.put(CABF2, ModelConstants.ACCESS_RIGHT_OPEN);
|
2020-06-15 11:12:14 +02:00
|
|
|
coarCodeLabelMap.put("c_16ec", "RESTRICTED");
|
2021-10-04 18:40:07 +02:00
|
|
|
coarCodeLabelMap.put("c_14cb", ModelConstants.ACCESS_RIGHT_CLOSED);
|
2020-06-15 11:12:14 +02:00
|
|
|
coarCodeLabelMap.put("c_f1cf", "EMBARGO");
|
|
|
|
}
|
2020-11-24 14:38:06 +01:00
|
|
|
|
|
|
|
public enum DUMPTYPE {
|
|
|
|
COMPLETE("complete"), COMMUNITY("community"), FUNDER("funder");
|
|
|
|
|
2021-05-14 10:58:12 +02:00
|
|
|
private final String type;
|
2020-11-24 14:38:06 +01:00
|
|
|
|
|
|
|
DUMPTYPE(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
}
|