X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=org.argeo.entity.api%2Fsrc%2Forg%2Fargeo%2Fentity%2Fentity.cnd;h=b30657d06c536c12fab0102d85cee7b5518d1702;hp=67116cd69ca88a05a9dd225c006930b8d87792cb;hb=70010c4afc5799622fcad5b075740d94da074798;hpb=a55bb0dc7e9fbcefb645d34ce24b326d1506a623 diff --git a/org.argeo.entity.api/src/org/argeo/entity/entity.cnd b/org.argeo.entity.api/src/org/argeo/entity/entity.cnd index 67116cd..b30657d 100644 --- a/org.argeo.entity.api/src/org/argeo/entity/entity.cnd +++ b/org.argeo.entity.api/src/org/argeo/entity/entity.cnd @@ -1,28 +1,99 @@ - +// Standard namespaces + + +// see https://www.w3.org/2003/01/geo/ + + + + -[entity:entity] > mix:title, mix:created, mix:lastModified, mix:referenceable +[entity:entity] > mix:created, mix:referenceable mixin -//- entity:uid (String) m // an implementation dependent UID for each entity -//- entity:type (String) // the type of this entity -[entity:definition] > entity:composite, mix:title, mix:created, mix:lastModified, mix:referenceable +[entity:local] > entity:entity mixin +- entity:type (String) m -[entity:part] +[entity:relatedTo] mixin ++ entity:relatedTo (nt:address) * + +// +// ENTITY DEFINITION +// +//[entity:definition] > entity:composite, mix:created, mix:lastModified, mix:referenceable +//- entity:type (String) multiple + +//[entity:part] + +//[entity:reference] + +//[entity:composite] +//orderable +//+ * (entity:part) +//+ * (entity:reference) +//+ * (entity:composite) + +// +// TYPOLOGY +// +[entity:typologies] ++ * (entity:terms) = entity:terms -[entity:reference] +[entity:term] +orderable +- name (NAME) m +- * (*) ++ term (entity:term) = entity:term * + +[entity:terms] > mix:referenceable +orderable ++ term (entity:term) = entity:term * + +// +// FORM +// +[entity:form] mixin -[entity:composite] +[entity:formSubmission] mixin -orderable -+ * (entity:part) -+ * (entity:reference) -+ * (entity:composite) + +[entity:formSet] > mix:title +mixin + +// +// GRAPHICS +// +[entity:box] +mixin +- svg:width (DOUBLE) +- svg:height (DOUBLE) +- svg:length (DOUBLE) +- svg:unit (STRING) +- svg:dur (DOUBLE) // LDAP-LIKE ENTITIES // A real person [entity:person] > entity:entity mixin +- ldap:sn (String) +- ldap:givenName (String) +- ldap:mail (String) * + +[entity:user] > entity:person +mixin +- ldap:distinguishedName (String) +- ldap:uid (String) + +// GEOGRAPHY +[entity:geopoint] +mixin +- geo:long (DOUBLE) +- geo:lat (DOUBLE) +- geo:alt (DOUBLE) + +[entity:bearing] +mixin +- svg:direction (DOUBLE)