Skip to content

Notation starter

github-actions[bot] edited this page Nov 30, 2026 · 1 revision

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

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.

Number Block Layer What it holds
5 Questions Semantic layer How you ask the graph: saved filters and views
4 Numbers Semantic model Totals and counts, defined once
3 Things Knowledge graph The things themselves and their links: start here
2 Lists Taxonomy Fixed lists of choices, in a tree
1 Kinds Ontology The vocabulary: kinds, link types, properties

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

Band What it decides
Story A walk through, step by step
Screen Which picture: graph, table, board
Layout Where each thing sits
Looks Colour, 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

  • Block: Things, the default.
  • In plain words: the people, places, tasks and ideas your note is about, and how they link up.
  • Think of it as: the sketch on the whiteboard.
  • You need it: always. It is the only block you need to start.
  • Formally: things, links and their properties, as a knowledge graph is described in the research literature.
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

  • Block: Kinds. It was called SCHEMA.
  • In plain words: the words your graph uses: what kinds of thing exist, which links are allowed between them, and what each one can hold.
  • Think of it as: the legend on a map.
  • You need it: when you want the app to catch mistakes, like a Company marked as married.
  • Formally: kinds, link types, properties and their rules, as OWL and RDFS use the word.
  • A kind tree: one kind can be a narrower kind of another, which is its wider kind. A thing of the narrower kind is also of the wider kind, as with rdfs:subClassOf. Say it with kind of. Use broader and under for lists only.
  • Matches: a kind is like another kind, here a standard term, which exports as rdfs:seeAlso.
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

  • Block: Lists. It is new.
  • In plain words: fixed lists of choices, which can nest: High, Medium, Low; or Europe, with the UK and France under it.
  • Think of it as: a drop-down menu, or a family tree of categories.
  • You need it: when the same choices come up again and again, and you want them spelt one way.
  • Formally: controlled lists of entries joined by broader and narrower, as SKOS uses the word. An entry under another is joined to the broader entry above it.
  • Matches: a list is drawn from another list, which exports as dct:source. An entry matches another entry, which exports as skos:exactMatch.
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

  • Block: Numbers. It is new.
  • In plain words: the sums you want worked out the same way every time: total cost, head count, cost per head.
  • Think of it as: the formulas row of a spreadsheet, written once and used everywhere.
  • You need it: when you report totals or counts, or group them by a list such as Region.
  • Formally: measures, calculated values and dimensions, as dbt MetricFlow and Cube use the idea.
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

  • Block: Questions. It was called QUERY.
  • In plain words: questions you ask the graph often, saved with names, such as "urgent tasks" or "cost by region". A saved question is called a lens.
  • Think of it as: a saved search, or a filter you can switch on.
  • You need it: when you keep asking the same thing, or want the AI and other tools to ask it the same way.
  • Formally: saved queries, views and governed access, as dbt and Cube use the word.
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.

Onboarding: step
  1. sign up
  2. confirm
list is a Screen with as: table, show: people
Alice -> Bob : left of
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.

  • Type. A kind is an ontology entry. A type node is a thing that instances link to by INSTANCE_OF. A link type is a kind of link. A value type is what a property holds, such as number: type: number names one. Bare "type" is not used.
  • List. A list is a Lists block list. The array in a bracket, as {tags: [red, blue]}, is "a set of values".
  • Under reads one way. skos:broader goes from the narrower entry to the broader one, as "under" is stored. Use broader and under for lists only. For kinds use "kind of", "wider kind" and "narrower kind".
  • Matches. The notation keeps one keyword, matches. Its meaning follows what it is put on. A kind is like another (rdfs:seeAlso). An entry matches another (skos:exactMatch). A list is drawn from another (dct:source).

Words used in this guide

  • Thing. One individual in the graph, such as Alice or Acme. Its name is its id.
  • Entry. One item of a list, such as High in Priority. It is never a kind and never a thing.
  • Statement. One fact the graph holds: a link between two things, or a property value on one.
  • Label. In GQL, a name tag on a node or edge, and a node may carry several. Here a kind is that label.
  • Broader. For a list, the entry above another in the tree. skos:broader goes from narrower to broader. Kinds use "wider" instead.
  • Value type. What sort of value a property holds, such as number, date or text. type: number names a value type.

Names and identity

  • The name gives the thing's id. Inside a graph, a thing's name is its id. Two names are the same id when they match under name_identity: Unicode NFC, trimming, folding case, and one space for any run of spaces and underscores.
  • also is another name for one thing. It exports as skos:altLabel.
  • SAME_AS is a link a person writes between two things, in one graph or two, to say they are one thing.
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

Your path: recommended for simple use

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.

  • Step 1, day one: just Things. Links as a -> b, kinds as a is a Person, notes after //.
  • Step 2, tidier: add types and lists. Give a link a type with -> b : works at. Add a Lists block for repeated choices.
  • Step 3, checked: add Kinds. Say what is allowed, and the app flags mistakes for you.
  • Step 4, asking: add Questions and Looks. Save a lens, and colour it with a second sign.
  • Step 5, reporting: add Numbers and Story. Totals and counts, and a step-by-step walk.

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:

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:

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

Block Job Taught form
Things a link a -> b
Things a two-way link a <-> b
Things no direction a - b
Things a thing and its kind a is a Person with age: 42
Things a group Alice: works at
- Acme
- Beta
Kinds a kind Person is a Kind
Kinds a kind tree Task -> Work : kind of
Kinds a standard match use foaf = https://xmlns.com/foaf/0.1/
Person matches foaf:Person
Lists entries Priority: High, Medium, Low
Lists entries under one Asia: Japan, Turkey
Numbers a measure total cost is a Measure with sum: cost, unit: GBP
Questions a lens urgent is a Lens with show: Task, where: priority is High
Questions a route works near is a Lens with show: Person
- Person -> Company -> City
Story steps Onboarding: step
1. step 1
2. step 2
Screen a screen list is a Screen with as: table, show: people
Layout a placement a -> b : left of
Looks a look late 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

Mark Means Example
-> a link, from left to right Alice -> Acme
is a or is an gives the thing its kind Alice is a Person
with starts the details of the thing or link before it Alice is a Person with age: 42
a colon with spaces the link's type Alice -> Acme : works at
a name, a colon, then a list or an outline a group: the name links to each item Alice: works on Launch plan, Budget
// a note to yourself, never read as data Alice -> 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.

// 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
// 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
// graph: launch · Lists · format 2
Priority is a List with order: fixed
Priority: High, Medium, Low
// graph: launch · Numbers · format 2
total cost is a Measure with sum: cost, unit: GBP
// graph: launch · Questions · format 2
urgent is a Lens with show: Task, where: priority is High
// 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.

Alice -> Acme : works at          // you typed: "Alice works at Acme"
Manager -> Person : kind of       // "A Manager is a kind of Person"
Priority: High, Medium, Low       // "Priority is one of High, Medium, Low"
tasks is a Lens with show: Task, where: priority is High  // "Show tasks where priority is high"
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.

  • A comma in a name. Smith, Bob -> Acme reads as two things. Write "Smith, Bob" -> Acme. You only need quotes when a name holds a comma, a semicolon, a colon, an arrow, a bracket or //.
  • "is a" or "with" inside a name. Coffee with milk would read as a thing called Coffee with a detail. Write "Coffee with milk". The words count only with a space either side.
  • A dash with no spaces. well-being is one name. a - b, with a space either side, is a link.
  • A comment straight after text. // starts a comment only at the start of a line or after a space. It is never a comment inside quotes or straight after a colon, so web addresses such as https://example.org are safe. Straight after code with no space, as in Alice -> Acme// since spring, it is a problem (GN103), and the line is not read.
  • A thousand written as 1,000. The comma splits it. Write 1000.
  • A line in the wrong block. If you write a look in the Things block, the app offers to move it to Looks. It never moves anything without asking you.
  • Describing the last thing on a link line. In a -> b with likelihood: 3 the details belong to the link. To describe b, give b its own line: b is a Person.

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

Alice -> Acme// since spring
"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.

  • Crossover cards. A bullet's first line is the statement. Paragraphs after a blank line inside it are its Markdown card.
  • The same link written twice is one link.
  • none and unknown as reserved values.
  • Names per language, as name@fr.
  • Renames, in a later wave: schema becomes kinds, and path becomes storyline.
- 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.

Clone this wiki locally