Properties
A view of the properties of an entity
Methods
| Method | Description |
|---|---|
as_dict | Convert properties view to a dict. |
get | Get property value. |
get_dtype_of | Get the PropType of a property. Specifically, returns the PropType of the latest value for this property if it exists. |
items | Get a list of key-value pairs |
keys | Get the names for all properties |
values | Get the values of the properties. |
Properties
| Property | Description |
|---|---|
temporal | Get a view of the temporal properties only. |
Method Details
as_dict
Convert properties view to a dict.
get
Signature: get(key)
Get property value.
First searches temporal properties and returns latest value if it exists. If not, it falls back to static properties.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
key | str | - | the name of the property. |
Returns
| Type | Description |
|---|---|
| PropValue |
get_dtype_of
Signature: get_dtype_of(key)
Get the PropType of a property. Specifically, returns the PropType of the latest value for this property if it exists.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
key | str | - | the name of the property. |
Returns
| Type | Description |
|---|---|
| PropType |
items
Get a list of key-value pairs
keys
Get the names for all properties
Returns
| Type | Description |
|---|---|
| list[str] |
values
Get the values of the properties.
Returns
| Type | Description |
|---|---|
| list[PropValue] |
Property Details
temporal
Get a view of the temporal properties only.
Returns
| Type | Description |
|---|---|
| TemporalProperties |