Home | Trees | Indices | Help |
|
---|
|
Common code for new-style Data Model support.
In particular, this defines a hierachy of Annotation objects. The annotation of DaCHS tables is an ObjectAnnotation, the other Annotation classes (conceptually, all are key-value pairs) make up their inner structure.
Classes | |
AnnotationBase A base class for of structs. |
|
TableRelativeAnnotation A base class for annotations that must be adapted or discarded when an annotation is copied. |
|
AtomicAnnotation An annotation of an atomic value, i.e., a key-value pair. |
|
DatatypeAnnotation An annotation for a datatype. |
|
ObjectAnnotation An annotation for an object. |
|
CollectionAnnotation A collection contains 0..n things of the same type. |
Functions | |||
|
|||
|
|||
|
Variables | |
VODML_NAME =
|
|
__package__ =
|
Function Details |
a context manager to control the type currently serialised in a VOTable. ctx is a VOTable serialisation context (that we liberally hack into).
|
completes roleName to a full (standard) vo-dml id. This is based on what the containerTypeSet context manager leaves in the VOTable serialisation context ctx. |
returns modelname, package (None for the empty package), name for a VO-DML type name. Malformed names raise a ValueError. >>> parseTypeName("dm:type") ('dm', None, 'type') >>> parseTypeName("dm:pck.type") ('dm', 'pck', 'type') >>> parseTypeName(":malformed.typeid") Traceback (most recent call last): ValueError: ':malformed.typeid' is not a valid VO-DML type name |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |