[Volute] r3527 - trunk/projects/dm/vo-dml/models/sample/EnumLiteral

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


Author: lmichel
Date: Tue Sep  6 17:36:13 2016
New Revision: 3527

Log:
Basic model containing a simple EnumLiteral field.
The directory contains a dummy annotated VOTable showing how this feature can be mapped.

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

Added: trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.vo-dml.xml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.vo-dml.xml	Tue Sep  6 17:36:13 2016	(r3527)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ This simple model defines an Enumeration of energy bands which are used to characterized a composite image
+ Each image is made with 3 components (RGB) each one defined by both a band and an URL
+ 
+ New document created with EditiX at Mon Aug 29 13:38:03 CEST 2016
+-->
+<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>EnumLiteral</name>
+	<description>This DM snipet shows a basic composition example: Wings are part of the plane</description>
+	<title>VO-DML data model snipet</title>
+	<version>1.0</version>
+	<lastModified>2016-08-29T10: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><!--
+		Enumeration of energy bands -->
+		<enumeration>
+			<vodml-id>base.energyBand</vodml-id>
+			<name>enum</name>
+			<literal>
+				<vodml-id>base.enum.xray</vodml-id>
+				<name>Xray</name>
+			</literal>
+			<literal>
+				<vodml-id>base.enum.visible</vodml-id>
+				<name>Visible</name>
+			</literal>
+			<literal>
+				<vodml-id>base.enum.infrared</vodml-id>
+				<name>IR</name>
+			</literal>
+		</enumeration><!-- 
+		DataType describing an image component -->
+		<dataType>
+			<vodml-id>base.imageComponent</vodml-id>
+			<name>ImageComponent</name>
+			<attribute>
+				<vodml-id>ImageComponent.URL</vodml-id>
+				<name>URL</name>
+				<datatype>
+					<vodml-ref>ivoa:string</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+			<attribute>
+				<vodml-id>ImageComponent.band</vodml-id>
+				<name>band</name>
+				<datatype>
+					<vodml-ref>EnumLiteral:base.energyBand</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+		</dataType><!--
+		ObjectType describing a composiet image  -->
+		<objectType>
+			<vodml-id>base.imageComposite</vodml-id>
+			<name>ImageComposite</name>
+			<attribute>
+				<vodml-id>base.imageComposite.redComponent</vodml-id>
+				<name>redComponent</name>
+				<datatype>
+					<vodml-ref>EnumLiteral:base.imageComponent</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+			<attribute>
+				<vodml-id>base.imageComposite.greenComponent</vodml-id>
+				<name>greenComponent</name>
+				<datatype>
+					<vodml-ref>EnumLiteral:base.imageComponent</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+			<attribute>
+				<vodml-id>base.imageComposite.blueComponent</vodml-id>
+				<name>blueComponent</name>
+				<datatype>
+					<vodml-ref>EnumLiteral:base.imageComponent</vodml-ref>
+				</datatype>
+				<multiplicity>
+					<minOccurs>1</minOccurs>
+					<maxOccurs>1</maxOccurs>
+				</multiplicity>
+			</attribute>
+		</objectType>
+	</package>
+</vo-dml:model>

Added: trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.vo-dml.xml.svrlt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.vo-dml.xml.svrlt	Tue Sep  6 17:36:13 2016	(r3527)
@@ -0,0 +1,49 @@
+<?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/EnumLiteral.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: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/EnumLiteral.vo-dml.xml"/>
+  <svrl:fired-rule context="objectType|dataType|enumeration|primitiveType"/>
+  <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/EnumLiteral.vo-dml.xml"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/EnumLiteral.vo-dml.xml"/>
+  <svrl:active-pattern document="file:/home/michel/vodml/testbench/models/EnumLiteral.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/attribute | dataType/attribute"/>
+  <svrl:fired-rule context="attribute/multiplicity"/>
+  <svrl:fired-rule context="objectType/attribute | dataType/attribute"/>
+  <svrl:fired-rule context="attribute/multiplicity"/>
+</svrl:schematron-output>
\ No newline at end of file

Added: trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.vo-dml.xml.validation-report.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.vo-dml.xml.validation-report.txt	Tue Sep  6 17:36:13 2016	(r3527)
@@ -0,0 +1,6 @@
+
+-------
+error:
+-------
+Super type EnumLiteral:first.Identity of objectType first.Person is not an object type but a 'dataType'
+    
\ No newline at end of file

Added: trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.votable.xml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/projects/dm/vo-dml/models/sample/EnumLiteral/EnumLiteral.votable.xml	Tue Sep  6 17:36:13 2016	(r3527)
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--  
+Example of a VOTable annotated with VODML elements mapping its contents to the 
+Composition 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 modes 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/EnumLiteral/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/EnumLiteral/1.0">
+			<VODML>
+				<ROLE>vodml-map:Model.identifier</ROLE>
+				<TYPE>ivoa:anyURI</TYPE>
+			</VODML>
+		</PARAM>
+		<PARAM name="name" datatype="char" arraysize="*" value="EnumLiteral">
+			<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="_composite">
+				<VODML>
+					<TYPE>EnumLiteral:base.imageComposite</TYPE>
+				</VODML>
+				<GROUP ID="_red_component">
+					<VODML>
+						<ROLE>EnumLiteral:base.imageComposite.redComponent</ROLE>
+						<TYPE>EnumLiteral:base.imageComponent</TYPE>
+					</VODML>
+					<FIELDref ref="_red_url">
+						<VODML>
+							<ROLE>EnumLiteral:base.imageComponent.URL</ROLE>
+						</VODML>
+					</FIELDref>
+					<FIELDref ref="_red_band">
+						<VODML>
+							<ROLE>EnumLiteral:base.imageComponent.band</ROLE>
+						</VODML>
+					</FIELDref>
+				</GROUP>
+				<GROUP ID="_green_component">
+					<VODML>
+						<ROLE>EnumLiteral:base.imageComposite.greenComponent</ROLE>
+						<TYPE>EnumLiteral:base.imageComponent</TYPE>
+					</VODML>
+					<FIELDref ref="_green_url">
+						<VODML>
+							<ROLE>EnumLiteral:base.imageComponent.URL</ROLE>
+						</VODML>
+					</FIELDref>
+					<FIELDref ref="_green_band">
+						<VODML>
+							<ROLE>EnumLiteral:base.imageComponent.band</ROLE>
+						</VODML>
+					</FIELDref>
+				</GROUP>
+				<GROUP ID="_blue_component">
+					<VODML>
+						<ROLE>EnumLiteral:base.imageComposite.blueComponent</ROLE>
+						<TYPE>EnumLiteral:base.imageComponent</TYPE>
+					</VODML>
+					<FIELDref ref="_blue_url">
+						<VODML>
+							<ROLE>EnumLiteral:base.imageComponent.URL</ROLE>
+						</VODML>
+					</FIELDref>
+					<FIELDref ref="_blue_band">
+						<VODML>
+							<ROLE>EnumLiteral:base.imageComponent.band</ROLE>
+						</VODML>
+					</FIELDref>
+				</GROUP>
+			</GROUP><!--
+			Native data
+			-->
+			<FIELD name="URL" ID="_red_url" datatype="char" arraysize="*">
+				<DESCRIPTION>Image red omponent URL</DESCRIPTION>
+			</FIELD>
+			<FIELD name="band" ID="_red_band" datatype="char" arraysize="*">
+				<DESCRIPTION>Image red component band</DESCRIPTION>
+			</FIELD>
+			<FIELD name="URL" ID="_green_url" datatype="char" arraysize="*">
+				<DESCRIPTION>Image green component URL</DESCRIPTION>
+			</FIELD>
+			<FIELD name="band" ID="_green_band" datatype="char" arraysize="*">
+				<DESCRIPTION>Image green component band</DESCRIPTION>
+			</FIELD>
+			<FIELD name="URL" ID="_blue_url" datatype="char" arraysize="*">
+				<DESCRIPTION>Image blue component URL</DESCRIPTION>
+			</FIELD>
+			<FIELD name="band" ID="_blue_band" datatype="char" arraysize="*">
+				<DESCRIPTION>Image blue component band</DESCRIPTION>
+			</FIELD>
+			<DATA>
+				<TABLEDATA>
+					<TR>
+						<TD>http://infrared.image.com</TD>
+						<TD>IR</TD>
+						<TD>http://visible.image.com</TD>
+						<TD>Visible</TD>
+						<TD>http://he.image.com</TD>
+						<TD>Xray</TD>
+					</TR>
+				</TABLEDATA>
+			</DATA>
+		</TABLE>
+	</RESOURCE>
+</VOTABLE>


More information about the Volutecommits mailing list