PlainSave - Data Structure Documentation
This page provides examples cases of correct and incorrect data structure.
- Data structure consists of three columns - ID, Tag and Value.
- There are two patterns:
Pattern 1 (ID|tag|"value")
ID|tag|subtag||"value"
0|Red|"0"
1|Blue|"0"
2|Green|"0"
Pattern 2 (ID|tag|subtag||"value")
ID|tag|subtag||"value"
3|Colored|Red||"0"
4|Colored|Blue||"0"
5|Colored|Green||"0"
Rules:
-
General:
- Header (ID|tag|subtag||"value") must not be altered in any way.
-
IDs
- IDs must be sequential unique numbers stating from zero (0, 1, 2...).
- IDs must not be surrounded double quotes or contain any other characters or spaces
-
Tags
- Tags can be either unique or shared.
- Spaces are allowed.
-
Value
- Value has two use patterns (see above).
- Value must be surrounded by quotes regardless of the pattern
- Value can hold an additional tag, separated by a subtag ("||"). In this case, only the latter part should be within quotes.
Example 1 (OK)
0|Red|"0"
Example 2 (OK)
0|Colored|Red||"0"
Example 3 (OK)
0|"Colored"|Red||"0"
Example 4 (OK)
0|"Colored"|"Red"||"0"
Example 5 (X)
0|Red|0
Reason: Value must be in quotes.
Example 6 (X)
0|Colored|Red||0
Reason: Value must be in quotes.
Example 7 (X)
"0"|Colored|Red||"0"
Reason: ID must not have quotes or any extra characters.
Example 8 (X)
1|Colored|Red|"0"
Reason: ID must start from 0.