Skip to content

Authoring Form view

New to Folio? Start here

Form view

Form view shows each statement in a Turtle file as a form, and every change you make is written back to the file as ordinary Turtle.

This guide picks up films.ttl where Write Turtle left it and edits the Film class schema as a form: it changes one field and adds another.

Switch the file to Form

Open films.ttl and click Form at the right of the toolbar. Each statement in the file becomes a card.

Film's card is marked Class Schema. Its rows are the parts of a class schema: Label, Description, Extends, Properties, ID template and Hidden in graph. Properties lists the three fields from the file, Title, Rights holder, and Release date with a date chip.

Film's card. Each Property shape is one sh:property in the file.

Change a field

Click Title under Properties to open it. Its rows are grouped under Field, Value, How many, and Display and code: the Label is Title, the Path is dct:title, and Min count is 1.

Click the Description chip, The name the film is released under. Change the text to The name the film is released under in its home territory. and press Enter.

The Title field, open. Its Description now reads The name the film is released under in its home territory.

Add a field

Click + New beside Properties. A new Property shape opens below Release date.

  1. Click + beside Label, type Streaming license and press Enter. The Path fills in as streamingLicense, made from the Label.
  2. Click the link icon in Path, Unlink to type your own ID. Type dct:license and press Enter.
  3. Click + beside Description, type The license the film streams under. and press Enter.
The new Streaming license field, with its Path set to dct:license.

Read the Turtle it wrote

Click Code at the right of the toolbar. The Title field's description reads as you changed it, and the form wrote the Streaming license field after Release date as another object of the same sh:property, after a ,. a sh:PropertyShape says the new resource is a field. This is films.ttl on disk.

films.ttl
Two cards in Folio's Graph View. films, the file, shows its namespace and conforms to Class Schema. Film, a Class Schema, shows its comment and lists its instance properties Release date (date), Streaming license, Rights holder, and Title (1..*).
All of films.ttl in Graph View: Film now lists Streaming license among its instance properties.

Edit one statement as a form

You don't have to switch the whole file. In Code view, each statement has Edit resource above it. Click the one above :Film and only that statement turns into a form, in place. The Code button at its right turns it back.

Edit resource opens one statement as a form; the rest of the file stays Turtle.