Skip to content

Commit edda2b7

Browse files
authored
Merge pull request #100 from lmichel/primitive-datetime
Primitive datetime
2 parents 6e6bbd1 + f97c1b7 commit edda2b7

23 files changed

+2159
-406
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ pom.xml.tag
5858
*.html
5959

6060
trash/*
61-
exercise*
61+
exercise*
62+
test-date

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DOCNAME = MANGO
77
DOCVERSION = 1.0
88

99
# Publication date, ISO format; update manually for "releases"
10-
DOCDATE = 2025-06-20
10+
DOCDATE = 2025-08-07
1111

1212
# What is it you're writing: NOTE, WD, PR, REC, PEN, or EN
1313
DOCTYPE = PR

doc/ivoatexmeta.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% GENERATED FILE -- edit this in the Makefile
22
\newcommand{\ivoaDocversion}{1.0}
3-
\newcommand{\ivoaDocdate}{2025-06-20}
4-
\newcommand{\ivoaDocdatecode}{20250620}
3+
\newcommand{\ivoaDocdate}{2025-08-07}
4+
\newcommand{\ivoaDocdatecode}{20250807}
55
\newcommand{\ivoaDoctype}{PR}
66
\newcommand{\ivoaDocname}{MANGO}
77
\renewcommand{\ivoaBaseURL}{https://www.ivoa.net/documents/MANGO}

doc/model.tex

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ \section{Model: mango }
218218

219219
\subsubsection{EpochPosition.obsDate}
220220
\textbf{vodml-id: EpochPosition.obsDate} \newline
221-
\textbf{type: \hyperref[sect:DateTime]{mango:DateTime}} \newline
222-
\textbf{multiplicity: 0..1} \newline
223-
Observation date expressed within the common time system if present. This attribute, if set, supersedes the epoch possibly given with the spatial coordinate system(see the above).
221+
\textbf{type: \hyperref[sect:ivoa]{ivoa:datetime}} \newline
222+
\textbf{multiplicity: 1} \newline
223+
Observation date expressed within the common time system if present. This attribute, if set, supersedes the epoch possibly given with the spatial coordinate system (see the above). Figure \ref{datetime} shows up the hierarchy of the primitive types representing the observation dates.
224224

225225
\subsubsection{EpochPosition.pmCosLat\_applied}
226226
\textbf{vodml-id: EpochPosition.pmCosLat\_applied} \newline
@@ -511,6 +511,22 @@ \section{Model: mango }
511511
\textbf{multiplicity: 0..1} \newline
512512
Label attached to the vocabulary term. This is necessary because the URI may not contain any explicit label. This was the case for the IUA vocabulary until the Registry WG introduced rewriting rules that fix the issue.
513513

514+
\subsection{year}
515+
\label{sect:year}
516+
Primitive type for observation dates expressed as a year (e.g. 2015.5).
517+
518+
\subsection{iso}
519+
\label{sect:iso}
520+
Primitive type for observation dates expressed as an ISO Date (e.g. "2025-08-07T09:29:14").
521+
522+
\subsection{mjd}
523+
\label{sect:mjd}
524+
Primitive type for observation dates expressed as a Modified Julian Date (e.g. 60288.8).
525+
526+
\subsection{jd}
527+
\label{sect:jd}
528+
Primitive type for observation dates expressed as a Julian Date (e.g. 25213).
529+
514530
\subsection{FootprintSerialization}
515531
\label{sect:FootprintSerialization}
516532

doc/model_toc.tex

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,33 @@ \section{Model: mango}
9494
\textbf{multiplicity: 0..1} \newline
9595
Label attached to the vocabulary term. This is necessary because the URI may not contain any explicit label. This was the case for the IUA vocabulary until the Registry WG introduced rewriting rules that fix the issue.
9696

97-
\section{Epoch Position Properties}
97+
\section{Date Time Types}
98+
The abstract primitive type \texttt{ivoa:datetime} has been extended to include:
99+
types that cover the most commonly used serialisations of observation dates (see figure \ref{datetime}).
100+
101+
\begin{figure}
102+
\includegraphics[width=0.7\textwidth]{../model/date.png}
103+
\caption{datetime}
104+
\label{datetime}
105+
\end{figure}
106+
107+
\subsection{mjd}
108+
\label{sect:mjd}
109+
Primitive type for observation dates expressed as a Modified Julian Date (e.g. 60288.8).
110+
111+
\subsection{jd}
112+
\label{sect:jd}
113+
Primitive type for observation dates expressed as a Julian Date (e.g. 25213).
114+
115+
\subsection{year}
116+
\label{sect:year}
117+
Primitive type for observation dates expressed as a year (e.g. 2015.5).
118+
119+
\subsection{iso}
120+
\label{sect:iso}
121+
Primitive type for observation dates expressed as an ISO Date (e.g. "2025-08-07T09:29:14").
122+
123+
\section{Epoch Position Property}
98124
The emergence of missions such as Gaia \citep{2018A&A...616A...1G}, which are capable of
99125
observing objects over long periods of time with very high astrometric accuracy,
100126
combined with great spectroscopic capabilities, making it possible to link star 3D positions
@@ -156,9 +182,9 @@ \section{Epoch Position Properties}
156182

157183
\subsubsection{EpochPosition.obsDate}
158184
\textbf{vodml-id: EpochPosition.obsDate} \newline
159-
\textbf{type: \hyperref[sect:DateTime]{mango:DateTime}} \newline
160-
\textbf{multiplicity: 0..1} \newline
161-
Observation date expressed within the common time system if present. This attribute, if set, supersedes the epoch possibly given with the spatial coordinate system(see the above).
185+
\textbf{type: \hyperref[sect:ivoa]{ivoa:datetime}} \newline
186+
\textbf{multiplicity: 1} \newline
187+
Observation date expressed within the common time system if present. This attribute, if set, supersedes the epoch possibly given with the spatial coordinate system (see the above). Figure \ref{datetime} shows up the hierarchy of the primitive types representing the observation dates.
162188

163189
\subsubsection{EpochPosition.pmCosLat\_applied}
164190
\textbf{vodml-id: EpochPosition.pmCosLat\_applied} \newline
@@ -288,22 +314,6 @@ \section{Epoch Position Properties}
288314
\textbf{multiplicity: 1} \newline
289315
Position error; can be an \texttt{Ellipse} or a \texttt{Symmetrical2D}.
290316

291-
\subsection{DateTime}
292-
\label{sect:DateTime}
293-
Data type for timestamps and their representation. Timestamps are modeled by a single value and a representation mode. There is no time scale associated with \texttt{mango:DateTime}. The scale is either imposed by the representation mode or defined by the time coordinate system relevant for the host object, usually an instance of \texttt{mango:EpochPosition}.
294-
295-
\subsubsection{DateTime.representation}
296-
\textbf{vodml-id: DateTime.representation} \newline
297-
\textbf{type: \hyperref[sect:ivoa]{ivoa:string}} \newline
298-
\textbf{multiplicity: 1} \newline
299-
Define the representation mode. The supported values are \texttt{iso} or \texttt{dateformat} for ISO dates, \texttt{year}, \texttt{jd} or \texttt{mjd}. The list of supported values could be extended in the future with new endorsed \texttt{xtype} values.
300-
301-
\subsubsection{DateTime.dateTime}
302-
\textbf{vodml-id: DateTime.dateTime} \newline
303-
\textbf{type: \hyperref[sect:ivoa]{ivoa:datetime}} \newline
304-
\textbf{multiplicity: 1} \newline
305-
The timestamp value is always given as a string. The way to process this string is given by the representation mode. It can represent an ISO date or a real value (e.g. for MJD mjd timestamps).
306-
307317
\section{Photometric and Spectroscopic Properties}
308318

309319
\subsection{Brightness}

doc/usecases.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,4 @@ \subsubsection{Xmatch tool }
237237

238238
UCDs may help in identifying the errors associated to positional columns,
239239
%as shown in table
240-
but this is not sufficient for tables with more complex cases based on multi-parameter cases.
240+
but this is not sufficient for tables with more complex cases based on multi-parameter cases.

mivot/mango/mango.EpochPosition.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,7 @@ In some cases the errors might conflict with the correlations:
6767
<ATTRIBUTE dmrole="mango:EpochPosition.radialVelocity" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
6868
<ATTRIBUTE dmrole="mango:EpochPosition.pmLongitude" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
6969
<ATTRIBUTE dmrole="mango:EpochPosition.pmLatitude" dmtype="ivoa:RealQuantity" unit="" ref="@@@@@" value=""/>
70-
<INSTANCE dmrole="mango:EpochPosition.obsDate" dmtype="mango:DateTime">
71-
<!-- Data type for timestamps and their representation.
72-
Timestamps are modeled by a single value and a representation mode.
73-
There is no time scale associated with \texttt{mango:DateTime}.
74-
The scale is either imposed by the representation mode or defined by the
75-
time coordinate system relevant for the host object,
76-
usually an instance of \texttt{mango:EpochPosition}.
77-
" -->
78-
<ATTRIBUTE dmrole="mango:DateTime.representation" dmtype="ivoa:string" ref="@@@@@" value=""/>
79-
<ATTRIBUTE dmrole="mango:DateTime.dateTime" dmtype="ivoa:datetime" unit="" ref="@@@@@" value=""/>
80-
</INSTANCE>
70+
<ATTRIBUTE dmrole="mango:EpochPosition.obsDate" dmtype="ivoa:datetime" unit="" ref="@@@@@" value=""/>
8171
<ATTRIBUTE dmrole="mango:EpochPosition.pmCosLat_applied" dmtype="ivoa:boolean" unit="" ref="@@@@@" value=""/>
8272
<INSTANCE dmrole="mango:EpochPosition.errors" dmtype="mango:EpochPositionErrors">
8373
<!-- Class holder for the errors of the EpochPosition attributes" -->

mivot/mango/mango.Footprint.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Description of the spatial extent of the MANGO object (e.g. for dust clouds).
33
Footprint is serialized as a string.
44
\begin{itemize}
5-
\item The supported serialization modes are listed in the \texttt{ShapeSerialization} enumeration.
5+
\item The supported serialization modes are listed in the \texttt{FootprintSerialization} enumeration.
66
\item If the space coordinate system is not embedded in the serialization mode, it can be defined by the \texttt{spaceSys} reference.
77
\end{itemize}" -->
88
<INSTANCE dmrole="mango:Property.semantics" dmtype="mango:VocabularyTerm">

model/EpochPosition.png

-7.16 KB
Loading

model/date.png

8.54 KB
Loading

0 commit comments

Comments
 (0)