obspy.core.event.ResourceIdentifier.getQuakeMLURI

ResourceIdentifier.getQuakeMLURI(authority_id=u'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.getQuakeMLURI())
smi:local/some_id
>>> # Did not change the actual resource id.
>>> print(res_id.id)
some_id