Made TUI references optional in relation description
Change-Id: I70aabd013d13881241ea9d913c9d22b5bedb5784
diff --git a/misc/payloads.md b/misc/payloads.md
index 6e69794..8201038 100644
--- a/misc/payloads.md
+++ b/misc/payloads.md
@@ -96,10 +96,15 @@
character offsets of relations with element parts
are also stored in integer.
-Left-part TUI, right-part TUI, and relation TUI can be optionally stored in
+Left-part TUI reference, right-part TUI reference, and relation TUI can
+e optionally stored in
payloads. A TUI is only necessary when an attribute refers to it, for example
to match a relation span with a specific attribute.
+If at least one TUI is set (either the left-part TUI reference,
+he right-part TUI reference, or the relation TUI), all TUIs have to be set.
+If the TUIs do not refer to anything, they have to be set to ```0```.
+
1) Term to term relation has
* 1 byte for PTI,
@@ -110,9 +115,10 @@
For example:
- >:dependency$<b>32<i>3<s>5<s>4<s>3
+ >:dependency$<b>32<i>3<s>5<s>0<s>3
-has a token as the right part at (end) position 3, the source TUI 5, the target TUI 4 and the relation TUI 3.
+has a token as the right part at (end) position 3, the source TUI reference 5,
+no target TUI reference and the relation TUI 3.
2) Term to element relation has
@@ -121,7 +127,7 @@
* 1 integer for the end element offset of the right part,
* 1 integer for the start position of the right part,
* 1 integer for the end position of the right part,
-* and 3 TUIs as above.
+* and 0-3 TUIs as above.
For example:
@@ -137,7 +143,7 @@
* 1 integer for the end element offset of the left part,
* 1 integer for end position of the left part,
* 1 integer for end position of the right part, and
-* 3 TUIs as above.
+* and 0-3 TUIs as above.
For example:
@@ -156,7 +162,7 @@
* 1 integer for end position of the left part,
* 1 integer for the start position of the right part,
* 1 integer for end position of the right part,
-* and 3 TUIs as above.
+* and 0-3 TUIs as above.
For example: