How to upload rdf data(turtle or RDF/XML) format to janus graph in bulk . #2313
Unanswered
Arpan03jain
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Just to link a different discussion on the same topic. #2297 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Arpan03jain — have you taken a look at the docs on batch loading data into JanusGraph and followed those suggestions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have data in RDF(ttl) format. It is having around 6 million triplets. Currently, I have used rdf2gremlin python script for this conversion but it's taking to much time i.e. for 10k records it took around 1 hour. I am using Scylla DB as a Janus graph backend. Below is the python code I am using.
from rdf2g import setup_graph
DEFAULT_LOCAL_CONNECTION_STRING = "ws://localhost:8182/gremlin"
g = setup_graph(DEFAULT_LOCAL_CONNECTION_STRING)
import rdflib
import pathlib
OUTPUT_FILE_LAM_PROPERTIES = pathlib.Path("path/to/ttl/file/.ttl").resolve()
rdf_graph = rdflib.Graph()
rdf_graph.parse(str(OUTPUT_FILE_LAM_PROPERTIES), format="ttl")
Same RDF data in neo4j is taking around only 10 mins to load the whole data. But I want to use the Janus graph.
Kindly suggest to me the best way to upload bulk RDF data to Janus graph using python or java.
Beta Was this translation helpful? Give feedback.
All reactions