3 ms·
What's the story on inserting data into Cayley? I think every single code example I have seen on it only shows traversing graphs with it. Also, if you don't mi
by arupauqa 11y ago
What's the story on inserting data into Cayley? I think every single code example I have seen on it only shows traversing graphs with it.
Also, if you don't mind me asking, how does it not being a property graph affect modelling your data and queries? At a glance it seems that queries would get significantly more complex if you wish to take several properties of a vertex into account.
- owen11 11y agoCayley can be run in two ways: as HTTP service or as a Go library that you import from your Go app. To insert into Cayley when it's running as HTTP service you can do something like: `curl http://localhost:64210/api/v1/write http://localhost:64210/api/v1/write -d '[{ "subject": "Krissy", "predicate": "loves", "object": "Justin Trudeau"}]'`. To insert in the 'embedded' mode you can do: https://github.com/google/cayley/wiki/Cayley-Go-API-(as-a-Library-in-your-own-projects) https://github.com/google/cayley/wiki/Cayley-Go-API-(as-a-Li.... Join #cayley on freenode and https://groups.google.com/forum/#!forum/cayley-users https://groups.google.com/forum/#!forum/cayley-users and get help from our community.