Property

class pyvo.mivot.writer.Property(dmtype=None, *, dmrole=None, dmid=None, semantics={})[source]

Bases: MivotInstance

Class representing one property of a MangoInstance. MangoInstance property instances are pyvo.mivot.writer.MivotInstance augmented with a semantics block.

Parameters:
dmtypestr

dmtype of the INSTANCE (mandatory)

dmrolestr, optional (default as None)

dmrole of the INSTANCE

dmidstr, optional (default as None)

dmid of the INSTANCE

semanticsdict, optional (default as {})

Mapping of the semantic block (supported key: descripton, uri, label)

Raises:
MappingError

If dmtype is not provided