Make name non mandatory for terms, since it causes issues with setting
[gpl/argeo-suite.git] / core / org.argeo.entity.api / src / org / argeo / entity / entity.cnd
1 // Standard namespaces
2 <xsd = "http://www.w3.org/2001/XMLSchema">
3 <h = "http://www.w3.org/1999/xhtml">
4 // see https://www.w3.org/2003/01/geo/
5 <geo = "http://www.w3.org/2003/01/geo/wgs84_pos#">
6 <svg = "http://www.w3.org/2000/svg">
7
8 <ldap = "http://www.argeo.org/ns/ldap">
9 <entity = 'http://www.argeo.org/ns/entity'>
10
11 [entity:entity] > mix:created, mix:referenceable
12 mixin
13
14 [entity:local] > entity:entity
15 mixin
16 - entity:type (String) m
17
18 [entity:relatedTo]
19 mixin
20 + entity:relatedTo (nt:address) *
21
22 //
23 // ENTITY DEFINITION
24 //
25 //[entity:definition] > entity:composite, mix:created, mix:lastModified, mix:referenceable
26 //- entity:type (String) multiple
27
28 //[entity:part]
29
30 //[entity:reference]
31
32 //[entity:composite]
33 //orderable
34 //+ * (entity:part)
35 //+ * (entity:reference)
36 //+ * (entity:composite)
37
38 //
39 // TYPOLOGY
40 //
41 [entity:typologies]
42 + * (entity:terms) = entity:terms
43
44 [entity:term]
45 orderable
46 - name (NAME)
47 - * (*)
48 + term (entity:term) = entity:term *
49
50 [entity:terms] > mix:referenceable
51 orderable
52 + term (entity:term) = entity:term *
53
54 //
55 // FORM
56 //
57 [entity:form]
58 mixin
59
60 [entity:formSubmission]
61 mixin
62
63 [entity:formSet] > mix:title
64 mixin
65
66 //
67 // GRAPHICS
68 //
69 [entity:box]
70 mixin
71 - svg:width (DOUBLE)
72 - svg:height (DOUBLE)
73 - svg:length (DOUBLE)
74 - svg:unit (STRING)
75 - svg:dur (DOUBLE)
76
77 // LDAP-LIKE ENTITIES
78 // A real person
79 [entity:person] > entity:entity
80 mixin
81 - ldap:sn (String)
82 - ldap:givenName (String)
83 - ldap:mail (String) *
84
85 [entity:user] > entity:person
86 mixin
87 - ldap:distinguishedName (String)
88 - ldap:uid (String)
89
90 // GEOGRAPHY
91 [entity:geopoint]
92 mixin
93 - geo:long (DOUBLE)
94 - geo:lat (DOUBLE)
95 - geo:alt (DOUBLE)
96
97 [entity:bearing]
98 mixin
99 - svg:direction (DOUBLE)