Skip to content

Hello World

Enola captures knowledge about Things, and the relationships (links) between them.

Things can be represented in a variety of Formats. In this tutorial, we’ll use the RDF 🐢 Turtle format.

Let’s start with this greeting1.ttl:

<https://example.org/greeting1>
  <https://example.org/message> "hello, world".

This means that https://example.org/greeting1 identifies some Thing which has a message that is “hello, world”. Pretty simple, right?

Among other things, Enola can generate documentation about Things, like this:

$ ./enola docgen --load "file:docs/models/example.org/greeting1.ttl" --output=file:///tmp/models/ --no-index

greeting1.md now contains:

<https://example.org/greeting1>

* [`ex:message`](https://example.org/message): hello, world
* [🏺 `enola:origin` Origin](../enola.dev/origin.md): [greeting1.ttl](greeting1.ttl)

Note how the greeting, in addition to our message from above, automagically got another property named origin - click on it to learn what it’s for! Here is how this Markdown renders:

https://example.org/greeting1