KenBlackman
Hi, I'm making progress in starting to get my head around the JSON export format. I'm down to just a few questions.

In links.json the objects look like this:

{
"ThoughtIdA":"9c983ad9-cf64-45ba-ae6e-87991c737b63",
"ThoughtIdB":"c7dffcee-a702-4471-9400-62e4fff4733a",
"Kind":1,
"Relation":1,
"Direction":-1,
"Meaning":5,
...
}


I'm wondering about Kind, Relation, Direction, and Meaning. For each of these, what are the possible values and what to they mean?

Thanks!

--Ken
Quote
mcaton
Ken,

I appreciate your interest in TheBrain and taking things to the next level with our JSON export. Unfortunately, we do not offer any support or JSON training at this time.  The export option is there for those that have JSON knowledge in their wheelhouse, but no documentation is currently available. Of course I'll certainly leave the post up if another JSON user happens to chime in.

Thank you,
Matt
Quote
KenBlackman
Ok then I'll keep it strictly to bugs. 😏 Presumably since export, and export to JSON, is a documented feature, it can be expected to work correctly. I have a bug (not related to the above) for which I'll create a separate ticket.
Quote
Harlan
Hi Ken

Sorry I missed your post earlier. The JSON export is what is used for syncing and may other features so it is used heavily and does work very reliably. Hopefully your issue was addressed by support. Here is the info you requested:

Relation

  • NoValue = 0,
  • Child = 1,
  • Parent = 2,
  • Jump = 3,
  • Sibling = 4,

Direction - Binary flags

  • OneWay = 4, // x1xx, 1 means One-Way Link;
  • DirectionBA = 2, // xx1x, 0 means A > B, 1 means B</s>>A, isBackward
  • IsDirected = 1, // xxx1, 1 means Is-Directed; xxx0 means Not-Directed

Meaning

  • Normal = 1,
  • InstanceOf = 2, // Type (A) to Normal Thought (B)
  • TypeOf = 3, // Super Type (A) to Type (B)
  • HasEvent = 4,
  • HasTag = 5, // Tag (A) to Normal or Type Thought (B)
  • System = 6,
  • SubTagOf = 7, // Super Tag (A) to Tag (B)

Kind

  • Normal = 1,
  • Type = 2,
Regards,
-Harlan
Quote
Harlan
Here is a more complete list of some of the less obvious properties in the exported json files:

Thoughts.json

ACType

  • Public = 0,
  • Private = 1,

Kind

  • Normal = 1,
  • Type = 2,
  • Tag = 4,

Links.json

Relation

  • NoValue = 0,
  • Child = 1,
  • Parent = 2,
  • Jump = 3,
  • Sibling = 4,

Direction - Binary flags

  • OneWay = 4, // x1xx, 1 means One-Way Link;
  • DirectionBA = 2, // xx1x, 0 means A -> B, 1 means B -> A, isBackward
  • IsDirected = 1, // xxx1, 1 means Is-Directed; xxx0 means Not-Directed

Meaning

  • Normal = 1,
  • InstanceOf = 2, // Type (A) to Normal Thought (B)
  • TypeOf = 3, // Super Type (A) to Type (B)
  • HasEvent = 4,
  • HasTag = 5, // Tag (A) to Normal or Type Thought (B)
  • System = 6,
  • SubTagOf = 7, // Super Tag (A) to Tag (B)

Kind

  • Normal = 1,
  • Type = 2,

Attachments.json

Type

  • InternalFile = 1,
  • ExternalFile = 2,
  • ExternalUrl = 3,
  • NotesV9 = 4, // HTML-based notes from TheBrain 9 and 10
  • Icon = 5,
  • NotesAsset = 6,
  • InternalDirectory = 7,
  • ExternalDirectory = 8,
  • SubFile = 9,
  • SubDirectory = 10,
  • SavedReport = 11,
  • MarkdownImage = 12,
Regards,
-Harlan
Quote
KenBlackman
@Harlan thank you so much, this is incredibly helpful. 🙏
Quote
NickMilner
Cheers!
Quote

Newsletter Signup  Newsletter        Visit TheBrain Blog   Blog       Follow us on Twitter   Twitter       Like Us on Facebook   Facebook         Watch Us on Youtube  YouTube       

TheBrain Mind Map & Mindmapping Software     Download TheBrain Mind Mapping Software