[Volute] r3539 - trunk/projects/dm/vo-dml/models/sample/Association

Volute commit messages volutecommits at g-vo.org
Wed Oct 26 18:05:28 CEST 2016


Author: lmichel
Date: Mon Sep 12 14:48:15 2016
New Revision: 3539

Log:
Model sample: simple 1-* association.

Added:
   trunk/projects/dm/vo-dml/models/sample/Association/
   trunk/projects/dm/vo-dml/models/sample/Association/Association.gvd
   trunk/projects/dm/vo-dml/models/sample/Association/Association.html   (contents, props changed)
   trunk/projects/dm/vo-dml/models/sample/Association/Association.map
   trunk/projects/dm/vo-dml/models/sample/Association/Association.png   (contents, props changed)
   trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml   (contents, props changed)
   trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml.svrlt
   trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml.validation-report.txt   (contents, props changed)
   trunk/projects/dm/vo-dml/models/sample/Association/Association.votable.xml   (contents, props changed)

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.gvd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/Association/Association.gvd	Mon Sep 12 14:48:15 2016	(r3539)
@@ -0,0 +1,44 @@
+
+digraph GVmap {  
+	label = "\n\nAssociation data model"
+	rankdir=TB
+	
+	node [ 
+	  shape=tab
+	  style=filled
+	]
+	subgraph cluster_packages {
+	  label="Model"
+	  rankdir=TB
+      style=filled
+      fillcolor="/set312/1"
+	  
+    "base" [
+    URL="#base"
+    label = "base"
+    fillcolor="/set312/2"
+    ] ;
+    
+	}
+	
+	node [
+	shape=record
+	fontsize=8
+	style=filled] 
+	"Association:base.Passenger" [
+    URL="#base.Passenger"
+    label = "{base/Passenger|+SerialNumber : ivoa:integer\l+FullName : ivoa:string\l}"
+    fillcolor="/set312/2"
+    ] ;
+  "Association:base.Flight" [
+    URL="#base.Flight"
+    label = "{base/Flight|+Number : ivoa:string\l+Destination : ivoa:string\l}"
+    fillcolor="/set312/2"
+    ] ;
+  
+ 
+    edge [color="blue", arrowhead="open", arrowtail="diamond",dir="both",fontsize="10"]
+    "Association:base.Flight" -> "Association:base.Passenger" [headlabel="0..*",label="Wings",labelfontsize=10] ;
+    
+}
+  
\ No newline at end of file

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.html
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/Association/Association.html	Mon Sep 12 14:48:15 2016	(r3539)
@@ -0,0 +1,390 @@
+<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vo-dml="http://www.ivoa.net/xml/VODML/v1.0">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>VO-DML data model snipet</title>
+    <link rel="stylesheet" href="https://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa_wg.css" type="text/css">
+    <link rel="stylesheet" href="https://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/xmi.css" type="text/css">
+  </head>
+  <body>
+    <h1>VO-DML data model snipet</h1>
+    <h2><a id="contents" name="contents">Table of Contents</a></h2>
+    <div class="head">
+      <table class=".toc">
+        <tr>
+          <td>1.</td>
+          <td>    <a href="#model_section">model: Association</a></td>
+        </tr>
+        <tr>
+          <td>2.</td>
+          <td>    <a href="#packages">Packages and Types</a></td>
+        </tr>
+        <tr>
+          <td>2.1</td>
+          <td>    <a href="#rootpackage">[root package]</a></td>
+        </tr>
+        <tr>
+          <td>2.2</td>
+          <td>    <a href="#base">package: base</a></td>
+        </tr>
+        <tr>
+          <td>2.2.1</td>
+          <td>    <a href="#base.Flight">objectType: Flight</a></td>
+        </tr>
+        <tr>
+          <td>2.2.2</td>
+          <td>    <a href="#base.Passenger">objectType: Passenger</a></td>
+        </tr>
+        <tr>
+          <td>3.</td>
+          <td>
+                <a href="#vodml-ids">vodml-id-s</a></td>
+        </tr>
+        <tr>
+          <td>4.</td>
+          <td>
+                <a href="#modelimports">Imported Models</a></td>
+        </tr>
+        <tr>
+          <td>4.1</td>
+          <td>
+                <a href="#ivoa">ivoa</a></td>
+        </tr>
+      </table>
+    </div>
+    <hr>
+    <h1><a name="model_section">1. Model: VO-DML data model snipet (Association)</a></h1>
+    <table>
+      <tr>
+        <td align="right"><b>Authors</b></td>
+        <td> : </td>
+        <td></td>
+      </tr>
+      <tr>
+        <td align="right"><b>Date</b></td>
+        <td> : </td>
+        <td>2016-01-12T10:55:49</td>
+      </tr>
+      <tr>
+        <td align="right"><b>Version</b></td>
+        <td> : </td>
+        <td>1.0</td>
+      </tr>
+      <tr>
+        <td align="right" valign="top"><b>Abstract</b></td>
+        <td valign="top"> : </td>
+        <td>This DM snipet shows an assocation bewteen M passenger with one flight</td>
+      </tr>
+      <tr>
+        <td align="right" valign="top"><b>Diagram</b></td>
+        <td valign="top"> : </td>
+        <td>The following diagram has been generated from the model using the <a href="http://www.graphviz.org/" target="_blank">GraphViz</a> tool.<br>
+          The classes and packages in the diagram can be clicked and are mapped to the descriptions of the corresponding element elsewhere
+          in the document. 
+          
+        </td>
+      </tr>
+      <tr>
+        <td colspan="3"></td>
+      </tr>
+    </table><img src="Association.png}" usemap="#GVmap"><map id="GVmap" name="GVmap">
+<area shape="rect" id="node1" href="#base" title="base" alt="" coords="27,57,99,105"/>
+<area shape="rect" id="node2" href="#base.Passenger" title="{base/Passenger|+SerialNumber : ivoa:integer\l+FullName : ivoa:string\l}" alt="" coords="113,173,263,232"/>
+<area shape="rect" id="node3" href="#base.Flight" title="{base/Flight|+Number : ivoa:string\l+Destination : ivoa:string\l}" alt="" coords="123,52,253,111"/>
+</map>
+
+    <hr>
+    <h1>2.<a name="packages">Model contents: Packages and Types</a></h1>
+    <p>
+      The following sub-sections present all packages in the model with their types.
+      The packages are listed here in alphabetical order.
+      Each sub-section contains a description of the package and a table containing its various features.
+      
+    </p>
+    <h3><a name="rootpackage"></a>2.1 [root package]
+    </h3>
+    <table border="1" cellspacing="2" width="100%">
+      <tr>
+        <td class="objecttype-title" width="20%">Model</td>
+        <td class="objecttype-name">Association</td>
+      </tr>
+      <tr>
+        <td width="20%" class="info-title">child package(s)</td>
+        <td colspan="2" class="feature-detail"><a href="#base">base</a> 
+        </td>
+      </tr>
+    </table>
+    <h3><a name="base"></a>2.2 package: base
+    </h3>
+    <table border="1" cellspacing="2" width="100%">
+      <tr>
+        <td class="objecttype-title" width="20%">vodml-id</td>
+        <td class="objecttype-name" colspan="1">base</td>
+      </tr>
+      <tr>
+        <td class="info-title">description</td>
+        <td class="feature-detail" colspan="1">[TODO add description!]</td>
+      </tr>
+      <tr>
+        <td width="20%" class="info-title">parent</td>
+        <td colspan="2" class="feature-detail"><a href="#model_section">Association</a></td>
+      </tr>
+      <tr>
+        <td width="20%" class="info-title">Object types</td>
+        <td colspan="2" class="feature-detail"><a href="#base.Flight">Flight</a> <a href="#base.Passenger">Passenger</a> 
+        </td>
+      </tr>
+    </table>
+    <h3><a name="base.Flight"></a>2.2.1 objectType: Flight
+    </h3>
+    <div align="center">
+      <table border="1" width="100%" cellspacing="2">
+        <tr>
+          <td class="objecttype-title" width="20%">vodml-id</td>
+          <td class="objecttype-name" colspan="1">base.Flight</td>
+        </tr>
+        <tr>
+          <td class="info-title">description</td>
+          <td class="feature-detail" colspan="1">[TODO add description!]</td>
+        </tr>
+        <tr>
+          <td colspan="2">
+            <table width="100%" cellpadding="0" cellspacing="0" border="0">
+              <tr>
+                <td colspan="2" bgcolor="#cacaca">
+                  <table width="100%" border="0" cellpadding="3" cellspacing="1">
+                    <tr>
+                      <td width="20%" class="info-title">package</td>
+                      <td colspan="3" class="feature-detail"><a href="#base">base</a></td>
+                    </tr>
+                    <tr>
+                      <td colspan="3" class="info-title">attributes</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading" width="20%">name</td>
+                      <td class="feature-heading" width="10%">feature</td>
+                      <td class="feature-heading" width="70%">value</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-detail" valign="top" rowspan="4"><a name="base.Flight.Number"></a><b>Number</b></td>
+                      <td class="feature-heading">type</td>
+                      <td class="feature-detail"><a href="#ivoa">ivoa</a>:<a href="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html#string">string</a></td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">vodml-id</td>
+                      <td class="feature-detail">base.Flight.Number</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">multiplicity</td>
+                      <td class="feature-detail">1</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">description</td>
+                      <td class="feature-detail">TBD</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-detail" valign="top" rowspan="4"><a name="base.Flight.Destination"></a><b>Destination</b></td>
+                      <td class="feature-heading">type</td>
+                      <td class="feature-detail"><a href="#ivoa">ivoa</a>:<a href="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html#string">string</a></td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">vodml-id</td>
+                      <td class="feature-detail">base.Flight.Destination</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">multiplicity</td>
+                      <td class="feature-detail">1</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">description</td>
+                      <td class="feature-detail">TBD</td>
+                    </tr>
+                    <tr>
+                      <td colspan="3" class="info-title">collections</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading" width="20%">name</td>
+                      <td class="feature-heading" width="10%">feature</td>
+                      <td class="feature-heading" width="70%">value</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-detail" valign="top" rowspan="5"><a name="base.Flight.Passengers"></a><b>Wings</b></td>
+                      <td class="feature-heading">type</td>
+                      <td class="feature-detail"><a href="#base.Passenger">Passenger [Association:base.Passenger]</a></td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">vodml-id</td>
+                      <td class="feature-detail">base.Flight.Passengers</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">multiplicity</td>
+                      <td class="feature-detail">0..*</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">isOrdered</td>
+                      <td class="feature-detail">false</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">description</td>
+                      <td class="feature-detail">TBD</td>
+                    </tr>
+                  </table>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+      </table>
+    </div><br><h3><a name="base.Passenger"></a>2.2.2 objectType: Passenger
+    </h3>
+    <div align="center">
+      <table border="1" width="100%" cellspacing="2">
+        <tr>
+          <td class="objecttype-title" width="20%">vodml-id</td>
+          <td class="objecttype-name" colspan="1">base.Passenger</td>
+        </tr>
+        <tr>
+          <td class="info-title">description</td>
+          <td class="feature-detail" colspan="1">[TODO add description!]</td>
+        </tr>
+        <tr>
+          <td colspan="2">
+            <table width="100%" cellpadding="0" cellspacing="0" border="0">
+              <tr>
+                <td colspan="2" bgcolor="#cacaca">
+                  <table width="100%" border="0" cellpadding="3" cellspacing="1">
+                    <tr>
+                      <td width="20%" class="info-title">package</td>
+                      <td colspan="3" class="feature-detail"><a href="#base">base</a></td>
+                    </tr>
+                    <tr>
+                      <td colspan="3" class="info-title">attributes</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading" width="20%">name</td>
+                      <td class="feature-heading" width="10%">feature</td>
+                      <td class="feature-heading" width="70%">value</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-detail" valign="top" rowspan="4"><a name="base.Passenger.FlightNumber"></a><b>SerialNumber</b></td>
+                      <td class="feature-heading">type</td>
+                      <td class="feature-detail"><a href="#ivoa">ivoa</a>:<a href="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html#integer">integer</a></td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">vodml-id</td>
+                      <td class="feature-detail">base.Passenger.FlightNumber</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">multiplicity</td>
+                      <td class="feature-detail">1</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">description</td>
+                      <td class="feature-detail">TBD</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-detail" valign="top" rowspan="4"><a name="base.Passenger.FullName"></a><b>FullName</b></td>
+                      <td class="feature-heading">type</td>
+                      <td class="feature-detail"><a href="#ivoa">ivoa</a>:<a href="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html#string">string</a></td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">vodml-id</td>
+                      <td class="feature-detail">base.Passenger.FullName</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">multiplicity</td>
+                      <td class="feature-detail">1</td>
+                    </tr>
+                    <tr>
+                      <td class="feature-heading">description</td>
+                      <td class="feature-detail">TBD</td>
+                    </tr>
+                  </table>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+      </table>
+    </div><br><hr>
+    <h1>3.<a name="vodml-ids">Element Identifiers/VO-DMLrefs</a></h1>  
+    The following table shows all fully qualified vodml-ids for this data model.
+    It is ordered alphabetically and the identifiers are hyper-linked to the location
+    in the document where the actual element is fully defined.
+    
+    
+    <table style="border-style:solid;border-width:1px;" border="1" cellspacing="0" cellpadding="0">
+      <tr>
+        <td class="feature-heading">vodml-id</td>
+        <td class="feature-heading">feature type</td>
+        <td class="feature-heading">description</td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#"></a></td>
+        <td class="feature-detail">vo-dml:model</td>
+        <td class="feature-detail">This DM snipet shows an assocation bewteen M passenger with one flight</td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base">base</a></td>
+        <td class="feature-detail">package</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Flight">base.Flight</a></td>
+        <td class="feature-detail">objectType</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Flight.Destination">base.Flight.Destination</a></td>
+        <td class="feature-detail">attribute</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Flight.Number">base.Flight.Number</a></td>
+        <td class="feature-detail">attribute</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Flight.Passengers">base.Flight.Passengers</a></td>
+        <td class="feature-detail">collection</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Passenger">base.Passenger</a></td>
+        <td class="feature-detail">objectType</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Passenger.FullName">base.Passenger.FullName</a></td>
+        <td class="feature-detail">attribute</td>
+        <td class="feature-detail"></td>
+      </tr>
+      <tr>
+        <td class="feature-detail"><a href="#base.Passenger.FlightNumber">base.Passenger.FlightNumber</a></td>
+        <td class="feature-detail">attribute</td>
+        <td class="feature-detail"></td>
+      </tr>
+    </table>
+    <hr>
+    <h1>4.<a name="modelimports">Imported Models</a></h1>
+    <p>This section lists the external models imported by the current data model.
+      For each imported model we list URLs to the VO-DML and HTML representations and the prefix used for vodml-ids from inside
+      the model.
+    </p>
+    <h2><a name="ivoa"></a>4.1 ivoa
+    </h2>
+    <table border="1" cellspacing="2" width="100%">
+      <tr>
+        <td class="objecttype-title" width="20%">Model vodml-id</td>
+        <td class="objecttype-name">ivoa</td>
+      </tr>
+      <tr>
+        <td width="30%" class="info-title">url</td>
+        <td><a href="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.vo-dml.xml">http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.vo-dml.xml</a></td>
+      </tr>
+      <tr>
+        <td width="30%" class="info-title">documentation url</td>
+        <td><a href="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html">http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html</a></td>
+      </tr>
+    </table>
+  </body>
+</html>
\ No newline at end of file

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.map
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/Association/Association.map	Mon Sep 12 14:48:15 2016	(r3539)
@@ -0,0 +1,5 @@
+<map id="GVmap" name="GVmap">
+<area shape="rect" id="node1" href="#base" title="base" alt="" coords="27,57,99,105"/>
+<area shape="rect" id="node2" href="#base.Passenger" title="{base/Passenger|+SerialNumber : ivoa:integer\l+FullName : ivoa:string\l}" alt="" coords="113,173,263,232"/>
+<area shape="rect" id="node3" href="#base.Flight" title="{base/Flight|+Number : ivoa:string\l+Destination : ivoa:string\l}" alt="" coords="123,52,253,111"/>
+</map>

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.png
==============================================================================
Binary file. No diff available.

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml	Mon Sep 12 14:48:15 2016	(r3539)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<vo-dml:model xsi:schemaLocation="http://www.ivoa.net/xml/VODML/v1.0 ../xsd/vo-dml-v1.0.xsd" xmlns:vo-dml="http://www.ivoa.net/xml/VODML/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<name>Association</name>
+	<description>This DM snipet shows an assocation bewteen M passenger with one flight</description>
+	<title>VO-DML data model snipet</title>
+	<version>1.0</version>
+	<lastModified>2016-01-12T10:55:49</lastModified>
+	<import>
+		<name>ivoa</name>
+		<url>http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.vo-dml.xml</url>
+		<documentationURL>http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html</documentationURL>
+	</import>
+	<package>
+		<vodml-id>base</vodml-id>
+		<name>base</name>
+		<!-- Wing -->
+		<objectType>
+			<vodml-id>base.Passenger</vodml-id>
+			<name>Passenger</name>
+			<attribute>
+				<vodml-id>base.Passenger.FlightNumber</vodml-id>
+				<name>SerialNumber</name>
+				<datatype>
+					<vodml-ref>ivoa:integer</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+			<attribute>
+				<vodml-id>base.Passenger.FullName</vodml-id>
+				<name>FullName</name>
+				<datatype>
+					<vodml-ref>ivoa:string</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+	</objectType>
+		<!-- airplane -->
+		<objectType>
+			<vodml-id>base.Flight</vodml-id>
+			<name>Flight</name>
+			<attribute>
+				<vodml-id>base.Flight.Number</vodml-id>
+				<name>Number</name>
+				<datatype>
+					<vodml-ref>ivoa:string</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+			<attribute>
+				<vodml-id>base.Flight.Destination</vodml-id>
+				<name>Destination</name>
+				<datatype>
+					<vodml-ref>ivoa:string</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+			<collection>
+				<vodml-id>base.Flight.Passengers</vodml-id>
+				<name>Wings</name>
+				<datatype>
+					<vodml-ref>Association:base.Passenger</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>0</minOccurs>
+					<maxOccurs>-1</maxOccurs>
+				</multiplicity>
+			</collection>
+		</objectType>
+	</package>
+</vo-dml:model>

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml.svrlt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml.svrlt	Mon Sep 12 14:48:15 2016	(r3539)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<svrl:schematron-output xmlns:schold="http://www.ascc.net/xml/schematron"
+                        xmlns:iso="http://purl.oclc.org/dsdl/schematron"
+                        xmlns:saxon="http://saxon.sf.net/"
+                        xmlns:vo-dml="http://www.ivoa.net/xml/VODML/v1.0"
+                        xmlns:xs="http://www.w3.org/2001/XMLSchema"
+                        xmlns:fct="localFunctions"
+                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                        xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
+                        xmlns:xhtml="http://www.w3.org/1999/xhtml"
+                        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                        title="Schematron VO-DML Validator"
+                        schemaVersion=""><!--   
+		   
+		   
+		 --><svrl:ns-prefix-in-attribute-values uri="http://www.ivoa.net/xml/VODML/v1.0" prefix="vo-dml"/>
+  <svrl:ns-prefix-in-attribute-values uri="localFunctions" prefix="fct"/>
+  <svrl:ns-prefix-in-attribute-values uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/Association.vo-dml.xml"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:fired-rule context="vodml-id[not(../name() = 'vo-dml:model')]"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/Association.vo-dml.xml"/>
+  <svrl:fired-rule context="objectType|dataType|enumeration|primitiveType"/>
+  <svrl:fired-rule context="objectType|dataType|enumeration|primitiveType"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/Association.vo-dml.xml"/>
+  <svrl:fired-rule context="collection/datatype/vodml-ref"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/Association.vo-dml.xml"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/Association.vo-dml.xml"/>
+  <svrl:fired-rule context="objectType/attribute | dataType/attribute"/>
+  <svrl:fired-rule context="attribute/multiplicity"/>
+  <svrl:fired-rule context="objectType/attribute | dataType/attribute"/>
+  <svrl:fired-rule context="attribute/multiplicity"/>
+  <svrl:fired-rule context="objectType/attribute | dataType/attribute"/>
+  <svrl:fired-rule context="attribute/multiplicity"/>
+  <svrl:fired-rule context="objectType/collection"/>
+</svrl:schematron-output>
\ No newline at end of file

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.vo-dml.xml.validation-report.txt
==============================================================================

Added: trunk/projects/dm/vo-dml/models/sample/Association/Association.votable.xml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/Association/Association.votable.xml	Mon Sep 12 14:48:15 2016	(r3539)
@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--  
+Example of a VOTable annotated with VODML elements mapping its contents to the 
+Association data models used to check the parsing of single VO-DML features.
+ -->
+<VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.3_vodml"><!-- 
+	Declaration of VO-DML models that are used in this annotated VOTable.
+	See $7.1.
+	-->
+	<GROUP>
+		<VODML>
+			<TYPE>vodml-map:Model</TYPE>
+		</VODML>
+		<PARAM name="name" datatype="char" arraysize="*" value="ivoa">
+			<VODML>
+				<ROLE>vodml-map:Model.name</ROLE>
+				<TYPE>ivoa:string</TYPE>
+			</VODML>
+		</PARAM>
+		<PARAM name="url" datatype="char" arraysize="*" value="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.vo-dml.xml">
+			<VODML>
+				<ROLE>vodml-map:Model.url</ROLE>
+				<TYPE>ivoa:anyURI</TYPE>
+			</VODML>
+		</PARAM>
+	</GROUP>
+	<GROUP>
+		<VODML>
+			<TYPE>vodml-map:Model</TYPE>
+		</VODML>
+		<PARAM name="url" datatype="char" arraysize="*" value="http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/vodml-map/vodml-map.vo-dml.xml">
+			<VODML>
+				<ROLE>vodml-map:Model.url</ROLE>
+				<TYPE>ivoa:anyURI</TYPE>
+			</VODML>
+		</PARAM>
+		<PARAM name="name" datatype="char" arraysize="*" value="vodml-map">
+			<VODML>
+				<ROLE>vodml-map:Model.name</ROLE>
+				<TYPE>ivoa:string</TYPE>
+			</VODML>
+		</PARAM>
+	</GROUP>
+	<GROUP>
+		<VODML>
+			<TYPE>vodml-map:Model</TYPE>
+		</VODML>
+		<PARAM name="url" datatype="char" arraysize="*" value="http://saada.unistra.fr/voexamples/dali/vodml/Composition/query">
+			<VODML>
+				<ROLE>vodml-map:Model.url</ROLE>
+				<TYPE>ivoa:anyURI</TYPE>
+			</VODML>
+		</PARAM>
+		<PARAM name="identifier" datatype="char" arraysize="*" value="ivo://ivoa.org/dm/sample/Composition/1.0">
+			<VODML>
+				<ROLE>vodml-map:Model.identifier</ROLE>
+				<TYPE>ivoa:anyURI</TYPE>
+			</VODML>
+		</PARAM>
+		<PARAM name="name" datatype="char" arraysize="*" value="Composition">
+			<VODML>
+				<ROLE>vodml-map:Model.name</ROLE>
+				<TYPE>ivoa:string</TYPE>
+			</VODML>
+		</PARAM>
+	</GROUP>
+	<RESOURCE ID="standalone_objects"/><!--
+	No standalone object in this VOTable
+	-->
+	<RESOURCE ID="table_objects">
+		<TABLE><!--
+			VODML mapping
+			-->
+			<GROUP ID="_flight">
+				<VODML>
+					<TYPE>Association:base.Flight</TYPE>
+				</VODML>
+				<FIELDref ref="_number">
+					<VODML>
+						<ROLE>vodml-map:ObjectTypeInstance.ID</ROLE>
+					</VODML>
+				</FIELDref>
+				<FIELDref ref="_number">
+					<VODML>
+						<ROLE>Association:base.Flight.Number</ROLE>
+					</VODML>
+				</FIELDref><!-- 
+				Reference to another group mapping the content of the collection -->
+				<GROUP ID="_passengers">
+					<VODML>
+						<ROLE>Association:base.Flight.Passengers</ROLE>
+						<TYPE>vodml-map:GROUPref</TYPE>
+					</VODML>
+				</GROUP>
+			</GROUP><!--
+			Native data
+			-->
+			<FIELD name="Number" ID="_number" datatype="char" arraysize="*">
+				<DESCRIPTION>Number of the flight</DESCRIPTION>
+			</FIELD>
+			<FIELD name="Destination" ID="_destination" datatype="char" arraysize="*">
+				<DESCRIPTION>Destination</DESCRIPTION>
+			</FIELD>
+			<DATA>
+				<TABLEDATA>
+					<TR>
+						<TD>AF1234</TD>
+						<TD>Trieste</TD>
+					</TR>
+				</TABLEDATA>
+			</DATA>
+		</TABLE>
+		<TABLE><!--
+			VODML mapping. Passenger data are inh this second table
+			The clas Passenger is mapped as well as the cross reference to the Flight at Passengers collection 
+			-->
+			<GROUP ref="_passengers">
+				<VODML>
+					<ROLE>vodml-map:ObjectTypeInstance.container</ROLE>
+					<TYPE>vodml-map:ORMReference</TYPE>
+				</VODML>
+				<FIELDref ref="_flight_number">
+					<VODML>
+						<ROLE>vodml-map:Identifier.field</ROLE>
+					</VODML>
+				</FIELDref>
+			</GROUP>
+			<GROUP>
+				<VODML>
+					<TYPE>Association:base.Passenger</TYPE>
+				</VODML>
+				<FIELDref ref="_flight_number">
+					<VODML>
+						<ROLE>vodml-map:ObjectTypeInstance.ID</ROLE>
+					</VODML>
+				</FIELDref>
+				<FIELDref ref="_flight_number">
+					<VODML>
+						<ROLE>Association:base.Passenger.FlighNumber</ROLE>
+					</VODML>
+				</FIELDref>
+				<FIELDref ref="_name">
+					<VODML>
+						<ROLE>Association:base.Passenger.FullName</ROLE>
+					</VODML>
+				</FIELDref>
+			</GROUP><!--
+			Native data
+			-->
+			<FIELD name="FlightNumber" ID="_flight_number" datatype="char" arraysize="*">
+				<DESCRIPTION>Flight Number</DESCRIPTION>
+			</FIELD>
+			<FIELD name="Name" ID="_name" datatype="char" arraysize="*">
+				<DESCRIPTION>Passenger name</DESCRIPTION>
+			</FIELD>
+			<DATA>
+				<TABLEDATA>
+					<TR>
+						<TD>AF1234</TD>
+						<TD>Gerard</TD>
+					</TR>
+					<TR>
+						<TD>AF1234</TD>
+						<TD>Mark</TD>
+					</TR>
+					<TR>
+						<TD>AF1234</TD>
+						<TD>Omar</TD>
+					</TR>
+					<TR>
+						<TD>AF1234</TD>
+						<TD>Tom</TD>
+					</TR>
+					<TR>
+						<TD>AF1234</TD>
+						<TD>Laurent</TD>
+					</TR>
+				</TABLEDATA>
+			</DATA>
+		</TABLE>
+	</RESOURCE>
+</VOTABLE>


More information about the Volutecommits mailing list