aws / graph-explorer

React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
https://github.com/aws/graph-explorer
Apache License 2.0
305 stars 46 forks source link

[Feature Request] Revisit node and edge labelling strategy #350

Open krlawrence opened 2 months ago

krlawrence commented 2 months ago

Community Note

Summary

This is not so much a feature request as a request to revisit an earlier design decision.

When Graph Explorer was initially designed, there was quite a bit of discussion around the casing of node and edge labels. In the end it was decided to use an uppercase first letter and subsequently lowercase for the remaining letters. While at the time it was felt this was a visually appealing experience for a user, as I use the Explorer more, I'm finding it would be better if what was displayed, mirrored exactly the way things are stored in the graph database. A concrete example follows.

If this query is run

g.addV('XYZ').as('a').
  addV('ABC').as('b').
  addE('ALPHABET').from('b').to('a').
  property('p1',123).property('p2',789)

the following graph structure is created

image

but when displayed in the Graph Explorer it is portrayed as image

where ABC has become Abc and APLHABET has become Alphabet. I'm now quite strongly of the opinion that we should reconsider this approach and actually display the labels exactly as they appear in the database. I think any user used to a domain will prefer to see the notation reflected accurately. Further, when viewing the same data in other tools, such as graph-notebook, you will see the ABC form of labelling and it's confusing to see the same graph data appear differently in different tools.