gchq / Gaffer

A large-scale entity and relation database supporting aggregation of properties
Apache License 2.0
1.75k stars 354 forks source link

Gh-3222: Add OpenCypher translator to GafferPop #3225

Closed tb06904 closed 1 month ago

tb06904 commented 1 month ago

This integrates the opencypher translator into GafferPop to allow passing a cypher query in a with() step. This takes the query and translates it into a Gremlin traversal to then run as normal in GafferPop. Added some limited testing to ensure it is functional but more extensive testing of the translator is already carried out in the opencypher repo.

Also fixes small bug where the limit for GetAllElements was missed on some methods in GafferPop.

Related issue

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.00%. Comparing base (b8813d3) to head (65d49e7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #3225 +/- ## ============================================= + Coverage 66.98% 67.00% +0.02% Complexity 2558 2558 ============================================= Files 912 912 Lines 29370 29386 +16 Branches 3275 3276 +1 ============================================= + Hits 19674 19691 +17 Misses 8252 8252 + Partials 1444 1443 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.