resqpy.property.PropertyKind¶
- class resqpy.property.PropertyKind(parent_model, uuid=None, title=None, is_abstract=False, example_uom=None, naming_system='urn:resqml:bp.com:resqpy', parent_property_kind='continuous', extra_metadata=None, originator=None)¶
Bases:
BaseResqpy
Class catering for RESQML bespoke PropertyKind objects.
Public Data Attributes:
resqml_type
Inherited from
BaseResqpy
resqml_type
Standard part name corresponding to self.uuid.
XML node corresponding to self.uuid.
Citation block title equivalent to self.title.
Methods:
__init__
(parent_model[, uuid, title, ...])Initialise a new bespoke property kind.
is_equivalent
(other_pk[, check_extra_metadata])Returns True if this property kind is essentially the same as the other; False otherwise.
create_xml
([add_as_part, originator, reuse])Create xml for this bespoke property kind.
Inherited from
BaseResqpy
__init__
(parent_model[, uuid, title, ...])Initialise a new bespoke property kind.
Look for an equivalent existing RESQML object and modify the uuid of this object if found.
create_xml
([add_as_part, originator, reuse])Create xml for this bespoke property kind.
append_extra_metadata
(meta_dict)Append a given dictionary of metadata to the existing metadata.
__eq__
(other)Implements equals operator; uses is_equivalent() otherwise compares class type and uuid.
__ne__
(other)Implements not equal operator.
__repr__
()String representation.
- __init__(parent_model, uuid=None, title=None, is_abstract=False, example_uom=None, naming_system='urn:resqml:bp.com:resqpy', parent_property_kind='continuous', extra_metadata=None, originator=None)[source]¶
Initialise a new bespoke property kind.
- append_extra_metadata(meta_dict)¶
Append a given dictionary of metadata to the existing metadata.
- property citation_title¶
Citation block title equivalent to self.title.
- create_xml(add_as_part=True, originator=None, reuse=True)[source]¶
Create xml for this bespoke property kind.
- is_equivalent(other_pk, check_extra_metadata=True)[source]¶
Returns True if this property kind is essentially the same as the other; False otherwise.
- property part¶
Standard part name corresponding to self.uuid.
- property root¶
XML node corresponding to self.uuid.
- try_reuse()¶
Look for an equivalent existing RESQML object and modify the uuid of this object if found.
- Returns
boolean – True if an equivalent object was found, False if not
Note
by design this method may change this object’s uuid as a side effect
- title¶
Citation title
- originator¶
Creator of object. By default, user id.
- uuid¶
Unique identifier