MIVOT: fully qualified attribute names
Harrison Paul
harripa at gmail.com
Thu Feb 23 14:47:33 CET 2023
> On 23 Feb 2023, at 12:49, Laurent Michel <laurent.michel at astro.unistra.fr> wrote:
>
>>> However the VOMDL spec tells that a name must be unique within its scope.
>>> - nothing about the way to construct VODML-ID (a good reason not to parse them)
>>> - nothing about the consistency between names and VOMDL-IDs
>>
>> The spec might not say anything explicit, but in fact the VODML-ID does have structure in that it is built from the names of an element and its parents.
>
> I understand, but there is no reason but he common sense, to give a particular structure to the VOMDL-IDs.
> We you generate VODML from XMI (modelio), you first get random IDs for the VOMDL-ID and in a second steps, there are built from [model-name, attr-name , ID of the host class], but the XSLT doing this is not part of the standard. If you edit your VOMDL by hand, like Pat did, you may introduce a distortion to this rule without breaking the schema compliance.
>
> This is why I suggest to tell the users:
> - do not rely on names
> - do no parse VODML-IDs
I agree that technically the VODML-IDs are just XMLIDs andlong as they are unique within a single VODML instance that they can have any value/structure. However, this is precisely the problem, as simply regarded like this, then two instances of a VO-DML document describing a particular model could both be valid, but with entirely different sets of VODML-IDs, and in this situation another standard like MIVOT cannot use those VODML-IDs without also saying precisely which instance document is being used to describe the model. Unless there is some guarantee about the form of the VODML-ID then there could also be undesirable behaviour that new versions of a model did not retain the exact same VODML-ID for a particular attribute.
I think that the XSLT in the VO-DML tooling is effectively part of the standard, and the actual document standard should be updated to clarify that the VODML-ID does have more structure than
[a-zA-Z][a-zA-Z0-9_\.]*
>
>> In this sense the name is a redundant piece of information, but it is quite difficult to say in words how to create the VODML-IDs without making reference to the name element at each level in the tree.
> Finally we do not have to say this as long as VODML-IDs are meant not to be parsable.
> Let’s XSLT working as now and the users dealing with VODML-IDs as atomic strings.
>
I think that if we say that the VODML-IDs have structure, then we can allow Markus’s desire for non-qualified attribute names as it is possible to work them out with simple string manipulations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ivoa.net/pipermail/dm/attachments/20230223/c2fda364/attachment.htm>
More information about the dm
mailing list