__init__(self,
value,
ref,
applies_to,
datatype,
unit=None,
id_ref=None)
(Constructor)
| source code
|
x.__init__(...) initializes x; see help(type(x)) for signature
- Parameters:
value (string) - the value of the property
ref (string) - reference to an external resource, e.g. "NOAA:depth"
applies_to (string) - indicates the item to which a property applies to (e.g. 'node' for
the parent node of a clade, 'parent_branch' for the parent branch of
a clade, or just 'clade').
datatype (string) - the type of a property; limited to xsd-datatypes
(e.g. 'xsd:string', 'xsd:boolean', 'xsd:integer', 'xsd:decimal',
'xsd:float', 'xsd:double', 'xsd:date', 'xsd:anyURI').
unit (string (optional)) - the unit of the property, e.g. "METRIC:m"
id_ref (Id (optional)) - allows to attached a property specifically to one element (on the
xml-level)
- Overrides:
object.__init__
- (inherited documentation)
|