ThoughtKnot

Notation starter

A beginner's guide to writing a ThoughtKnot graph in plain notation. You write things and the links between them, in a note, in a form close to how you would sketch it on paper. ThoughtKnot draws the picture from what you type, and your typing stays as you wrote it.

This guide follows the semantic layers design. Where this guide and the design disagree, the design wins. Every example here is read by the project's notation reader each time the repository is checked, so the guide cannot drift from the notation.

The whole idea in four lines

Things
Alice is a Person with age: 42   // a thing, its kind, a property
Acme is a Company
Alice -> Acme : works at         // a link, with its type
Alice <-> Bob : married to       // a two-way link

A name, then an arrow, then a name. Say what kind something is with is a or is an, and give it details after with. Anything after // is a note to yourself.

The layers, at a glance

A graph can hold more than things and links. Each extra job has its own block in the note, named on the block's first line. You only ever learn one notation: every block is written as things, links and brackets.

5Questions · Semantic layerHow you ask the graph: saved filters and views4Numbers · Semantic modelTotals and counts, defined once3Things · Knowledge graphThe things themselves and their links: start here2Lists · TaxonomyFixed lists of choices, in a tree1Kinds · OntologyThe vocabulary: kinds, link types, propertiesBeside the stack: presentationStory · A walk through, step by stepScreen · Which picture: graph, table, boardLayout · Where each thing sitsLooks · Colour, shape, icon, badge
NumberBlockLayerWhat it holds
5QuestionsSemantic layerHow you ask the graph: saved filters and views
4NumbersSemantic modelTotals and counts, defined once
3ThingsKnowledge graphThe things themselves and their links: start here
2ListsTaxonomyFixed lists of choices, in a tree
1KindsOntologyThe vocabulary: kinds, link types, properties

Beside the stack sits presentation, in four bands. It reads every layer but changes none of them.

BandWhat it decides
StoryA walk through, step by step
ScreenWhich picture: graph, table, board
LayoutWhere each thing sits
LooksColour, shape, icon, badge

Numbers 1 to 5 run from the vocabulary at the bottom to the questions at the top. Each layer's name always comes with its colour.

Things: the knowledge graph

Things
Alice is a Person with age: 42
Alice -> Acme : works at with since: 2021
Alice: works on
  - Launch plan
  - Budget                       // Alice works on each

Kinds: the ontology

Kinds
use foaf = https://xmlns.com/foaf/0.1/    // names a library only; it is never fetched
Person is a Kind
Manager -> Person : kind of      // a Manager is a narrower kind of Person
works at is a LinkType with from: Person, to: Company
due date is a Property with of: Task, required: yes
Person matches foaf:Person       // a kind is like another kind

Lists: the taxonomy

Lists
Priority: High, Medium, Low
Region: Europe, Asia
Europe: United Kingdom, France   // entries under Europe
Asia: Turkey                     // one entry under two parents
Europe: Turkey
United Kingdom with also: [UK, Britain]
use iso@1                        // names a library
Region matches iso:regions       // the list is drawn from a standard list

Numbers: the semantic model

Numbers
total cost is a Measure with sum: cost, unit: GBP
head count is a Measure with count: Person
Region is a Dimension            // group by a list

Questions: the semantic layer

Questions
urgent is a Lens with show: Task, where: priority is High
cost by region is a Lens with show: total cost, by: Region

Presentation: four bands beside the stack

How the graph is shown, kept apart from what it means. One question each: "make it blue" is a look, and "put it on the left" is a layout. A look reads a lens, and a lens never reads a look.

Story
Onboarding: step
  1. sign up
  2. confirm
Screen
list is a Screen with as: table, show: people
Layout
Alice -> Bob : left of
Looks
urgent with colour: red, shape: diamond

Colour is never the only sign. Give a look a shape, a badge or a weight as well. A colour-only look is drawn with a badge until you pick one.

One word for one meaning

Where the design used one word for two things, it keeps one word for each. A word in code, such as type: or shape:, is a notation word and does not change here.

Words used in this guide

Names and identity

Things
Alice is a Person
alice with city: Leeds           // the same thing: case is folded in the id
Alice with also: Ali             // another name for one thing

You do not need every layer. Most notes never get past step 1, and that is fine. Add a block only when you feel the need for it.

Use these forms, skip the rest

The readers accept many ways of writing the same thing, so a typo rarely breaks anything. The help teaches one form for each job. Stick to it and every note reads alike.

Use these:

Things
a -> b                  // one way
a <-> b                 // both ways
a is a Person with age: 42  // kind and details
a -> b : works at       // spaced colon = type
Alice: works at         // a group, as an outline
  - Acme
  - Beta

These still read, but do not teach them to yourself:

Things
a --> b
a => b
a → b
a <> b
a ↔ b
a {Person, age: 42}     // brackets
a (age: 42)
a [age: 42]
a -> {b, c}             // braces group
a -{likelihood: 3}-> b  // bracket in arrow
(a:Person {age: 42})    // old GQL

Cheat sheet: the taught form for each job

BlockJobTaught form
Thingsa linka -> b
Thingsa two-way linka <-> b
Thingsno directiona - b
Thingsa thing and its kinda is a Person with age: 42
Thingsa groupAlice: works at
- Acme
- Beta
Kindsa kindPerson is a Kind
Kindsa kind treeTask -> Work : kind of
Kindsa standard matchuse foaf = https://xmlns.com/foaf/0.1/
Person matches foaf:Person
ListsentriesPriority: High, Medium, Low
Listsentries under oneAsia: Japan, Turkey
Numbersa measuretotal cost is a Measure with sum: cost, unit: GBP
Questionsa lensurgent is a Lens with show: Task, where: priority is High
Questionsa routeworks near is a Lens with show: Person
- Person -> Company -> City
StorystepsOnboarding: step
1. step 1
2. step 2
Screena screenlist is a Screen with as: table, show: people
Layouta placementa -> b : left of
Looksa looklate with colour: red, shape: diamond

A group, a route and steps are outlines: the lines after the first are indented under it, as in the examples above. The bracket forms such as a {Person, age: 42} still read.

The six marks to know

MarkMeansExample
->a link, from left to rightAlice -> Acme
is a or is angives the thing its kindAlice is a Person
withstarts the details of the thing or link before itAlice is a Person with age: 42
a colon with spacesthe link's typeAlice -> Acme : works at
a name, a colon, then a list or an outlinea group: the name links to each itemAlice: works on Launch plan, Budget
//a note to yourself, never read as dataAlice -> Acme // since spring

Worked example: one small project, every layer

One note can hold several blocks. Each block starts with a line that names the graph and the block. The app writes the second line, which says what the block is for.

Things
// graph: launch · Things · format 2
Alice is a Person
Acme is a Company
Launch plan is a Task with priority: High, cost: 1200
Budget is a Task with priority: Low, cost: 300
Alice -> Acme : works at
Alice: works on
  - Launch plan
  - Budget
Kinds
// graph: launch · Kinds · format 2
// Kinds is the ontology: the kinds of thing, the link types and the properties.
Person is a Kind
Company is a Kind
Task is a Kind
works at is a LinkType with from: Person, to: Company
priority is a Property with of: Task, values: Priority
Lists
// graph: launch · Lists · format 2
Priority is a List with order: fixed
Priority: High, Medium, Low
Numbers
// graph: launch · Numbers · format 2
total cost is a Measure with sum: cost, unit: GBP
Questions
// graph: launch · Questions · format 2
urgent is a Lens with show: Task, where: priority is High
Looks
// graph: launch · Looks · format 2
urgent with colour: red, shape: diamond

The result: a picture of Alice, Acme and two tasks. The app checks that only a Person works at a Company. Priority has to be one of three words. Total cost adds up to £1,500. Urgent tasks show as red diamonds.

Or just say it

You can type a sentence instead. The app, or the AI if you have switched it on, turns it into the notation and shows you the result. Nothing is kept until you accept it. A line the AI wrote keeps a mark that says so.

Things
Alice -> Acme : works at          // you typed: "Alice works at Acme"
Manager -> Person : kind of       // "A Manager is a kind of Person"
Lists
Priority: High, Medium, Low       // "Priority is one of High, Medium, Low"
Questions
tasks is a Lens with show: Task, where: priority is High  // "Show tasks where priority is high"
Looks
late with colour: red, weight: bold  // "Late tasks are red and bold"

Common slips, and what happens

A line that cannot be read is never lost. It stays as you typed it, gets marked, and comes with a suggestion in plain words. The rest of the graph still draws.

That last comment slip, as the reader reports it, and then each fix as the reader takes it:

Things: a problem, GN103
Alice -> Acme// since spring
Things
"Smith, Bob" -> Acme
"Coffee with milk" -> Acme
well-being -> Acme
a - b
a -> b with likelihood: 3
b is a Person
cost is 1000

Decided, coming

The owner decided these on 30 Nov 2026. The readers do not read them yet, so do not rely on them today. Each example here is marked Coming and is not checked against the reader.

Coming, not read yet: Things
- Bob is a Person with age: 42

  Joined in 2021 and leads the **design** team.

  ![Bob at the offsite](images/bob.jpg)

  - works at Acme
- Acme is a Company

Drawn from the semantic layers design, adopting the recommended readings from the review of 30 Nov 2026. The "also read" forms and old GQL keep working, so existing notes do not change. This page is the source of the notation page on the website, which is made from it: change this page, never that one.