-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo4Schema.gql
62 lines (48 loc) · 1.04 KB
/
demo4Schema.gql
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
define
age sub attribute,
value long;
contractDate sub attribute,
value datetime;
contractRefNum sub attribute,
value string;
hairColour sub attribute,
value string;
isMale sub attribute,
value boolean;
name sub attribute,
value string;
person sub entity,
has age,
has hairColour,
has isMale,
has name,
plays celebrant,
plays daughter,
plays father,
plays mother,
plays partner1,
plays partner2,
plays son,
plays spouse1,
plays spouse2;
family sub relation,
relates daughter,
relates father,
relates mother,
relates son;
marriage sub relation,
abstract,
key contractRefNum,
has contractDate,
plays marriageToBe,
relates husband,
relates wife;
religousMarriage sub marriage,
relates spouse1 as wife,
relates spouse2 as husband;
secularMarriage sub marriage,
relates partner1 as wife,
relates partner2 as husband;
marriageCeremony sub relation,
relates celebrant,
relates marriageToBe;