Project

General

Profile

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
		optional StringField refereed = 46; //peer-review status
42

    
43
		repeated Context context = 28;
44

    
45
		// publication specific
46
		optional Journal journal = 18;
47

    
48
		// dataset specific
49
		optional StringField storagedate = 9;
50
		optional StringField device = 26;
51
		optional StringField size = 20;
52
		optional StringField version = 22;
53
		optional StringField lastmetadataupdate = 23;
54
		optional StringField metadataversionnumber = 24;
55
		repeated GeoLocation geolocation = 44;
56

    
57
		// software specific
58
		repeated StringField documentationUrl = 35;
59
		repeated StructuredProperty license = 36;
60
		optional StringField codeRepositoryUrl = 38;
61
		optional Qualifier programmingLanguage = 39;
62

    
63
		// other research products specifics
64
		repeated StringField contactperson = 45;
65
		repeated StringField contactgroup = 41;
66
		repeated StringField tool = 42;
67

    
68
		// ( article | book ) processing charges
69
		optional StringField processingchargeamount = 50;
70
		// currency - alphabetic code describe in ISO-4217
71
		optional StringField processingchargecurrency = 51;
72

    
73
	}
74
	
75

    
76
	
77
	// <concept id="egi::vo::alice" />
78
	message Context {
79
		required string id = 1;
80
		repeated DataInfo dataInfo = 2;
81
	}
82
	
83
	message Instance {
84

    
85
		optional StringField license = 6;
86
		optional Qualifier accessright = 3;
87
		optional Qualifier instancetype = 4;
88
	
89
		optional KeyValue hostedby = 5;
90
		repeated string url = 9;
91

    
92
		// other research products specific
93
		optional string distributionlocation = 12;
94

    
95
		optional KeyValue collectedfrom = 10;
96
		optional StringField dateofacceptance = 11;
97
	}
98
	
99
	message ExternalReference {
100
	
101
		optional string sitename = 1;		// source
102
		optional string label = 2;			// title
103
		optional string url = 3;			// text()
104
		optional string description = 4;	// ?? not mapped yet ??
105
		optional Qualifier qualifier = 5;	// type
106
		optional string refidentifier = 6;	// site internal identifier
107
		optional string query = 7;			// maps the oaf:reference/@query attribute
108
		optional DataInfo dataInfo = 8;		// ExternalReferences might be also inferred
109
	}
110

    
111
	message GeoLocation {
112

    
113
		optional string point = 1;
114
		optional string box = 2;
115
		optional string place = 3;
116
	}
117

    
118
}
(14-14/19)