__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:
ref - reference to an external resource, e.g. "NOAA:depth"
unit - the unit of the property, e.g. "METRIC:m" (optional)
datatype - indicates the type of a property and is limited to xsd-datatypes
(e.g. 'xsd:string', 'xsd:boolean', 'xsd:integer', 'xsd:decimal',
'xsd:float', 'xsd:double', 'xsd:date', 'xsd:anyURI').
applies_to - 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').
id_ref - allows to attached a property specifically to one element (on the
xml-level). (optional)
- Overrides:
object.__init__
- (inherited documentation)
|