gatrad
gatrad
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
@Florian Hockmann Thanks
13 replies
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
@Florian Hockmann Thank you for such a detailed answer. one more doubt I have on type of values I should store for example, i.e. lets say my Vertices are "Lev1" and "Lev2" etc. Now for each of those Vertices. I need to store properties like "id", "version" , "complexFieldMaps", "vertexCreatedBy",... so on and so forth. Now some of the properties like "id", "version" will have String, Integer type value (primitive data types), but properties like "complexFieldMaps" I need to store JSON doc as value. is it allowed in Janusgraph OR should we model our data in some other way rather than storing custom jsons as vertex properties' value? Note that our READ queries will just need to get all properties of any given vertex.
13 replies
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
@Florian Hockmann As for the data model , you are correct. What I want to know is in janusgraph is it ok to store various fields of json as vertex property and represent relations block as edge? The query which i will be doing on data is 1. get full data hierarchy (with all vertexs+ attributes and its related vertexs+attributes) 2. get vertex individually 3. fetch vertexes data with some attribute based sorting on vertex data (like order by some attribute in sql)
13 replies
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
@Florian Hockmann Sorry for confusion by asking multi-faceted question Clarification : I am not expecting community members to write code for me. 1. on spring boot, I am looking for any reference sample spring-boot based api implementation which is leveraging janusgraph and cassandra for creation/update/delete/read of some very simple and elementory graph.
13 replies
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
@Florian Hockmann Please let me know if I am pursuing in right direction when i am thinking to use JanusGraph kind of solution for storing and retriving json documents which are having hierarchical relationships
13 replies
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
Lev 2 { "entries": { "_class": "com.dto.db.Content", "topLevelDomain": "trust", "type": "Lev2", "id": "L2-01", "version": 1, "region": "XX", "state": "EDIT", "properties": { "pId14": "zzz", "pId15": "yyy", "pId16": "xxx" }, "relations": { "parents": [ { "id": "L1-01", "type": "Lev1" } ], "children": [ { "id": "L3-01", "type": "Lev3" } ] }, "log": { "createdBy": "abc", "createdAt": "2022-11-14 05:50:57" } } }
13 replies
JJanusGraph
Created by gatrad on 12/26/2023 in #questions
suggest an example to write spring-boot based rest api using janusgraph
Lev 1 { "entries": { "_class": "com.dto.db.Content", "topLevelDomain": "trust", "type": "Lev1", "id": "L1-01", "version": 1, "region": "XX", "state": "EDIT", "properties": { "pId81": "aaa", "pId82": "bbb", "pId83": "ccc" }, "relations": { "children": [ { "id": "L2-01", "type": "Lev2" } ] }, "log": { "createdBy": "abc", "createdAt": "2022-11-14 05:50:57" } } }
13 replies