X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=org.argeo.app.api%2Fsrc%2Forg%2Fargeo%2Fapp%2Fapi%2Fentity.cnd;fp=org.argeo.app.api%2Fsrc%2Forg%2Fargeo%2Fapp%2Fapi%2Fentity.cnd;h=2ea89f9b533d177d08217797184745ef1809b27e;hp=0000000000000000000000000000000000000000;hb=6e56ffa34cb02ab04d028423aea342e3dfed4358;hpb=c285180bece610b2c2921d44fe14b6dde2123efa diff --git a/org.argeo.app.api/src/org/argeo/app/api/entity.cnd b/org.argeo.app.api/src/org/argeo/app/api/entity.cnd new file mode 100644 index 0000000..2ea89f9 --- /dev/null +++ b/org.argeo.app.api/src/org/argeo/app/api/entity.cnd @@ -0,0 +1,114 @@ +// Standard namespaces + + +// see https://www.w3.org/2003/01/geo/ + + + + + + +[entity:entity] > mix:created, mix:referenceable +mixin + +[entity:local] > entity:entity +mixin +- entity:type (String) m + +[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) + +[entity:query] > nt:query, mix:referenceable + +[entity:querySet] ++ * (entity:query) = entity:query * + +// +// STRUCTURE +// +[entity:space] +mixin + +[entity:document] +mixin + +// +// TYPOLOGY +// +[entity:typologies] ++ * (entity:terms) = entity:terms + +[entity:term] +orderable +- name (NAME) +- * (*) ++ term (entity:term) = entity:term * + +[entity:terms] > mix:referenceable +orderable ++ term (entity:term) = entity:term * + +// +// FORM +// +[entity:form] +mixin ++ queries (entity:querySet) = entity:querySet + +[entity:formSubmission] +mixin + +[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)