On this page

Add triple into a graph table

Add triple into a graph table

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":{}}}
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"
}
Was this article helpful to you? Yes No