VODML, VODML-ID and names
Paul Harrison
paul.harrison at manchester.ac.uk
Wed Mar 1 09:06:55 CET 2023
> On 28 Feb 2023, at 14:02, Laurent Michel <laurent.michel at astro.unistra.fr> wrote:
>
> Hello DM,
>
> The purpose of this mail is multiple
> - Stop blurring the "MIVOT: fully qualified attribute names" thread with considerations on VODML
> - Specifying the roles of both VODML-IDs and names
> - Assess their impact on the recommended models
It is relatively easy to assess impact on the existing models - validate against the latest version of the VO-DML tools - see https://github.com/pahjbo/PhotDM/tree/vodml-tools-integration as an example - note that the the integration happens within the existing
model github repository and does not take much effort https://github.com/ivoa-std/PhotDM/commit/0477e6739123b645ae921c62ed3f07143b0d2961
>
> Each VODML element has a name and a VOMDL-ID.
> From the standard point of view:
> - Both must comply with a regexp.
> - names must be unique within their enclosing type or package (section 4.1.2)
> in simpler word: we cannot have 2 attributes with the same name.
> - VODML-IDs must be unique within the document (section 4.1.1)
> - nothing is said about the way to build these 2 fields
> - nothing is said about the way they are connected to each other.
At the very minimum I think that the VO-DML standard needs some updating because of these last two points
>
> The reason for having different uniqueness rules is that VODML documents are built as flat lists of elements that has to be put together by solving references (VODML-REF) against VOMDL-IDs.
> For this reason :
> - All referable elements must have a VOMDL-ID unique within the document.
> - Non referable elements (e.g. attributes) could live without VODML-ID
>
> The problem now is that the VODML-IDs are here and everywhere and removing them would require an upgrade of the VODML schema and also of all the models based on VODML (PhotDM, Meas, Coord, Provenance) since those models directly refer to VODML-IDs (see enclosed screenshot from Meas).
My assertion is that because of the structure that was imposed “behing the scenes” by the VO-DML tools, that the actual changes necessary are not as drastic as they first seem. It would potentially affect people like Pat (who did not use the standard tools) in more disruptive manner.
The schema could be easily updated with to make the vodml-id optional and the VO-DML standard document updated with more clarifying text - there could even be some clarification put in on how to interpret "VODML-ID" when it occurs in model standard documents, so that they could remain unchanged as my assertion is that VODML-REFs everywhere would not need to be changed.
Note that there are other things in the VO-DML schema that I think are repeating information - https://github.com/ivoa/vo-dml/issues/6
>
> As this is not a blocking issue for MIVOT or the incoming high level models (Cube, MANGO) either, it would be wise not to press on the Replay button of the last 8 years history.
I don’t think it is anything like hitting the replay button - it is a tidying up of the mechanics of processing the VO-DML files, all of the concepts remain in the language, and models.
> Anyway I won't be the one who will have to manage this.
>
>
> Laurent<Capture d’écran de 2023-02-28 14-36-50.png><laurent_michel.vcf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ivoa.net/pipermail/dm/attachments/20230301/0c93cd04/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2893 bytes
Desc: not available
URL: <http://mail.ivoa.net/pipermail/dm/attachments/20230301/0c93cd04/attachment.p7s>
More information about the dm
mailing list