2020-12-09 16:59:02 +01:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.common;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2020-12-09 20:00:27 +01:00
|
|
|
import com.google.common.collect.Maps;
|
|
|
|
|
2020-12-09 16:59:02 +01:00
|
|
|
public class Constants {
|
|
|
|
|
|
|
|
public static final Map<String, String> accessRightsCoarMap = Maps.newHashMap();
|
|
|
|
public static final Map<String, String> coarCodeLabelMap = Maps.newHashMap();
|
|
|
|
|
|
|
|
public static String COAR_ACCESS_RIGHT_SCHEMA = "http://vocabularies.coar-repositories.org/documentation/access_rights/";
|
|
|
|
|
|
|
|
static {
|
|
|
|
accessRightsCoarMap.put("OPEN", "c_abf2");
|
|
|
|
accessRightsCoarMap.put("RESTRICTED", "c_16ec");
|
|
|
|
accessRightsCoarMap.put("OPEN SOURCE", "c_abf2");
|
|
|
|
accessRightsCoarMap.put("CLOSED", "c_14cb");
|
|
|
|
accessRightsCoarMap.put("EMBARGO", "c_f1cf");
|
|
|
|
}
|
|
|
|
|
|
|
|
static {
|
|
|
|
coarCodeLabelMap.put("c_abf2", "OPEN");
|
|
|
|
coarCodeLabelMap.put("c_16ec", "RESTRICTED");
|
|
|
|
coarCodeLabelMap.put("c_14cb", "CLOSED");
|
|
|
|
coarCodeLabelMap.put("c_f1cf", "EMBARGO");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|