]> git.argeo.org Git - gpl/argeo-suite.git/blob - entity/entity.cnd
Prepare next development cycle
[gpl/argeo-suite.git] / 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 // STRUCTURE
40 //
41 [entity:space]
42 mixin
43
44 [entity:document]
45 mixin
46
47 //
48 // TYPOLOGY
49 //
50 [entity:typologies]
51 + * (entity:terms) = entity:terms
52
53 [entity:term]
54 orderable
55 - name (NAME)
56 - * (*)
57 + term (entity:term) = entity:term *
58
59 [entity:terms] > mix:referenceable
60 orderable
61 + term (entity:term) = entity:term *
62
63 //
64 // FORM
65 //
66 [entity:form]
67 mixin
68
69 [entity:formSubmission]
70 mixin
71
72 [entity:formSet] > mix:title
73 mixin
74
75 //
76 // GRAPHICS
77 //
78 [entity:box]
79 mixin
80 - svg:width (DOUBLE)
81 - svg:height (DOUBLE)
82 - svg:length (DOUBLE)
83 - svg:unit (STRING)
84 - svg:dur (DOUBLE)
85
86 // LDAP-LIKE ENTITIES
87 // A real person
88 [entity:person] > entity:entity
89 mixin
90 - ldap:sn (String)
91 - ldap:givenName (String)
92 - ldap:mail (String) *
93
94 [entity:user] > entity:person
95 mixin
96 - ldap:distinguishedName (String)
97 - ldap:uid (String)
98
99 // GEOGRAPHY
100 [entity:geopoint]
101 mixin
102 - geo:long (DOUBLE)
103 - geo:lat (DOUBLE)
104 - geo:alt (DOUBLE)
105
106 [entity:bearing]
107 mixin
108 - svg:direction (DOUBLE)