Skip to content

Can nodes and edges have additional attributes? #31

Answered by arun1729
cooknl asked this question in Q&A
Discussion options

You must be logged in to vote

This is actually a good idea but currently nodes are limited to just strings. Generally in a triple-store database, everything is represented in the form of subject-predicate-object triples. So, in the case of "x called y", the attributes can be represented like this:
x called call-id
call-id name y
call-id datetime
call-id callnotes
call-id duration
... etc

call-id (can be any unique set of characters) links all the attributes together.

But I do think it would really nice to have nodes be more than just strings and be able to store attributes (a dictionary of sorts). One advantage is that attributes do not need to be made into graphs and make the "main" graph more complex than necessa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arun1729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants