Datamodel

class pyvo.registry.Datamodel(dmname)[source]

Bases: Constraint

A constraint on the adherence to a data model.

This constraint only lets resources pass that declare support for one of several well-known data models; the SQL produced depends on the data model identifier.

Known data models at this point include:

  • obscore – generic observational data

  • epntap – solar system data

  • regtap – the VO registry.

DM names are matched case-insensitively here mainly for historical reasons.

Parameters
dmnamestring

A well-known name; currently one of obscore, epntap, and regtap.