ivoa-std / SpectrumDM

Spectrum Data Model
1 stars 2 forks source link

Representation of Data node in the model #1

Open mcdittmar opened 2 years ago

mcdittmar commented 2 years ago

In the kick-off meeting for Spectrum-1.2 RFE, we decided (at my request) that it would be OK to modernize the diagrams in the document to actual UML diagrams, but we want to minimize the overall changes to the document.

As I mentioned then, there are some inconsistencies between the diagrams and the model schema (xsd).
This ticket is to address one such inconsistency.

In short:

The inconsistencies seem to be related to the 'natural' serialization in the different formats:

Proposal/Plan: These are the issues that VODML and the annotation syntax are meant to address. So, for the purposes of this update, I think the best course is to replace the diagrams as they currently are. Perhaps we can/should add some language to the XML section to address the structural difference in the serialization from the model.


Details:

lmichel commented 2 years ago

A general remark: AFAIK, all model serializations are set in SSAP context and SSAP says that in case of conflict with SDM, it wins.

lmichel commented 2 years ago

A agree with not changing the XML schema. We do not have to mind about the serialization issue because SDM serializations are all based on GROUP/UTypes, thus as long as you do not change UTypes there no discrepancies with SSAP

mcdittmar commented 2 years ago

Contrary to my earlier message; I've updated the diagrams to a set which is closely aligned with the schema. I noticed that the VOTable serialization section mentions the the 'Point' element is implied by the table structure, so I'm thinking these diagrams are a good representation. The UTypes can all be mapped to an element in the diagrams.

I didn't make a PR for review, but would appreciate any comments on the new diagrams. They are in wd-v1.2 branch commit 404f961 in doc/diagrams/*.png.

Notable deltas between these diagrams and the schema:

lmichel commented 2 years ago

Mark,

It is a bit difficult to review the diagrams without any appropriate tool.

From my screen, the splitting look relevant. I'm just wondering whether you will add a low detail model overview.

mcdittmar commented 2 years ago

Mark,

It is a bit difficult to review the diagrams without any appropriate tool.

From my screen, the splitting look relevant. I'm just wondering whether you will add a low detail model overview.

Do you mean an overview diagram with all elements (no attributes)? I can do that. At the time, I thought the PDF preview would be available for people to compare the diagrams and text, but there is no workflow on this repo yet.

Thanks for looking!

lmichel commented 2 years ago

I can try to make a workflow

lmichel commented 2 years ago

I wrote a workflow only triggered in the wd-v1.2 branch and which generates a Spectrum.pdf avatar. https://github.com/ivoa-std/SpectrumDM/releases/tag/auto-pdf-preview Thinks will have to be adapted later on to the IVOA publication steps

mcdittmar commented 2 years ago

I wrote a workflow only triggered in the wd-v1.2 branch and which generates a Spectrum.pdf avatar.

Thanks! I've added doc/diagrams/Overview.png to the suite. Let me know if you were looking for something else.

lmichel commented 2 years ago

The only comment I had is no longer relevant once I've seen the PDF. That's all for today.