1
|
package eu.dnetlib.dhp.common;
|
2
|
|
3
|
import java.io.UnsupportedEncodingException;
|
4
|
|
5
|
/**
|
6
|
* InfoSpaceConstants constants.
|
7
|
*
|
8
|
* @author mhorst
|
9
|
*
|
10
|
*/
|
11
|
public final class InfoSpaceConstants {
|
12
|
|
13
|
public static final float CONFIDENCE_TO_TRUST_LEVEL_FACTOR = 0.9f;
|
14
|
|
15
|
public static final String ENCODING_UTF8 = "utf-8";
|
16
|
|
17
|
public static final char ROW_PREFIX_SEPARATOR = '|';
|
18
|
|
19
|
public static final String ID_NAMESPACE_SEPARATOR = "::";
|
20
|
public static final String CLASSIFICATION_HIERARCHY_SEPARATOR = ID_NAMESPACE_SEPARATOR;
|
21
|
public static final String INFERENCE_PROVENANCE_SEPARATOR = ID_NAMESPACE_SEPARATOR;
|
22
|
|
23
|
public static final String ROW_PREFIX_RESULT = "50|";
|
24
|
public static final String ROW_PREFIX_PROJECT = "40|";
|
25
|
public static final String ROW_PREFIX_PERSON = "30|";
|
26
|
public static final String ROW_PREFIX_ORGANIZATION = "20|";
|
27
|
public static final String ROW_PREFIX_DATASOURCE = "10|";
|
28
|
|
29
|
public static final String QUALIFIER_BODY_STRING = "body";
|
30
|
public static final byte[] QUALIFIER_BODY;
|
31
|
|
32
|
public static final String SEMANTIC_CLASS_MAIN_TITLE = "main title";
|
33
|
public static final String SEMANTIC_CLASS_PUBLICATION = "publication";
|
34
|
public static final String SEMANTIC_CLASS_UNKNOWN = "UNKNOWN";
|
35
|
|
36
|
public static final String SEMANTIC_SCHEME_DNET_PERSON_ROLES = "dnet:personroles";
|
37
|
public static final String SEMANTIC_SCHEME_DNET_RELATIONS_RESULT_RESULT = "dnet:result_result_relations";
|
38
|
public static final String SEMANTIC_SCHEME_DNET_RELATIONS_RESULT_PROJECT = "dnet:result_project_relations";
|
39
|
|
40
|
public static final String SEMANTIC_SCHEME_DNET_TITLE = "dnet:dataCite_title";
|
41
|
public static final String SEMANTIC_SCHEME_DNET_TITLE_TYPOLOGIES = "dnet:title_typologies";
|
42
|
public static final String SEMANTIC_SCHEME_DNET_RESULT_TYPOLOGIES = "dnet:result_typologies";
|
43
|
public static final String SEMANTIC_SCHEME_DNET_PROVENANCE_ACTIONS = "dnet:provenanceActions";
|
44
|
public static final String SEMANTIC_SCHEME_DNET_LANGUAGES = "dnet:languages";
|
45
|
public static final String SEMANTIC_SCHEME_DNET_PID_TYPES = "dnet:pid_types";
|
46
|
public static final String SEMANTIC_SCHEME_DNET_CLASSIFICATION_TAXONOMIES = "dnet:subject_classification_typologies";
|
47
|
|
48
|
// resultResult citation and similarity related
|
49
|
public static final String SEMANTIC_SCHEME_DNET_DATASET_PUBLICATION_RELS = "dnet:dataset_publication_rels";
|
50
|
|
51
|
public static final String SEMANTIC_CLASS_TAXONOMIES_ARXIV = "arxiv";
|
52
|
public static final String SEMANTIC_CLASS_TAXONOMIES_WOS = "wos";
|
53
|
public static final String SEMANTIC_CLASS_TAXONOMIES_DDC = "ddc";
|
54
|
public static final String SEMANTIC_CLASS_TAXONOMIES_MESHEUROPMC = "mesheuropmc";
|
55
|
public static final String SEMANTIC_CLASS_TAXONOMIES_ACM = "acm";
|
56
|
|
57
|
public static final String EXTERNAL_ID_TYPE_INSTANCE_URL = "dnet:instance-url";
|
58
|
public static final String EXTERNAL_ID_TYPE_UNKNOWN = "unknown";
|
59
|
|
60
|
// publication types class ids
|
61
|
public static final String SEMANTIC_CLASS_INSTANCE_TYPE_ARTICLE = "0001";
|
62
|
public static final String SEMANTIC_CLASS_INSTANCE_TYPE_DATASET = "0021";
|
63
|
|
64
|
static {
|
65
|
try {
|
66
|
QUALIFIER_BODY = QUALIFIER_BODY_STRING.getBytes(ENCODING_UTF8);
|
67
|
|
68
|
} catch (UnsupportedEncodingException e) {
|
69
|
throw new RuntimeException(e);
|
70
|
}
|
71
|
}
|
72
|
|
73
|
private InfoSpaceConstants() {
|
74
|
}
|
75
|
}
|