Render node & edge labels as they appear in the database#996
Merged
Render node & edge labels as they appear in the database#996
Conversation
f2329ae to
52750d3
Compare
andreachild
approved these changes
Jun 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This changes the default behavior of Graph Explorer to render the node & edge labels and attribute names as they are configured in the database.
Before this change, Graph Explorer would transform the label to be more human readable. But with the addition of the query editor, this felt like a disconnect from what the user is expected to type in the query vs what is rendered in the results.
The user is still able to override this default behavior. They can set a custom node/edge label that will then be rendered instead of the database label. And for RDF databases, prefixes are still applied.
Other Changes
The neighbor options tests were rewritten as they were not very comprehensive and they needed to be updated for the display label change. This led to the addition of the vertex type config callback in order to remove the null check in the map. This ensures that even if a neighbor's type is not in the schema it will show up in the neighbor types drop down.
I also tweaked some of the test helpers to make the test code a bit more concise and consistent.
Validation
Code Review Hints
Related Issues
Check List
license.
pnpm checksto ensure code compiles and meets standards.pnpm testto check if all tests are passing.Changelog.md.