]> git.argeo.org Git - gpl/argeo-suite.git/blob - api/entity.cnd
Prepare next development cycle
[gpl/argeo-suite.git] / api / 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 <gml = "http://www.opengis.net/gml/3.2">
8
9 <ldap = "http://www.argeo.org/ns/ldap">
10 <entity = 'http://www.argeo.org/ns/entity'>
11
12 [entity:entity] > mix:created, mix:referenceable
13 mixin
14
15 [entity:local] > entity:entity
16 mixin
17 - entity:type (String) m
18
19 [entity:relatedTo]
20 mixin
21 + entity:relatedTo (nt:address) *
22
23 //
24 // ENTITY DEFINITION
25 //
26 //[entity:definition] > entity:composite, mix:created, mix:lastModified, mix:referenceable
27 //- entity:type (String) multiple
28
29 //[entity:part]
30
31 //[entity:reference]
32
33 //[entity:composite]
34 //orderable
35 //+ * (entity:part)
36 //+ * (entity:reference)
37 //+ * (entity:composite)
38
39 [entity:query] > nt:query, mix:referenceable
40
41 [entity:querySet]
42 + * (entity:query) = entity:query *
43
44 //
45 // STRUCTURE
46 //
47 [entity:space]
48 mixin
49
50 [entity:document]
51 mixin
52
53 //
54 // TYPOLOGY
55 //
56 [entity:typologies]
57 + * (entity:terms) = entity:terms
58
59 [entity:term]
60 orderable
61 - name (NAME)
62 - * (*)
63 + term (entity:term) = entity:term *
64
65 [entity:terms] > mix:referenceable
66 orderable
67 + term (entity:term) = entity:term *
68
69 //
70 // FORM
71 //
72 [entity:form]
73 mixin
74 + queries (entity:querySet) = entity:querySet
75
76 [entity:formSubmission]
77 mixin
78
79 [entity:formSet] > mix:title
80 mixin
81
82 //
83 // GRAPHICS
84 //
85 [entity:box]
86 mixin
87 - svg:width (DOUBLE)
88 - svg:height (DOUBLE)
89 - svg:length (DOUBLE)
90 - svg:unit (STRING)
91 - svg:dur (DOUBLE)
92
93 // LDAP-LIKE ENTITIES
94 // A real person
95 [entity:person] > entity:entity
96 mixin
97 - ldap:sn (String)
98 - ldap:givenName (String)
99 - ldap:cn (String)
100 - ldap:mail (String) *
101 - ldap:description (String)
102
103 [entity:user] > entity:person
104 mixin
105 - ldap:distinguishedName (String)
106 - ldap:uid (String)
107
108 // GEOGRAPHY
109 [entity:geopoint]
110 mixin
111 - geo:long (DOUBLE)
112 - geo:lat (DOUBLE)
113 - geo:alt (DOUBLE)
114
115 [entity:bearing]
116 mixin
117 - svg:direction (DOUBLE)
118
119 [entity:geobounded]
120 mixin
121 - entity:minLat (DOUBLE)
122 - entity:minLon (DOUBLE)
123 - entity:maxLat (DOUBLE)
124 - entity:maxLon (DOUBLE)
125 - entity:minAlt (DOUBLE)
126 - entity:maxAlt (DOUBLE)