Skip to content
Snippets Groups Projects
user avatar
Joris authored
There are multiple files in here that will be deleted and are currently not used, but they contain code that is possibly useful
9d878436
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()