The Turtle editor
Any .ttl or .turtle file in a project opens in a Turtle editor instead of the Dolfin one. It never runs Dolfin diagnostics on the file.
What it does
| Feature | Behaviour |
|---|---|
| Highlighting | Turtle syntax colours, in both the light and dark theme. |
| Diagnostics | Syntax errors are underlined and listed as problems. Only the first error is reported. |
| Completion | Prefixes declared in the file, prefixes declared in your other open Turtle files, and the common vocabularies (rdf, rdfs, owl, xsd, skos, dcterms). After prefix:, local names of subjects already in the file. |
| Hover | Hover a prefixed name to see its full IRI. If the subject is defined in the file, its rdfs:label and rdfs:comment are shown. |
| Outline | One entry per statement subject. |
| Go to definition | On a prefixed name, jumps to its statement in the same file. |
Completion does not yet offer the namespaces of your Dolfin files; a Turtle imported into Agrafe already declares them in its own @prefix lines.
Context menu
Right-click in the Turtle editor for Cut, Copy, Select word and Paste. In the origin file there is also Reveal in dolfin, described in Reveal.
Editing the origin file
Editing the origin Turtle by hand is supported. Two things follow:
- The Dolfin files do not change on their own. Use Re-translate to Dolfin to bring your edits over.
- While the Turtle has a syntax error, sync is blocked (nothing is written to it) until you fix the error.