graph-explorer
graph-explorer copied to clipboard
Remove filter for all vertex types
Description
When searching across all vertex types, the query that is generated will include a list of all the known vertex types. This filter is unnecessary and can lead to slower query performance.
To be safe, each query language protects against nodes with zero vertex types in different ways.
- Gremlin does not support vertices without labels
- OpenCypher supports empty labels, so we ensure at least one label exists
- SPARQL allows resources without classes, but the query already filters down to only the resources with a class defined
Validation
- Verified in all query languages
Related Issues
- Resolves #594
- Resolves #595
- Resolves #596
- Resolves #533
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. - [x] I have covered new added functionality with unit tests if necessary.
- [ ] I have added an entry in the
Changelog.md
.