Skip to main content

Parsing instructions

This doc is describing the parsing/import instructions used in the google sheet tables meant to be imported to inkVisitor DDB1.

Basics

The first four rows of the google sheet table (designated for parsing+import to inkVisitor DDB1) form parsing header.

The foundational part of import instructions parsing instruction keywords  (e.g. discard, inside, ...), sitting in the 4th row. 

The rows are:

  1. comment row - anything can be here, it is for humans
  2. target variable row, for parameters of relational instructions, (e.g. "id")
  3. target type row,  for parameters of relational instructions (e.g. "R0002")
  4. parsing keyword  (e.g. "referece_part"), main information what to do with the column data
  5. the label of the column

image.png

Generally, there are three types of instructions

  • simple, they do not need other parameters (e.g. inside, discard)
  • relational,  they specify relational data and need other parameters (e.g. propvalue, relation)
  • special,  they are specified in natural language in the comment row

Here are all possible keywords:

simpleinside, discard, hooked-inside
relationalrelation, reference_part, propvalue, proptype, proptype_2nd, propvalue_2nd, hooked-relation
specialspecial

All columns in the table meant for parsing and import should have an instruction header!

Meaning of the parsing instruction keywords

Simple

insidethe content in the column are meant to be directly in the entity objects, e.g. "label"
discardthe content in the column are just ignored
hooked-insidethe content in the column is meant to be part of

 

Relational

Special