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.md
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,16 +37,21 @@ The tool mainly uses 3 resources:
37
37
38
38
## Usage
39
39
40
-
Currently the tool has 4 sections, namely Home, Viewer, Compare, Github. GitHub links to this repository.
40
+
Currently only the **Viewer** is available for use. **Home** is a landing page and **GitHub** links to this repository.
41
41
42
42
### Viewer
43
-
* An **Upload Schema** button that opens a modal to upload file from the local file system.
44
-
* A **Canvas** where the schema is represented. The canvas allows one to zoom-in and zoom-out, move one node at a time and move the entire structure. There is a **reload** icon on the top right corner of the canvas that resets the graph to its original position. Nodes can be clicked to show subtrees of children and participants.
45
-
* A **JSON viewer** that gives the json view of the schema. This viewer allows editing of the schema which in turn updates the graph. The viewer allows 4 main funtionalities.
46
-
***Copy**: A "Copy-to-Clipboard" icon shows up on every object of the json structure which allows one to copy the entire value. For object, number and string, it copies the value assigned to the property. For arrays, it copies all the entries in the list.
47
-
***Add**: A "+" icon signifies adding an entry. Within objects, it expects a key and initialize it with "NULL" which can then be edited to the required value. In arrays, it expects a value in the form of an object or a string.
48
-
***Edit**: Selecting "notepad-with-pen" icon allows editing the value of the respective key. This option is missing in arrays.
49
-
***Delete**: Clicking on "X" icon will delete that entry in the object. Using it in array will remove the entire object and reduce the length of the list by 1.
50
-
51
-
For an interactive [demo](https://mac-s-g.github.io/react-json-view/demo/dist/).
52
-
* A **SideBar** opens up on the left side of the canvas giving information about the selected node. This window opens only when a node is right-clicked. It gives the details about the nodes like name, id, description, comments, explanation from TA1, importance etc. These information will only be visible if they are mentioned in the schema.
43
+
-**Upload Schema** to upload a JSON file from your local file system, and **download** it when you are done with curation.
44
+
-**Canvas** shows a graphical representation of the uploaded JSON file. The canvas allows for zoom and node drag-and-drop. **Reloading** the canvas is supported with a reload icon on the top right corner of the canvas. Nodes can be clicked to show subtrees of children nodes and participants.
45
+
-**JSON Editor**[[1]](https://github.com/josdejong/jsoneditor/tree/master) showing the uploaded JSON. Editing the JSON will update the graph in the canvas. Functionalities include:
46
+
-**⚠ A bug crashes the website when a field with an empty value is instantiated, so *please duplicate existing fields* instead of adding, for example, empty strings when adding new information.**
47
+
-**Expand and Collapse All** lists and dictionaries of the JSON.
48
+
-**Sort contents**
49
+
-**History** for accidents.
50
+
-**Search Bar** to locate events more easily.
51
+
-**Drag** to move fields and their values between lists and dictionaries.
52
+
-**Templates** of events, children, participants, etc. for easier curation.
53
+
-**Duplication**
54
+
-**Deletion**
55
+
- A **Sidebar** is available on the left side of the canvas giving information about the selected node. This window opens only when a node is right-clicked. It gives the details about the node, such as its name, id, description, comments, explanation from TA1, importance, etc. All information is directly taken from the JSON.
56
+
---
57
+
[[1]](https://github.com/josdejong/jsoneditor/tree/master) A web-based tool to view, edit, format, and validate JSON by Jos de Jong
SDF v1.3 | Notes on curation fields and where to get them. Some descriptions from SDF documentation
3
+
---
4
+
-[Curation](#curation)
5
+
-[SDF v1.3 | Notes on curation fields and where to get them. Some descriptions from SDF documentation](#sdf-v13--notes-on-curation-fields-and-where-to-get-them-some-descriptions-from-sdf-documentation)
6
+
-[Events](#events)
7
+
-[Participants](#participants)
8
+
-[Children](#children)
9
+
-[Entities](#entities)
10
+
-[Relations](#relations)
11
+
12
+
---
13
+
Generally one event has at least 2 references in the JSON: as an event and as a child of some other event. The event reference gives more specific information about the event (node information), while the child reference simply links the event to its parent and its siblings (edge information).
14
+
15
+
## Events
16
+
⚠ denotes required fields.
17
+
- ⚠ `@id`: `prefix:Events/<unique-5-digit-number>/<anything>`, The 5-digit number is unique per event and belongs to the Events list.
-`description` or `comment`: human-readable description.
21
+
- Generally only the first event uses `description`, all other events seem to use `comment`.
22
+
- It appears that this is where all container nodes have the comment `container node`.
23
+
-`qnode` and `qlabel`: q-node from Wikidata. `qnode` denotes the QID and `qlabel` denotes the name, eg. [disease outbreak (Q3241045)](https://www.wikidata.org/wiki/Q3241045)
24
+
-`minDuration` and `maxDuration`: minimum and maximum duration of the event.
25
+
-`goal`: string for TA2 defining when the event achieves a goal
26
+
- (⚠) `ta1explanation`: Explanation of the event. Required for events without children.
27
+
-`privateData`:
28
+
-`template`: ?
29
+
-`repeatable`: whether the event can occur multiple times.
30
+
-`importance`: [0, 1.0] represents importance. Also present in the child reference for the event.
31
+
- (⚠) `participants`: [participants](#participants) of an event. Required when there are no children.
32
+
-`children`: [children](#children) of an event.
33
+
- (⚠) `children_gate`: logical processing of node's children. Can be `and`, `or`, or `xor`. Required when there are children.
34
+
35
+
## Participants
36
+
-`@id`: `prefix:Participants/<unique-5-digit-number>/event@id_participantName`; the 5-digit number is unique per participant and belongs to the Participants list.
37
+
-`roleName`: taken from the XPO overlay. ask for the JSON.
38
+
-`entity`: @id reference to [entity](#entities)
39
+
40
+
## Children
41
+
-`child`: @id reference to event
42
+
-`comment`: human-readable description.
43
+
-`optional`: whether an event is optional.
44
+
-`importance`: [0, 1.0] represents importance of the event in the subevent.
45
+
-`outlinks`: list of @ids of other events. Generally the next event in the sequence.
46
+
47
+
## Entities
48
+
Forms coreference links between events. For example, if two different events have participants with the same `victim` entity, they are referencing the same `victim`.
49
+
- ⚠ `@id`: `prefix:Entities/<unique-5-digit-number>`; the 5-digit number is unique per entity and belongs to the Entities list.
50
+
- ⚠ `name`: human-readable label
51
+
- ⚠ `qnode` and `qlabel`: q-node from Wikidata. `qnode` denotes the QID and `qlabel` denotes the name, eg. [disease outbreak (Q3241045)](https://www.wikidata.org/wiki/Q3241045)
52
+
53
+
## Relations
54
+
Specifies event-event / entity-entity relations.
55
+
- ⚠ `relationSubject`: @id reference to event / entity
56
+
- ⚠ `relationPredicate`: Wikidata q-node or p-node
57
+
- ⚠ `relationObject`: @id reference to event / entity
58
+
- ⚠ `@id`: `prefix:Relations/<unique-5-digit-number>`; the 5-digit number is unique per entity and belongs to the Relations list.
0 commit comments