1 |
lmichel |
4216 |
------------------------------------------------------------------------------------------------------- |
2 |
|
|
VO-DML GEGINNER'S EXAMPLE |
3 |
|
|
|
4 |
|
|
Based on a prototype an an Healpix extension for spatial coordinates. |
5 |
|
|
This is not a model proposal but a testbench for the VODML workflow. |
6 |
|
|
|
7 |
|
|
See README.txt to learn more about the model and its mapping on real data |
8 |
|
|
WARNING: Lots of resources have been copied here to soften the learning curve. |
9 |
|
|
In case of a real VO usage, please take the latest versions of both XSD |
10 |
|
|
and XSLT files and adapt the scripts. |
11 |
|
|
|
12 |
|
|
Laurent Michel 08/2017 |
13 |
|
|
-------------------------------------------------------------------------------------------------------- |
14 |
|
|
|
15 |
|
|
Project content |
16 |
|
|
--------------- |
17 |
|
|
|
18 |
|
|
All testbench resources are in ./vo-dml |
19 |
|
|
We suppose the the XMI files have been generated with Modelio |
20 |
|
|
|
21 |
|
|
Sub-directories: |
22 |
|
|
./ant All ant resources |
23 |
|
|
./models All XMI models files as well as all XSLT output files |
24 |
|
|
./xsd XML schema and Schematron resources |
25 |
|
|
./xslt Style sheets including the java libs required to process them |
26 |
|
|
./mapping Example of a VOTable annotated with the lmsource model |
27 |
|
|
./modelio Modelio (3.5 and 3.6) projects used to build lmsource |
28 |
|
|
./registry Example of a VO resource referencing a model |
29 |
|
|
|
30 |
|
|
Tools |
31 |
|
|
./env.sh Global shell variable definitions |
32 |
|
|
./buildModel Script converting XMI file in VO-DML files |
33 |
|
|
USAGE: ./buildModel [modelName] |
34 |
|
|
./builModelDoc Generation of the model documentation (diagrams + html) from the VO-DML files |
35 |
|
|
USAGE: ./buildModelDoc [modelName] |
36 |
|
|
The scripts outputs are stored in ./models |
37 |
|
|
|
38 |
|
|
How to operate locally |
39 |
|
|
------------------------ |
40 |
|
|
|
41 |
|
|
1) Download the project |
42 |
|
|
% svn checkout https://volute.g-vo.org/svn/trunk/projects/dm/Tesselation |
43 |
|
|
|
44 |
|
|
2) Jump ino the working directory |
45 |
|
|
% cd Tesselation/vo-dml |
46 |
|
|
% chmod a+x buildModel* |
47 |
|
|
|
48 |
|
|
3) Check that both ant and graphviz are installed on your host. Change env.sh according to the |
49 |
|
|
location of the dot utility (given by the command '% which dot') |
50 |
|
|
|
51 |
|
|
4) Building the VO-DML file |
52 |
|
|
% ./buildModel lmsource |
53 |
|
|
|
54 |
|
|
5) Building the documentation |
55 |
|
|
% ./buildModelDoc lmsource |
56 |
|
|
|
57 |
|
|
Once these 5 steps succeeded, you can put your own XMI file in ./models and process it |