Skip to content
Snippets Groups Projects
Select Git revision
  • fb336095d328f9513e6f53ea906720ddb3cf9097
  • main default protected
  • develop
  • feature/cypher-query-chaining
4 results

query-conversion

Geurtjens,D. (Douwe Geurtjens)'s avatar
Geurtjens,D. (Douwe Geurtjens) authored
Big merge

See merge request !1
fb336095
History

Query Converter

This is the query-conversion package. It holds the code that translates the JSON of the visual query to the selected database language. There are currently two implementations, one for the Arango Query Language and one for Cypher.

Creating a new converter

import "git.science.uu.nl/graphpolaris/query-conversion"

queryservice := cypher.NewService()

Converting a query

A query can be made by providing the JSON of the visual query and feeding it into the ConvertQuery function.

query, err := queryservice.ConvertQuery(JSONquery)

Creating a mock converter

import "git.science.uu.nl/graphpolaris/query-conversion"

mockService := NewMockService()