A resource with MRID f1769930-9aeb-11e5-91da-b8763fd99c5f is represented in the SVG with id idf1769930_45_9aeb_45_11e5_45_91da_45_b8763fd99c5f i.e.
- the word
id is prepended
- is replaced with the code _45_
To enable scenarios where the user clicks on a diagram element then asks questions about the corresponding PSR, it will be easier if the SVG id is nearly the same as the MRID.
- CIM XML already uses a convention like
rdf:about="#_f1769930-9aeb-11e5-91da-b8763fd99c5f where _ is prepended
- I'm not sure what is the syntax of SVG id's; Gemini tells me "begins with a letter (A-Z or a-z) and can be followed by any number of letters, digits (0-9), hyphens (-), underscores (_), colons (:), and periods (.)" but I'm pretty sure it can begin with
_
Is it possible to use _<mrid> as the id?
(Note: in our case the semantic URNs are urn:uuid:f1769930-9aeb-11e5-91da-b8763fd99c5f but it's still easier not to deal with the code _45_)
A resource with MRID
f1769930-9aeb-11e5-91da-b8763fd99c5fis represented in the SVG with ididf1769930_45_9aeb_45_11e5_45_91da_45_b8763fd99c5fi.e.idis prepended-is replaced with the code_45_To enable scenarios where the user clicks on a diagram element then asks questions about the corresponding PSR, it will be easier if the SVG id is nearly the same as the MRID.
rdf:about="#_f1769930-9aeb-11e5-91da-b8763fd99c5fwhere_is prepended_Is it possible to use
_<mrid>as the id?(Note: in our case the semantic URNs are
urn:uuid:f1769930-9aeb-11e5-91da-b8763fd99c5fbut it's still easier not to deal with the code_45_)