-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsample.avdl
66 lines (57 loc) · 1.14 KB
/
sample.avdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
protocol SimplePFB {
enum Multiplicity {
ONE_TO_ONE,
ONE_TO_MANY,
MANY_TO_ONE,
MANY_TO_MANY
}
record Link {
Multiplicity multiplicity;
string dst;
}
record Relation {
string dst_id;
string dst_name;
}
record Property {
string name;
string ontology_reference;
map<string> values;
}
record Node {
string name;
string ontology_reference;
map<string> values;
array<Link> links;
array<Property> properties;
}
record Metadata {
array<Node> nodes;
map<string> misc;
}
enum Gender {
Male,
Female,
Unknown,
Other,
Unspecified,
Not_62_Reported
}
enum Vital_Status {
Alive,
Dead,
Unknown,
Not_62_Reported
}
record Demographic {
string project_id;
Gender gender;
Vital_Status vital_status;
}
record Entity {
union{null, string} id;
string name;
union{Metadata, Demographic} object;
array<Relation> relations;
}
}