gavo.dm.annotations module

The specialised annotations for the various entities of VO-DML.

As it’s needed for the definition of models, the annotation of immediate atoms is already defined in common; also see there for the base class of these.

class gavo.dm.annotations.ColumnAnnotation(name, paramlike, instance)[source]

Bases: ParamLikeAnnotation

An annotation of a table column.

These reference DaCHS columns.

getVOT(ctx, instance)[source]
class gavo.dm.annotations.ForeignKeyAnnotation(name, fk, instance)[source]

Bases: TableRelativeAnnotation

An annotation pointing to an annotation in a different table.

These are constructed with the attribute name and the foreign key RD object.

copy(newInstance)[source]
getVOT(ctx, instance)[source]
class gavo.dm.annotations.GroupRefAnnotation(name, objectReferenced, instance)[source]

Bases: TableRelativeAnnotation

An annotation always referencing a group that’s not lexically within the parent.

copy(newInstance)[source]
getVOT(ctx, instance)[source]
class gavo.dm.annotations.ParamAnnotation(name, paramlike, instance)[source]

Bases: ParamLikeAnnotation

An annotation of a table param.

NOTE: in getVOT, container MUST be the table itself, as the table has params of its own and does not share tableDef’s one.

getVOT(ctx, container)[source]
class gavo.dm.annotations.ParamLikeAnnotation(name, paramlike, instance)[source]

Bases: TableRelativeAnnotation

copy(newInstance)[source]
property value