sqlg icon indicating copy to clipboard operation
sqlg copied to clipboard

Simple representation of a schema

Open JPMoresmau opened this issue 8 years ago • 1 comments

I think it was mentioned before, but it would be good to have a simple representation (easily mappable to JSON) of a schema. I would like to express easily which vertex labels I want, with which properties, and edges between them. Such a simple structure could be given then to the topology to ensure it exists. by having a simple structure with a JSON representation we can easily store it in configuration, etc. Maybe something already exists, or a standard.

JPMoresmau avatar Sep 26 '17 10:09 JPMoresmau

I think long ago we mentioned GraphQL with regards to schema definition. I briefly looked at GraphQL and at the time it did not really look to me like a graph at all as I did not find any mention of edges as a first class citizen. Seemed more a OO like api with pointer to objects.

There is also TinkerPop's xml format. As the schema is itself a graph we can already export/import it with their io api. I have not tried it but it might work.

pietermartin avatar Sep 26 '17 11:09 pietermartin