Method : POST

URI : /graph/<graph_table_name>/triple

Body :

{"sub":{"label":"<label>","name":"<name>","prop":{}},"pred":{"rel":"<rel>","prop":{}},"obj":{"label":"<label>","name":"<name>","prop":{}}}

Example

curl -H "Content-Type: application/json" -d'{"sub":{"label":"person","name":"rajiv","prop":{"city":"bangalore"}},"pred":{"rel":"WORKS_IN","prop":{"startyear":1997}}, "obj":{"label":"company","name":"microsoft","prop":{"role":"MD India"}}}' -X POST http://192.168.1.105:18080/graph/mygraph/triple

Response

{
   "msg": "success"
}