Home | Trees | Indices | Help |
|
---|
|
object --+ | Model
a vo-dml model.
These are usually constructed using the fromPrefix constructor, which uses a built-in mapping from well-known prefix to VO-DML file to populate the model.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Methods | |||
|
|||
|
Properties | |
idIndex returns a dictionary mapping vodmlids to elementtree objects. |
|
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
returns a VO-DML model for a well-known prefix. User code should typically use the getModelFromPrefix function. |
returns a VO-DML model from src. src can either be a file name (interpreted relative to the root of DaCHS' VO-DML repository) or an open file (which will be closed as a side effect of this function). This is intended for documents using non-standard models with custom prefixes (i.e., not known to DaCHS). |
returns the element with vodmlId. This raises a NotFoundError for elements that are not present. This can be used with or without the prefix. The prefix is not validated, though. |
returns a metadata dictionary for a VO-DML element with vodmlId. This includes datatype add description. If vodmlId points to the value of a quantity, the associate unit and ucd attributes are returned as well. If the vodmlId cannot be found, a NotFoundError is raised. |
Property Details |
idIndexreturns a dictionary mapping vodmlids to elementtree objects.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |