I apologize if this has already been answered, however I could not find any information regarding this on the internet.
In Obsidian, each id is a 64 bit hex number. This makes sense to me, because there is an extremely large number of possible id's whilst keeping a standard known length and contents.
Where my understanding of this falters is in the ambiguity of the spec. In Obsidian, if I set the node id to be any arbitrary string, (and update the corresponding edges), Obsidian handles this just fine, and the JSON Canvas spec does not mention at all the contents of an id (except for that each id must be unique).
What this means is that other applications who use this spec may generate id's in a manner different from Obsidian. As someone currently attempting to read and write this format in C, I was planning on storing the id in a 64 bit unsigned integer as strings can be quite annoying in C, however I am not sure If I should do this due to the ambiguity in the structure of an id.
I don't mind whether a change is made to the spec or not, I would just like clarification on this matter.
I apologize if this has already been answered, however I could not find any information regarding this on the internet.
In Obsidian, each id is a 64 bit hex number. This makes sense to me, because there is an extremely large number of possible id's whilst keeping a standard known length and contents.
Where my understanding of this falters is in the ambiguity of the spec. In Obsidian, if I set the node id to be any arbitrary string, (and update the corresponding edges), Obsidian handles this just fine, and the JSON Canvas spec does not mention at all the contents of an id (except for that each id must be unique).
What this means is that other applications who use this spec may generate id's in a manner different from Obsidian. As someone currently attempting to read and write this format in C, I was planning on storing the id in a 64 bit unsigned integer as strings can be quite annoying in C, however I am not sure If I should do this due to the ambiguity in the structure of an id.
I don't mind whether a change is made to the spec or not, I would just like clarification on this matter.