Re: [DISCUSS] Revamp JanusGraph Management
Oleksandr Porunov <alexand...@...>
Hi,
toggle quoted message
Show quoted text
As a follow up to this thread I also think it would be great if we could use DDL for schema definition. I don't know yet the format which we should use (whether it should be gremlin query or some json / xml or something else). Is there any updates regarding Schema Management? Just to not do double work for Schema Management, I would like to know if someone was working on making DDL for schema. If so, were there any troubles? What format is better to use for schema definition? Currently I am thinking about JSON format, something like: [ { type: vertexLabel, name: myVertexLabel }, { type: edgeLabel, name: myEdgeLabel multiplicity: MANY2ONE }, { type: propertyKey, dataType: String.class name: myProperty, cardinality: LIST }, { type: compositeIndex, indexOnly: myVertexLabel, keys: [ { name: myProperty } ] }, { type: mixedIndex, keys: [ { name: myProperty, parameters: [ { key: parameterKey, value: parameterValue } ] } ] } ] I didn't think much about schema definition, so I might miss some points. If you have any thoughts / suggestions on the format or how should this feature be implemented, it would be great. Also, I didn't work with GraphQL, so will check a little bit later if that format might be used as well. Best regards, Oleksandr On Friday, February 28, 2020 at 8:30:21 PM UTC+2 fa...@... wrote:
|
|