This repository contains a parser.py and a sample.graphml file to showcase how to import the graphml schema and data into TigerGraph DB.
1- Install the project dependencies :
user@box:~$ python3 -m venv venv
user@box:~$ source venv/bin/activate
(venv) user@box:~$ pip install -r requirements.txt
2- Edit the parser.py default values:
Variable | Default | Desctiption |
---|---|---|
DEBUG | 0 | The Debug Mode ( 0 : N , 1 : Y ) |
fileGraphML | sample.graphml | a sample file that goes with the project |
EDGE_NAME | EDGE_NAME | the name of the Edge in the Graph |
NODE_NAME | GraphMLNode | the name of the node in the graph |
host | http://127.0.0.1 | the tigergraph host ( Ex: https://solution.i.tgcloud.io) |
username | tigergraph | the TigerGraph user |
password | tigergraph | the TigerGraph password |
tg_version | 3.1.0 | the TigerGraph version |
after Installing the dependencies and configuring the variables, use the following command :
(venv) user@box:~$ python parser.py