obspy.core.event.resourceid.ResourceIdentifier.get_quakeml_uri_str
- ResourceIdentifier.get_quakeml_uri_str(authority_id='local')[source]
Returns an id with a valid QuakeML URI.
If no valid QuakeML is possible a ValueError is raised.
- Parameters
authority_id (str, optional) – The base url of the resulting string. Defaults to
"local"
.- Returns
A new ResourceIdentifier instance with a valid quakeml uri.
>>> res_id = ResourceIdentifier("some_id") >>> print(res_id.get_quakeml_uri_str()) smi:local/some_id >>> # Did not change the actual resource id. >>> print(res_id.id) some_id