forked from kbase/narrative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
narrative_object.spec
61 lines (51 loc) · 1.03 KB
/
narrative_object.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
KBase Narrative Object definition.
A narrative document is just an IPython Notebook version 3 JSON doc with
some extra metadata fields to support KBase specific requirements.
Here is an trivial example narrative doc that contains a single empty code cell
{
nbformat: 3
nbformat_minor: 0,
metadata: {
format: "ipynb",
creator: "kbasetest",
ws_name: "kbasetest_home",
name: "Untitled",
type: "Narrative",
description: "",
data_dependencies: [ ]
},
worksheets: [
{
cells: [
{
collapsed: false,
input: "",
outputs: [ ],
language: "python",
metadata: { },
cell_type: "code"
}
],
metadata: { }
}
],
}
*/
module KBaseNarrative {
typedef UnspecifiedObject Metadata;
typedef structure {
Metadata metadata;
string cell_type;
} Cell;
typedef structure {
list<Cell> cells;
Metadata metadata;
} Worksheet;
typedef structure {
int nbformat;
int nbformat_minor;
list<Worksheet> worksheets;
Metadata metadata;
} Narrative;
};