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.
This logic is from my prototype work with the raw query editor. I had to support many more types of Gremlin responses, so I expanded the mapping logic.
Added entityType: 'vertex' | 'edge' to both Vertex and Edge types to aid in discriminated unions
Added __isFragment to Vertex and Edge to flag when a query returns a vertex or edge without any properties (this will allow us query for the details later)
Added recursive mapping logic for Gremlin results that will properly map nearly any data type within the query result
Validation
Validated all three query languages
Related Issues
None (code improvement)
Check List
[x] I confirm that my contribution is made under the terms of the Apache 2.0
license.
[x] I have run pnpm checks to ensure code compiles and meets standards.
[x] I have run pnpm test to check if all tests are passing.
[ ] I have covered new added functionality with unit tests if necessary.
Description
This logic is from my prototype work with the raw query editor. I had to support many more types of Gremlin responses, so I expanded the mapping logic.
entityType: 'vertex' | 'edge'
to both Vertex and Edge types to aid in discriminated unions__isFragment
to Vertex and Edge to flag when a query returns a vertex or edge without any properties (this will allow us query for the details later)Validation
Related Issues
Check List
pnpm checks
to ensure code compiles and meets standards.pnpm test
to check if all tests are passing.Changelog.md
.