baed374e72aade6644fb707cfeb08c449bdf0748
[gpl/argeo-suite.git] / 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 //
19 // ENTITY DEFINITION
20 //
21 //[entity:definition] > entity:composite, mix:created, mix:lastModified, mix:referenceable
22 //- entity:type (String) multiple
23
24 //[entity:part]
25
26 //[entity:reference]
27
28 //[entity:composite]
29 //orderable
30 //+ * (entity:part)
31 //+ * (entity:reference)
32 //+ * (entity:composite)
33
34 //
35 // TYPOLOGY
36 //
37 [entity:typologies]
38 + * (entity:terms) = entity:terms
39
40 [entity:term]
41 orderable
42 - name (NAME) m
43 - * (*)
44 + term (entity:term) = entity:term *
45
46 [entity:terms] > mix:referenceable
47 orderable
48 + term (entity:term) = entity:term *
49
50 //
51 // FORM
52 //
53 [entity:form]
54 mixin
55
56 [entity:formSubmission]
57 mixin
58
59 [entity:formSet] > mix:title
60 mixin
61
62 //
63 // GRAPHICS
64 //
65 [entity:box]
66 mixin
67 - svg:width (DOUBLE)
68 - svg:height (DOUBLE)
69 - svg:length (DOUBLE)
70 - svg:unit (STRING)
71 - svg:dur (DOUBLE)
72
73 // LDAP-LIKE ENTITIES
74 // A real person
75 [entity:person] > entity:entity
76 mixin
77 - ldap:sn (String)
78 - ldap:givenName (String)
79 - ldap:mail (String) *
80
81 [entity:user] > entity:person
82 mixin
83 - ldap:distinguishedName (String)
84 - ldap:uid (String)
85