forked from Epistimis/universal-data-definition-language
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uddl_extension.uddl
36 lines (24 loc) · 1.38 KB
/
uddl_extension.uddl
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
/*This is a uddl test file, to verify all validation working perfectly.*/
dm mymodel 'Base data structures to support People, Places and Things' {
cdm Conceptual 'Need to start at Conceptual Level' {
/*all contained element must have union name*/
observable Identifier 'this is Identifier';
observable Biometric 'this is Biometric';
observable Address 'this is Address';
centity AddressableEntity 'Any entity that is addressable in some way' {
Identifier uniqueID [1:2] 'A guaranteed unique ID for this party - this is really an implementation detail';
AddressableEntity adrss [1:1]'A guaranteed unique ID for this party - this is really an implementation detail';
};
centity NaturalPerson 'Base definition of a natural person. Typical users will take only a slice of this' : AddressableEntity {
Biometric biometrics [1:1] 'Some biometric data. Each element will likely be implemented as a type/value pair' ;
};
cassoc UnionMembership 'The relationship between a NaturalPerson and any Union' {
AddressableEntity role [1:1] 'The role of this person in this union';
Identifier personrole [4:6]'The role of this person in this union';
participants: [
NaturalPerson union[1:1] 'The union in the relationship' { src: [1:1] } ;
NaturalPerson member[1:1] 'The person'{ src: [1:1] } ;
]
};
}
}