obspy.core.event.base.ResourceIdentifier.get_quakeml_uri

ResourceIdentifier.get_quakeml_uri(authority_id='local')[source]

Returns the ID as a valid QuakeML URI if possible. Does not change the ID itself.

>>> res_id = ResourceIdentifier("some_id")
>>> print(res_id.get_quakeml_uri())
smi:local/some_id
>>> # Did not change the actual resource id.
>>> print(res_id.id)
some_id