Skip to content

Commit e4a6948

Browse files
committed
update MIVOT snippets
1 parent d827db6 commit e4a6948

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+246
-502
lines changed

mivot/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@
22

33
This folder contains MIVOT snippet for all model instances.
44

5-
They are intended to help building annotations
5+
They are intended to help building annotations
6+
7+
Can be populated with the following command:
8+
9+
```
10+
pip install mivot-validator
11+
mivot-snippet-model file://`pwd`/../vo-dml/desc.mango.vo-dml.xml .
12+
```
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<INSTANCE dmrole="" dmtype="desc:AssociatedMangoObject">
2+
<!-- This class gives the role of a link associating 2 \texttt{MangoObject} together." -->
3+
<INSTANCE dmrole="desc:AssociatedMangoObject.semantics" dmtype="mango:VocabularyTerm"/>
4+
<ATTRIBUTE dmrole="desc:AssociatedMangoObject.description" dmtype="ivoa:string" ref="@@@@@" value=""/>
5+
<INSTANCE dmrole="desc:AssociatedMangoObject.mangoObject" dmtype="mango:MangoObject"/>
6+
</INSTANCE>

mivot/desc/desc.BitField.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<INSTANCE dmrole="" dmtype="desc:BitField">
2+
<!-- Property for which each possible value is represented by a bit,
3+
so that multiple states can be contained in the same integer value.
4+
The possible values are defined in the associated \texttt{StatusValues},
5+
which must correspond to a bit pattern (each value must be a power of 2).
6+
This constraint is not enforced by the model." -->
7+
<INSTANCE dmrole="mango:Status" dmtype="mango:Status"/>
8+
</INSTANCE>

mivot/desc/desc.Color.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<INSTANCE dmrole="" dmtype="desc:Color">
2+
<!-- Property that describes a color of the \texttt{MangoObject}.
3+
The color is not an intrinsic property of the MANGO object,
4+
but a value relative to two filters or energy bands.
5+
" -->
6+
<INSTANCE dmrole="mango:PhotometricProperty" dmtype="mango:PhotometricProperty"/>
7+
<INSTANCE dmrole="desc:Color.colorDef" dmtype="mango:ColorDef"/>
8+
</INSTANCE>

mivot/desc/desc.ColorDef.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<INSTANCE dmrole="" dmtype="desc:ColorDef">
2+
<!-- Physical color definition giving the way a color is calculated (magnitude difference or hardness ratio)
3+
and the filters on which the color is based.
4+
In case of hardness ratio, the energy bands might be modeled as instances of \texttt{Phot:PhotometryFilter}
5+
with a square transfert function." -->
6+
<INSTANCE dmrole="desc:ColorDef.definition" dmtype="mango:ColorDefinition"/>
7+
<INSTANCE dmrole="desc:ColorDef.high" dmtype="Phot:PhotometryFilter"/>
8+
<INSTANCE dmrole="desc:ColorDef.low" dmtype="Phot:PhotometryFilter"/>
9+
</INSTANCE>

mivot/desc/desc.DataLink.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<INSTANCE dmrole="" dmtype="desc:DataLink">
2+
<!-- This property describes static links pointing to some external data.
3+
This allows services that do not implement DataLink services to expose linked data as
4+
flattened DataLink (1.1) responses." -->
5+
<INSTANCE dmrole="mango:Property" dmtype="mango:Property"/>
6+
<ATTRIBUTE dmrole="desc:DataLink.content_type" dmtype="ivoa:string" ref="@@@@@" value=""/>
7+
<ATTRIBUTE dmrole="desc:DataLink.access_url" dmtype="ivoa:anyURI" unit="" ref="@@@@@" value=""/>
8+
<ATTRIBUTE dmrole="desc:DataLink.content_qualifier" dmtype="ivoa:string" ref="@@@@@" value=""/>
9+
<ATTRIBUTE dmrole="desc:DataLink.local_semantics" dmtype="ivoa:string" ref="@@@@@" value=""/>
10+
</INSTANCE>

mivot/desc/desc.EpochPosition.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<INSTANCE dmrole="" dmtype="desc:EpochPosition">
2+
<!-- This class is a view of \texttt{Astronomical Coordinates and Coordinate
3+
Systems} \citep{2022ivoa.specQ1004R} components that have been put together to form a consistent description
4+
of the position of an object moving over time.
5+
It consists of a celestial position, a proper motion, a radial velocity
6+
and a parallax.
7+
All components share the same coordinate systems for both time and space coordinates.
8+
9+
\begin{itemize}
10+
\item Both position and proper motion reuse \texttt{coords:LonLatPoint} elements.
11+
\item The space coordinate system is imported from \texttt{coords:spaceSys}.
12+
\item The time coordinate system is imported from \texttt{coords:timeSys}.
13+
\end{itemize}
14+
15+
The \texttt{EpochPosition} error is modeled by specific classes supporting covariance
16+
and/or correlation between components.
17+
18+
All individual components have their own units which must be consistent to each others.
19+
This consistency is not enforced by the model.
20+
21+
Possible correlations between \texttt{EpochPosition} parameters are handle by the \texttt{EpochPositionCorrelation} class." -->
22+
<INSTANCE dmrole="mango:Property" dmtype="mango:Property"/>
23+
<ATTRIBUTE dmrole="desc:EpochPosition.longitude" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
24+
<ATTRIBUTE dmrole="desc:EpochPosition.latitude" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
25+
<ATTRIBUTE dmrole="desc:EpochPosition.parallax" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
26+
<ATTRIBUTE dmrole="desc:EpochPosition.radialVelocity" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
27+
<ATTRIBUTE dmrole="desc:EpochPosition.pmLongitude" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
28+
<ATTRIBUTE dmrole="desc:EpochPosition.pmLatitude" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
29+
<ATTRIBUTE dmrole="desc:EpochPosition.epoch" dmtype="coords:Epoch"/>
30+
<ATTRIBUTE dmrole="desc:EpochPosition.pmCosLat_applied" dmtype="ivoa:boolean" unit="" ref="@@@@@" value=""/>
31+
<INSTANCE dmrole="desc:EpochPosition.errors" dmtype="mango:EpochPositionErrors"/>
32+
<INSTANCE dmrole="desc:EpochPosition.correlations" dmtype="mango:EpochPositionCorrelations"/>
33+
<INSTANCE dmrole="desc:EpochPosition.spaceSys" dmtype="coords:SpaceSys"/>
34+
<INSTANCE dmrole="desc:EpochPosition.timeSys" dmtype="coords:TimeSys"/>
35+
</INSTANCE>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<INSTANCE dmrole="" dmtype="desc:EpochPositionCorrelations">
2+
<!-- Class holder for the correlation coefficients between the \texttt{EpochPosition} components." -->
3+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.longitudeParallax" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
4+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.latitudeParallax" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
5+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.pmLongitudeParallax" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
6+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.pmLatitudeParallax" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
7+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.longitudeLatitude" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
8+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.pmLongitudePmLatitude" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
9+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.latitudePmLatitude" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
10+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.latitudePmLongitude" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
11+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.longitudePmLatitude" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
12+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.longitudePmLongitude" dmtype="ivoa:real" unit="" ref="@@@@@" value=""/>
13+
<ATTRIBUTE dmrole="desc:EpochPositionCorrelations.isCovariance" dmtype="ivoa:boolean" unit="" ref="@@@@@" value=""/>
14+
</INSTANCE>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<INSTANCE dmrole="" dmtype="desc:EpochPositionErrors">
2+
<!-- Class holder for the errors of the EpochPosition attributes" -->
3+
<INSTANCE dmrole="desc:EpochPositionErrors.parallax" dmtype="mango:error.PropertyError1D"/>
4+
<INSTANCE dmrole="desc:EpochPositionErrors.radialVelocity" dmtype="mango:error.PropertyError1D"/>
5+
<INSTANCE dmrole="desc:EpochPositionErrors.position" dmtype="mango:error.PropertyError2D"/>
6+
<INSTANCE dmrole="desc:EpochPositionErrors.properMotion" dmtype="mango:error.PropertyError2D"/>
7+
</INSTANCE>

mivot/desc/desc.Label.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<INSTANCE dmrole="" dmtype="desc:Label">
2+
<!-- Free text label seen as a MANGO object property." -->
3+
<INSTANCE dmrole="mango:Property" dmtype="mango:Property"/>
4+
<ATTRIBUTE dmrole="desc:Label.text" dmtype="ivoa:string" ref="@@@@@" value=""/>
5+
</INSTANCE>

0 commit comments

Comments
 (0)