Primitive types in the ivoa package
Laurent MICHEL
laurent.michel at astro.unistra.fr
Mon May 18 14:38:45 CEST 2020
Gerard,
Le 18/05/2020 à 13:02, Gerard Lemson a écrit :
> 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?
This is what I believed, but Modelio complains (see joined screenshot)
because RealQuantity is not tagged as primitive. If I do it, the pb goes
away.
This is may be just an issue related to the Modelio profile I'm using.
Laurent
>
> 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
>> ---
>
--
---- 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
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d?e?cran 2020-05-18 a? 14.32.29.png
Type: image/png
Size: 17596 bytes
Desc: not available
URL: <http://mail.ivoa.net/pipermail/dm/attachments/20200518/228aed0e/attachment-0001.png>
More information about the dm
mailing list