You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+13-45Lines changed: 13 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,30 +15,6 @@ Design principles
15
15
- Properties that allow a ``null`` value can be omitted.
16
16
- Define a `JSON graph schema`_ for content validation purposes.
17
17
18
-
.. _properties:
19
-
20
-
Common Properties
21
-
-----------------
22
-
23
-
.. _id property:
24
-
25
-
**id property**
26
-
27
-
An `id` property is a primary key for an object (see Objects_) that is unique for the object type. Its value is defined as a *JSON string* for flexibility.
28
-
29
-
**label property**
30
-
31
-
A `label` property provides a text display for an object. Its value is defined as a *JSON string*.
32
-
33
-
**type property**
34
-
35
-
A `type` property provides a classification for an object. Its value is defined as a *JSON string*.
36
-
37
-
**metadata property**
38
-
39
-
A `metadata` property allows for custom data on an object. Its values is defined as a *JSON object*.
40
-
41
-
42
18
.. _objects:
43
19
44
20
Objects
@@ -52,7 +28,10 @@ A node object represents a node in a graph.
52
28
53
29
**node properties**
54
30
55
-
- Includes all `Common Properties`_
31
+
- An `id` property is a primary key for an object (see Objects_) that is unique for the object type. Its value is defined as a *JSON string* for flexibility.
32
+
- A `label` property provides a text display for an object. Its value is defined as a *JSON string*.
33
+
- A `type` property provides a classification for an object. Its value is defined as a *JSON string*.
34
+
- A `metadata` property allows for custom data on an object. Its values is defined as a JSON object.
56
35
57
36
.. _edge object:
58
37
@@ -62,10 +41,11 @@ An edge object represents an edge in a graph.
62
41
63
42
**edge properties**
64
43
65
-
- Includes all `Common Properties`_
66
44
- A `source` property provides the `id` value of the source `node object`_. Its value is defined as a *JSON string*.
45
+
- A `relation` property provides the interaction between `source` and `target` nodes. Its value is defined as a *JSON string*.
67
46
- A `target` property provides the `id` value of the target `node object`_. Its value is defined as a *JSON string*.
68
47
- A `directed` property provides the edge mode (e.g. directed or undirected). Its value is *JSON true* for directed and *JSON false* for undirected. The edge direction is determined by *graph.directed* property if not present.
48
+
- A `metadata` property allows for custom data on an object. Its values is defined as a JSON object.
69
49
70
50
.. _graph object:
71
51
@@ -75,20 +55,19 @@ A graph object represents a single conceptual graph.
75
55
76
56
**graph properties**
77
57
78
-
- Includes all `Common Properties`_
58
+
- A `type` property provides a classification for an object. Its value is defined as a *JSON string*.
59
+
- A `label` property provides a text display for an object. Its value is defined as a *JSON string*.
79
60
- A `directed` property provides the graph mode (e.g. directed or undirected). Its value is *JSON true* for directed and *JSON false* for undirected. This property default to *JSON true* indicating a directed graph.
80
61
- A `nodes` property provides the nodes in the graph. Its value is an array of `node object`_.
81
62
- An `edges` property provides the edges in the graph. Its value is an array of `edge object`_.
63
+
- A `metadata` property allows for custom data on an object. Its values is defined as a JSON object.
82
64
83
65
.. _graphs object:
84
66
85
67
**graphs object**
86
68
87
69
A graphs object groups zero or more `graph object`_ into one JSON document.
88
70
89
-
**graphs properties**
90
-
91
-
- Includes all `Common Properties`_. The `id` is not required.
92
71
- The `graphs object`_ is defined as a *JSON array*.
0 commit comments