JSON Formatting
Why JSON:
- Easier for one-off actions.
- Manageable through the UI.
- May be easier to handle programmatically.
- Has an explicit structure.
VKGs and/or nodes that don't have metadata should simply omit the metadata
key-value pair.
VKGs whose metadata schema is empty will simply ignore the node's metadata.
Example .json Dataset with metadata
New Node Structure
The new node structure will be wrapped in a list:
{
"text": "Lorem ipsum dolor",
"metadata": {
"metadata1": "word",
"metadata2": "1.0"
}
}
Existing Node Structure
Existing node structure will be wrapped in a dictionary, where the primary key is the the node ID. It is randomly generated and must be used when editing nodes to associate it with the value in the database.
{
"830ace6c-0824-4ea7-a88a-1ab734a7b42d": {
"text": "Lorem ipsum dolor",
"metadata": {
"metadata1": "word",
"metadata2": "1.0"
}
}
}