Primitive types in the ivoa package

Gerard Lemson glemson1 at jhu.edu
Mon May 18 13:02:49 CEST 2020


HI Laurent
> Helo DM,
> 
> I'm working on CAB-MSD and Modelio warns me against the use of
> ivoa:Quantity as attribute types because it is not declared as primitive.
> 
>     For the record: ivoa:Quantity and sub-types attach a unit
>                     to a numerical value.
> 
> This means that I've to build an explicit composition relationship from my class
> to ivoa:Quantity if I want to use it which is rather ugly.
> 
> Is there is strong justification for this feature?
> 
I don't really understand what the problem is.
In VO-DML, Attributes can (only) be assigned ValueType-s (as opposed to ObjectType-s).
In VO-DML these are concretely (ValueType itself is abstract) represented by PrimitiveType, Enumeration and DataType.
ivoa:Quantity is a DataType and can thus be assigned to an Attribute.
Am I missing something?

Cheers
Gerard


> Laurent
> --
> ---- English version:
>       https://www.deepl.com/
> 
> ---- Laurent MICHEL              Tel  (33 0) 3 68 85 24 37
>       Observatoire de Strasbourg  Fax  (33 0) 3 68 85 24 32
>       11 Rue de l'Universite      Mail laurent.michel at astro.unistra.fr
>       67000 Strasbourg (France)   Web  http://astro.u-strasbg.fr/~michel
> ---



More information about the dm mailing list