-
Notifications
You must be signed in to change notification settings - Fork 1
Repo API: Node serialization #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do we need a fourth list for {
"id": "99",
"type": "Dog",
"properties": {
"name": "Lassie"
},
"containments": {
"eyes": [
"23", "55"
]
},
"references": {
"owner": {
"34": "Joe"
}
},
"annotations": {
"character": "79"
}
} |
How do we store several children in the same role? List{
"id": "99",
"type": "Dog",
"containments": {
"eyes": [
"23", "55"
]
}
} Duplicate keys(I think JSON allows that.) {
"id": "99",
"type": "Dog",
"containments": {
"eyes": "23",
"eyes": "55"
}
} |
Rename
|
Or (Can we make a poll on GitHub?) |
Decision on Rationale: |
Has been decided to use Lists |
Annotations are postponed (#13) |
Aspects
Detailed discussions
Format
All nodes are repesented by a flat list.
All links to other nodes (both containment and reference) are represented by their id.
Each node has the following fields:
id
: The id of the nodeconcept
: Refers to the id of the type of the nodeproperties
: Map withchildren
: Map withreferences
: Map withreference
: id of the referenced node, ornull
if id of the referenced node is not availableresolveInfo
: resolve info as string, ornull
if no resolve info is availableparent
: id of parent nodeExample
Similar to example in #36, but using property/link ids
The text was updated successfully, but these errors were encountered: