1
|
package eu.dnetlib.data.proto;
|
2
|
|
3
|
import "FieldType.proto";
|
4
|
|
5
|
option java_package = "eu.dnetlib.data.proto";
|
6
|
option java_outer_classname = "ResultProtos";
|
7
|
|
8
|
message Result {
|
9
|
|
10
|
optional Metadata metadata = 2;
|
11
|
|
12
|
repeated Instance instance = 6;
|
13
|
|
14
|
repeated ExternalReference externalReference = 7;
|
15
|
|
16
|
message Metadata {
|
17
|
|
18
|
repeated Author author = 40;
|
19
|
|
20
|
// resulttype allows subclassing results into publications | datasets | software
|
21
|
optional Qualifier resulttype = 8;
|
22
|
|
23
|
// common fields
|
24
|
optional Qualifier language = 12;
|
25
|
repeated Qualifier country = 33;
|
26
|
|
27
|
repeated StructuredProperty subject = 1;
|
28
|
repeated StructuredProperty title = 2;
|
29
|
repeated StructuredProperty relevantdate = 3;
|
30
|
|
31
|
repeated StringField description = 25;
|
32
|
optional StringField dateofacceptance = 4;
|
33
|
optional StringField publisher = 5;
|
34
|
optional StringField embargoenddate = 6;
|
35
|
repeated StringField source = 27;
|
36
|
repeated StringField fulltext = 29; // remove candidate
|
37
|
repeated StringField format = 21;
|
38
|
repeated StringField contributor = 30;
|
39
|
optional Qualifier resourcetype = 19;
|
40
|
repeated StringField coverage = 43;
|
41
|
|
42
|
repeated Context context = 28;
|
43
|
|
44
|
// publication specific
|
45
|
optional Journal journal = 18;
|
46
|
|
47
|
// dataset specific
|
48
|
optional StringField storagedate = 9;
|
49
|
optional StringField device = 26;
|
50
|
optional StringField size = 20;
|
51
|
optional StringField version = 22;
|
52
|
optional StringField lastmetadataupdate = 23;
|
53
|
optional StringField metadataversionnumber = 24;
|
54
|
repeated GeoLocation geolocation = 44;
|
55
|
|
56
|
// software specific
|
57
|
repeated StringField documentationUrl = 35;
|
58
|
repeated StructuredProperty license = 36;
|
59
|
optional StringField codeRepositoryUrl = 38;
|
60
|
optional Qualifier programmingLanguage = 39;
|
61
|
|
62
|
// other research products specifics
|
63
|
repeated StringField contactperson = 45;
|
64
|
repeated StringField contactgroup = 41;
|
65
|
repeated StringField tool = 42;
|
66
|
|
67
|
}
|
68
|
|
69
|
|
70
|
|
71
|
// <concept id="egi::vo::alice" />
|
72
|
message Context {
|
73
|
required string id = 1;
|
74
|
repeated DataInfo dataInfo = 2;
|
75
|
}
|
76
|
|
77
|
message Instance {
|
78
|
|
79
|
optional StringField license = 6;
|
80
|
optional Qualifier accessright = 3;
|
81
|
optional Qualifier instancetype = 4;
|
82
|
|
83
|
optional KeyValue hostedby = 5;
|
84
|
repeated string url = 9;
|
85
|
|
86
|
// other research products specific
|
87
|
optional string distributionlocation = 12;
|
88
|
|
89
|
optional KeyValue collectedfrom = 10;
|
90
|
optional StringField dateofacceptance = 11;
|
91
|
|
92
|
optional StringField refereed = 13; //peer-review status
|
93
|
|
94
|
// ( article | book ) processing charges
|
95
|
optional StringField processingchargeamount = 14;
|
96
|
// currency - alphabetic code describe in ISO-4217
|
97
|
optional StringField processingchargecurrency = 15;
|
98
|
}
|
99
|
|
100
|
message ExternalReference {
|
101
|
|
102
|
optional string sitename = 1; // source
|
103
|
optional string label = 2; // title
|
104
|
optional string url = 3; // text()
|
105
|
optional string description = 4; // ?? not mapped yet ??
|
106
|
optional Qualifier qualifier = 5; // type
|
107
|
optional string refidentifier = 6; // site internal identifier
|
108
|
optional string query = 7; // maps the oaf:reference/@query attribute
|
109
|
optional DataInfo dataInfo = 8; // ExternalReferences might be also inferred
|
110
|
}
|
111
|
|
112
|
message GeoLocation {
|
113
|
|
114
|
optional string point = 1;
|
115
|
optional string box = 2;
|
116
|
optional string place = 3;
|
117
|
}
|
118
|
|
119
|
}
|