<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Dear Gerard,</div><div class=""><br class=""></div><div class="">thank you for your answer. </div><div class="">It is a bit unfortunate that there is no XSD instance of STC2 available. </div><div class=""><br class=""></div><div class="">We would like to check the new model version by trying out simple XML instantiation for our VOEvent project and compare with the previous STC model version.</div><div class="">I'm afraid we won't have the time to do through XSLT set up and debugging any time soon in our project (nor Pierre nor other persons) and I don't have the skills to do so. </div><div class=""><div class=""><br class=""></div><div class="">The "entry fee" seems to be quite high just to test if the new version of the model solve the problems we have in the previous one. </div></div><div class=""><br class=""></div><div class="">I hope that we can get a working solution soon! </div><div class=""><br class=""></div><div class="">Cheers</div><div class="">Baptiste</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">Le 25 mai 2017 à 19:49, Gerard Lemson <<a href="mailto:gerard.lemson@gmail.com" class="">gerard.lemson@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">HI Pierre <div class=""><br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, May 22, 2017 at 11:12 PM, Pierre Le Sidaner <span dir="ltr" class=""><<a href="mailto:pierre.lesidaner@obspm.fr" target="_blank" class="">pierre.lesidaner@obspm.fr</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br class="">
<br class="">
I have seen the description of the STC2 DM at <a href="http://volute.g-vo.org/svn/trunk/projects/dm/STC-2.0/doc" rel="noreferrer" target="_blank" class="">http://volute.g-vo.org/svn/tru<wbr class="">nk/projects/dm/STC-2.0/doc</a><br class="">
<br class="">
I have seen also xmi files model directory<br class="">
<br class="">
My question is mainly for VO-DML group, is there a possibility to have STC2 express in an xml schema (xsd) ?<br class="">
<br class="">
It would be very useful to make usage of it and validate.<br class="">
<br class="">
Does VO-DML have tool to transform the serialisation of schema into such a format ?<br class="">
<br class=""></blockquote><div class=""><br class=""></div><div class=""><div class="">There is currently no script to translate from VO-DML to XSD.</div><div class="">But nothing stops one from creating one, the mapping between VO-DMl and XSD is quite straightforward. See appendix B1 of the VO-DML spec for an example. </div><div class=""><br class=""></div><div class="">In fact there is such an XSLT script for the related VO-URP "spec" at </div><div class=""><a href="https://github.com/glemson/vo-urp/blob/master/res/intermediate2xsd.xsl" class="">https://github.com/glemson/vo-urp/blob/master/res/intermediate2xsd.xsl</a> </div><div class=""><br class=""></div><div class="">This was used to create the XSD representation for the Simulation DM in <a href="http://www.ivoa.net/documents/SimDM/20120503/xsd/" class="">http://www.ivoa.net/documents/SimDM/20120503/xsd/</a> </div><div class="">It's source was what we then called the intermediate representation" of the data model in </div><div class=""><a href="http://www.ivoa.net/documents/SimDM/20120503/uml/SimDM_INTERMEDIATE.xml" class="">http://www.ivoa.net/documents/SimDM/20120503/uml/SimDM_INTERMEDIATE.xml</a></div><div class="">See section 4.2 of the simulation data model (<a href="http://www.ivoa.net/documents/SimDM/20120503/index.html" class="">http://www.ivoa.net/documents/SimDM/20120503/index.html</a>) for a short description.</div><div class=""><br class=""></div><div class="">The intermediate XML is closely related to the VO-DML/XML. Hence it should not be hard to modify the XSLT to also work for VO-DML, and I have planned to do that once I found the time. Maybe someone else can use it as inspiration?</div><div class=""><br class=""></div><div class="">Main difference between VO-DML and VO-URP is that the former can import models and in fact the primitive datatypes are defined in the base ivoa model in VO-DML, but as an enumeration in VO-URP.</div><div class=""><br class=""></div><div class="">And also note that a particular mapping scheme was used in the XSLT. Laurent Bourges and I used that in a web application that translates between XSD, Java and RDB, but it may not be to everyone's liking. In particular the treatment of references was tricky. We also made the explicit decision to separate the type definitions from the definitions of the root elements. And those were limited to correspond to the non abstract root types only, i.e. those that are not the child in a composition relation. </div></div><div class=""><br class=""></div><div class="">I am happy to assist in porting the XSLT from VO-URP to VO-DML, but hope others are interested as well.</div><div class=""><br class=""></div><div class="">Cheers</div><div class=""><br class=""></div><div class="">Gerard</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
regards<br class="">
<br class="">
Pierre<br class="">
<br class="">
-- <br class="">
------------------------------<wbr class="">------------------------------<wbr class="">-------------<br class="">
Pierre Le Sidaner<br class="">
Observatoire de Paris<br class="">
<br class="">
Direction Informatique de l'Observatoire<br class="">
Observatoire Virtuel 01 40 51 20 82<br class="">
61, avenue de l'Observatoire 75014 Paris<br class="">
<br class="">
mailto:<a href="mailto:pierre.lesidaner@obspm.fr" target="_blank" class="">pierre.lesidaner@obspm.<wbr class="">fr</a><br class="">
<a href="http://padc.obspm.fr/" rel="noreferrer" target="_blank" class="">http://padc.obspm.fr</a><br class="">
<br class="">
------------------------------<wbr class="">------------------------------<wbr class="">--------------<br class="">
<br class="">
</blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></body></html>