Some relations are so commonly used, we suggest some standard names here:
| Name | Aliases | Semantics (A .. relation .. B) |
|---|---|---|
|
| Undirected link connecting A and B. |
|
| A and B are referring to the same concept. |
| Like | |
|
| Directed, untyped link from A to B. |
|
| A has the tag B. |
|
| A has the type B. Like rdf:type. |
|
| The type A has a more specialised type B. |
| – | When parsing a name like |
|
| A has content B. In this case, B is usually a longer string. Maybe including line breaks ( |
Binaries: Images, Videos, Audio, 3D, …
How should a text-based format like ddot.it handle binaries? Looking at HTML, which is also a text-based format and the implied model of Markdown and AsciiDoc, we have several options:
-
Base64-encoded
data:URIs -
Links to local (relative links)
-
Links to remote (absolute links) files
Ddot.it can support all of these. However, data: URIs (and other inline approaches) don’t fit the lightweight human touch of ddot.it well. So we suggest using links, ideally relative one. That way, ddot.it files or files with ddot.it tripels int them can be packed together with the linked resources in a single zip archive.
Commands as Relations
The relation of a triple can also be a command. A parser lexes it as a command wherever it appears, but what a command means is decided downstream — an unknown or retired name simply keeps its text as the relation value.
label used to be such a command (a ..!!label.. Alice).It is now an ordinary relation ( a ..label.. Alice), defined in the Vocabulary Specification. |