The project workspace
Opening a project shows the workspace. It is made for a wide screen; on a narrow one Agrafe asks for a wider window.
┌───────────┬──────────────────────────────┬───────────────────────────────┐
│ Sidebar │ File tabs │ Output tabs │
│ ├──────────────────────────────┤ Parse · Turtle · SVG · Graph │
│ Search │ │ SPARQL · Deployments · History│
│ Public │ Editor │ Output panel │
│ Release │ │ (Deploy: Deployments tab) │
│ Files │ │ │
│ │ │ │
│ ⚙ Package ├──────────────────────────────┴───────────────────────────────┤
│ │ Problems │
└───────────┴──────────────────────────────────────────────────────────────┘
Sidebar
From top to bottom:
| Element | Purpose |
|---|---|
| ‹ | Hides the sidebar. The thin › rail on the left brings it back. Your choice is remembered. |
| Role badge | Shown on a project shared with you: viewer or editor. |
| Search… | Searches the whole project, see below. |
| Public | Owner only. Makes the project readable by anyone at /public/<id>. |
| Create release | Owner and editors. Freezes the saved files as an immutable release under the version in package.dlf, so other projects can import it. A version can be released only once. See Releases. |
| Dolfin files | The file tree and its toolbar. |
| ⚙ Package | Opens the package settings. |
On a tablet in landscape (600–1024 px wide) the sidebar opens as a drawer over the editor: swipe right from the left edge of the screen to open it, and swipe left on it or on the dimmed area beside it to close it. The same works on a public project page (/public/<id>).
Searching the project
Type at least two characters in Search…. Results come from every file and are labelled by kind: concept, property, rule, fact or comment, with the file and line. Click a result to open the file at that line. Escape clears the search.
Case is ignored. Several words separated by spaces must all appear: has part finds hasPart, has_part and has-part first, then hasSomePart (words in order with a gap), then partOfHas (words in any order). Comments include #@ annotations. Each file shows at most 50 results.
The row of kind icons above the results hides or shows each kind (concept, property, rule, fact, comment); the file and folder counts then count only the shown results. All kinds are shown again for each new search.
Click ~ at the right of the field to turn on fuzzy matching: the letters you type only need to appear in order, so prsnm finds personName. Fuzzy results come after all regular ones, best match first. The toggle is off by default and your choice is remembered. Starting the query with ~ also turns fuzzy matching on for that search, without changing the remembered toggle; the ~ button shows as pressed while it applies.
File tabs
Each file you open gets a tab above the editor. Click a tab to switch, click its ✕ to close it. The ‹ at the left of the tab bar hides the editor so the output panel takes the full width; the thin › rail brings it back, and so does opening a file. Your choice is remembered. Both appear only while the editor and output sit side by side; on a touch screen the editor starts hidden until you show it once. When you view an old version from History, a purple Diff: file @ version tab appears; closing it returns to the live file. The mapping form opens under a teal Mapping N: file or New mapping: file tab the same way.
In a project imported from Turtle, a sync status chip sits at the right of the tab bar. See Keeping Turtle and Dolfin in sync.
Saving
There is no save button. Every edit is saved automatically a moment after you stop typing. The editor header shows Saving…, then Saved (or Save error).
Compiled output (Turtle, diagram, graph, problems) follows the saved source.
Resizing
- The strip between the editor and the output panel resizes both. Drag it, or focus it and use ← / →. Double-click it (or press Home) to reset the split.
- The top edge of the Problems panel resizes it; click its header to fold it.
Both sizes are remembered in your browser.
On a phone or tablet
Below 600px wide, and on a tablet held upright (portrait, up to 1024px), the workspace shows one pane at a time. The bar at the bottom of the screen switches between Files, Code, View (the output panel) and Problems; the Problems button shows the error count. Opening a file, a problem or a graph node’s source jumps to Code. The last pane you chose is remembered. A public project page (/public/<id>) has the same bar, Problems included (read-only; when a file does not parse, the mapping checks (S050/S051) are skipped and the panel says so); it always opens on View with the graph, and does not change the pane your own projects remember.
Held sideways (landscape), a tablet keeps the editor and the output side by side with the resize strip between them; the file list opens from the left edge.
An empty project
A project with no file of its own offers two ways to start:
- Start from an example: Library (books, members and loans: concepts, enums, facts, a rule and a query) or People (one concept, one enum, a few facts). The example becomes an ordinary file you can edit.
- Paste or import existing Dolfin: Paste Dolfin… opens a box where you name the file and paste its source, then Create file.
Nothing is deployed until you press Deploy.
Package settings
⚙ Package replaces the editor with a form over the project’s package.dlf, a file that is hidden from the tree:
| Field | Notes |
|---|---|
| Package name * | Required. Used by Deploy and to name the Turtle download and the zip export. |
| Dolfin version | The language version the package targets. |
| RDF version | RDF 1.1 (default) or RDF 1.2: how reified properties are written in the RDF output. See rdf_version. |
| Package version * | Required. Your own version number (semver, for example 1.2.0). The Turtle download is named <name>-<version>.ttl. |
| Author | Free text. |
| Tags | Comma-separated keywords (the manifest’s tags line). Saved lowercase, spaces become -, duplicates are dropped. On a public project they show on its card and people can find it by #tag on the Public projects page. |
| Description | One line per language. The small box is a language tag (en, fr, pt-BR); leave it blank for an untagged description. |
| Imports | One row per imported ontology. See Imports. |
| Reasoning | Which inferences the package runs. See Reasoning. |
Imports
+ Add import adds a row. Its first box picks where the import comes from:
- Project: pick a project (project · owner), then one of its versions; the version list shows only
--version--until a project is picked. Projects are grouped under Your projects (yours and those shared with you) and Public projects, minus the ones this project may not import (a public project can only import public releases). The row writesimport <package-iri> "version". - URL: type the address of a Turtle or RDF/XML file, or pick a well-known vocabulary from Browse… (RDF, RDFS, OWL, SKOS, Dublin Core, FOAF, PROV-O, Schema.org, DCAT and more). The second box is the IRI the import goes by; left blank, it is the URL. The row writes
import <iri> from <url>. - Text: edit the raw
importline. A line the other two cannot show opens here.
Under a Project or URL row, the line it will write is shown. Saving locks each import to what it resolves to, and the row then shows Locked, Failed with a reason, or a choice when several releases match. Only a Locked import is visible to your files.
Using imported names in your files
An import is project-wide, but each .dlf file that uses its names declares a prefix for it first:
prefix com.acme.hr.person as hr
concept Team:
has lead: one hr:Employee
For a project import, the namespace is the imported project’s package path followed by one of its file names (com.acme.hr + person.dlf → com.acme.hr.person). For a URL import, prefix <http://xmlns.com/foaf/0.1/> as foaf works. The language reference explains how namespaces are named, alias, and the rules.
In the editor, typing hr: lists the names that import defines, and hovering an imported name shows its label, IRI and imported from … (see The Dolfin editor). A name the import does not define is reported in the Problems panel.
Reasoning
Automatic (recommended) is on while package.dlf has no reasoning line. The sentence under it says what Automatic picks for the current files, and why: for example RDFS + OWL, because link is symmetric, or RDFS only.
Turn it off to choose yourself: the RDFS and OWL boxes appear, ticked as Automatic had them, and the form writes the matching reasoning line. Unticking both writes reasoning none, and the form warns that only the package’s own rules then run. Turning Automatic back on removes the line. A value the form does not recognise is shown as such and kept until you tick a box.
What each profile infers is in the language reference, under Reasoning. Viewers see the section but cannot change it.
The form tells you whether there are unsaved changes. Save package settings writes them to package.dlf. Closing the form with unsaved changes asks whether to Discard them or Keep editing.