Skip to content

Mango support #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open

Mango support #664

wants to merge 62 commits into from

Conversation

lmichel
Copy link
Contributor

@lmichel lmichel commented Apr 10, 2025

This draft PR proposes an API that facilitates the mapping of VOTable data to the MANGO data model.

Mango is a model (VO working draft) designed to extend the description of table data in such a way that each table row can be interpreted as a Mango object (MangoObject class of the Mango data model-.
MangoObject instances consist of a property container, a description of the data origin, and links to other Mango objects (not yet implemented).

In this current implementation, only a few properties are supported (EpochPosition and Photometry), and the data origin can be added as literal values (not associated with table data).

To annotate data, the user must provide mapping dictionaries that associate model roles with column identifiers or literal values from which the code builds complete MIVOT annotations.

Complete examples can be found in pyvo/mivot/tests/test_mango_annoter.py and pyvo/mivot/tests/test_header_mapper.py.

The HeaderMapper class can help with this process. It analyzes INFO, COOSYS, TIMESYS, and FIELDS to suggest mappings that matches the current VOTable metadata.

lmichel added 30 commits April 6, 2025 16:39
Mango annotations
to make the distinction between column reference and literals
x_path_startwith works recursively
…a VODMK parsing - move constants to the glossary
…removed, shouln't be committed - documentation
@lmichel
Copy link
Contributor Author

lmichel commented May 7, 2025

I think that this PR is ready for the review.
The failing CI step is due to a Vizier service that is down, no impact on the code.

@lmichel lmichel marked this pull request as ready for review May 7, 2025 15:39
@ManonMarchand
Copy link
Member

I confirm that vizier beta server is down and wont be resuscitated before next monday

@lmichel
Copy link
Contributor Author

lmichel commented May 13, 2025

I had to push a few update to keep in sync with the last model evolution, especially the ObsDate class which was badly handled by the SkyCoord builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants