Does anyone know if there is any graph database platform, or system, in which one could embed a code in a node? For example, can one embed codes in a node in JanusGraph?
Asked
Active
Viewed 242 times
-1
-
is this code arbitrary ? – Remario Jan 11 '18 at 23:57
-
That's a fair question--but not here. This site is not about answering "Is there any library that does X" type questions. Answers here are earned by having done a certain amount of due dillegence to find (by other means) and actually try solutions. – elc Jan 12 '18 at 01:03
-
In the title, you wrote "embedded code", but in the question, "embed a code". Are you asking about embedding source code to be executed or a classification code that has meaning to your application? – Allan Jan 12 '18 at 17:22
2 Answers
1
In JanusGraph, you can store code as a String
for a vertex property, then use Groovy to evaluate and execute the code during your traversal. There isn't a built-in Gremlin step to do this, so you'd have to use a lambda step (Groovy closure).

Jason Plurad
- 6,682
- 2
- 18
- 37
-
1I posted an example on [gremlin-users](https://groups.google.com/forum/m/?source=mog&gl=us#!topic/gremlin-users/EdDFS8SCnHU) – Jason Plurad Jan 12 '18 at 21:17
0
Yea you can try LevelGraph. LevelGraph is a Graph Database. Unlike many other graph database, LevelGraph is built on the uber-fast key-value store LevelDB through the powerful LevelUp library. You can use it inside your node.js application or in any IndexedDB-powered Browser.

Remario
- 3,813
- 2
- 18
- 25