Primitive types in the ivoa package

Laurent MICHEL laurent.michel at astro.unistra.fr
Mon May 18 15:37:08 CEST 2020


Gerard

Le 18/05/2020 à 14:57, Gerard Lemson a écrit :
> I see. That seems to be a modelio issue, not a vo-dml one. Correct?
This was my question, I got the answer, thank you
> Strange. Are you using a specific kind of UML profile or so?
> Not a problem in MagicDraw for example.
I'm using default things.
I can do with this warning now that I'm sure this is not a VODML warning.

Laurent

> Gerard
> 
>> -----Original Message-----
>> From: Laurent MICHEL <laurent.michel at astro.unistra.fr>
>> Sent: Monday, May 18, 2020 8:39
>> To: Gerard Lemson <glemson1 at jhu.edu>; dm at ivoa.net
>> Subject: Re: Primitive types in the ivoa package
>>
>> 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
>> ---

-- 
---- 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