Skip to content

why not use MRID as SVG id? #754

@VladimirAlexiev

Description

@VladimirAlexiev

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_)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions