karthikraju
karthikraju
JJanusGraph
Created by karthikraju on 10/15/2024 in #questions
Unable to use text predicates like 'textContains' in gremlin python
I know that it's already mentioned in the janusgraph documentation that these predicates are not supported by gremlin python because they aren't supported by tinkergraph either. I saw in this thread: https://discord.com/channels/981533699378135051/1176188416078139503 that we should write our own serializer and if it's the only way to get it working or is there any alternative
3 replies
JJanusGraph
Created by karthikraju on 10/2/2024 in #questions
Unable to run two instances of janusgraph using scylla as the storage backend in docker
I am trying to setup two different instances of janusgraph with scylla as the backend but I am not able to get it working.
2 replies
JJanusGraph
Created by karthikraju on 9/24/2024 in #questions
Need advice on setting up janusgraph as a microservice
I am trying to build a recommendation system using janusgraph. I already have setup one janusgraph instance with an index backend for just the product and its related entities. Now, I need to add the users to the mix as well. But, I am confused as to whether introduce the User vertices in the product graph instance or should make a separate graph altogether. The reason for wanting a new instance for the users is that, there is a community feature that is included as well where creating personalities based on that user graph will becomes crucial. If I do make two different services what would be a good way of communicating between the two graphs?
4 replies
JJanusGraph
Created by karthikraju on 9/16/2024 in #questions
Syncing data between MongoDB and Janusgraph
My primary data source is MongoDB where collections are already. I need a way to sync the data from MongoDB to Jansugraph. The manual way of doing this is using MongoDB oplogs but I would like to know if there are any other better options before I get into that.
1 replies
JJanusGraph
Created by karthikraju on 9/13/2024 in #questions
Indexes are not being used even after enabling
I have setup one composite index, one mixed index and one relation index. Although all of them have the 'ENABLED' status, the queries are still doing a full scan. I have attached the schema. Here is the query that I am trying to execute:
gremlin> g.V().has('_id', '66b0dc9f2bd5e4709894fc29').profile()
==>Traversal Metrics
Step Count Traversers Time (ms) % Dur
=============================================================================================================
JanusGraphStep([],[_id.eq(66b0dc9f2bd5e4709894f... 1 1 101.875 100.00
constructGraphCentricQuery 0.103
constructGraphCentricQuery 0.017
GraphCentricQuery 101.534
\_condition=(_id = 66b0dc9f2bd5e4709894fc29)
\_orders=[]
\_isFitted=false
\_isOrdered=true
\_query=[]
scan 101.341
\_query=[]
\_fullscan=true
\_condition=VERTEX
>TOTAL - - 101.875 -
gremlin> g.V().has('_id', '66b0dc9f2bd5e4709894fc29').profile()
==>Traversal Metrics
Step Count Traversers Time (ms) % Dur
=============================================================================================================
JanusGraphStep([],[_id.eq(66b0dc9f2bd5e4709894f... 1 1 101.875 100.00
constructGraphCentricQuery 0.103
constructGraphCentricQuery 0.017
GraphCentricQuery 101.534
\_condition=(_id = 66b0dc9f2bd5e4709894fc29)
\_orders=[]
\_isFitted=false
\_isOrdered=true
\_query=[]
scan 101.341
\_query=[]
\_fullscan=true
\_condition=VERTEX
>TOTAL - - 101.875 -
9 replies
JJanusGraph
Created by karthikraju on 8/16/2024 in #questions
Is there a way to connect janusgraph to an existing opensearch instance as the index backend?
I have an opensearch instance running already which I want to also use as the index backend for janusgraph.
janusgraph.index.search.backend: elasticsearch
janusgraph.index.search.hostname: <my-opensearch-hostname>:9200
janusgraph.index.search.backend: elasticsearch
janusgraph.index.search.hostname: <my-opensearch-hostname>:9200
But this doesn't work and I get the error: java.lang.IllegalArgumentException: Unsupported Elasticsearch server major version: 2.14.0 Any help would be appreciated. Thank you!
2 replies
JJanusGraph
Created by karthikraju on 8/8/2024 in #questions
What would be the ideal way to set up deep learning on janusgraph data?
I have setup a simple knowledge graph on janusgraph and I wanted to use the data to train a deep learning model. I found DGL(https://dglke.dgl.ai/doc/index.html) library which seems to be used mostly. I am not sure how I should go about this. DGL accepts training data as a simple comma seperated strings which defines the from_vertex, relationship and the to_vertex ex: "London", "isCapitalOf", "UK" I have multiple relationships and eventually want to get embeddings of the data and use them for recommendations with vector similarity search. Any help would be appreciated. Thank you
5 replies