Skip to content

The RDF panel

{ } RDF, in the toolbar, opens a panel on the right with the model as RDF, live: written as Save would write it, by the same serializer, so what you read here is what goes into a file or into Git. It starts hidden (?rdf=1 opens it at the start), and does no work while it is hidden.

The selected concepts' statements are highlighted, and the first is scrolled into view. Click a block of statements to select its subject.

The RDF panel beside the canvas: on the header's first row the format Turtle, geometry and provenance ticked, search, maximize and close, and on its second Copy and Download; the scope View, the view's name, 8 elements, 8 relationships and 199 triples; then the Turtle, its prefixes first.
The RDF panel showing the example's diagram view as Turtle.

The header keeps RDF, ⤢ and × on its first row, at its two ends. The controls between them take a second row, or a third, when the panel is narrower than they are: at its first width, 440 px, Copy and Download are on the second.

Format

The format selector, at the left of the panel's header, picks how the RDF is written:

Format Writes
Turtle (the default) the model in one graph
TriG (graph per layer) four graphs: the model resource, its semantics (elements, relationships, views), its diagram geometry and its provenance
JSON-LD JSON-LD, with the graphs
N-Quads one statement per line, with its graph
N-Triples one statement per line
RDF/XML RDF/XML

The format is this panel's own, for the session: it starts as Turtle each time, whatever File › Save as last wrote.

  1. Click { } RDF in the toolbar.
  2. Choose N-Triples in the panel's format selector: one statement a line.

Geometry

geometry, ticked by default, includes the diagram geometry: the arch-vis: nodes, links, bounds and routes of the views. Unticked, the panel shows the model's semantics alone, as File › Save as › Turtle without diagram geometry writes it. It is this panel's own setting, for the session.

  1. Tick off geometry.
  2. The arch-vis:ArchNode and arch-vis:Link blocks go; the elements and relationships stay.

Provenance

provenance, ticked by default, includes how the model came to be: the prov: statements — which editing activity last changed each concept, and when (Last changed) — the activities, la-gram and the people, and a converted model's conversion run. Unticked, they are left out of the panel and of what Download writes; Created and Modified stay with each concept. It is this panel's own setting, for the session.

  1. Change an element, and open the RDF panel on Model.
  2. Tick off provenance: the mg:provenance graph, in TriG, and every prov: statement go.

Scope

What to show, under the header, chooses what is written. The choice is remembered in this browser.

What to show Writes
View (the default) the open view: the view, the concepts it shows, and its diagram
Selection the selected concepts, and how the open view draws them
Model the whole model, exactly as Save writes it

Beside it, the counts: the view's name, its elements, relationships and triples (8 elements, 8 relationships, 199 triples for the example's diagram); for the model, its views too.

  1. Choose Selection in What to show.
  2. Click "Gift wrapping" on the canvas: the panel writes what the model says of it, and its placement.

🔍, in the panel's header, or Ctrl+F (Cmd+F on a Mac) in the panel, opens a find bar under the header. Type to search the text the panel shows: every match is highlighted in yellow, and the current one in orange, scrolled into view.

In the find bar Does
Aa matches case: off at first, so "order" finds "Order" too
1 of 12 the current match, and how many there are; No matches when none
↓ or Enter the next match; after the last, the first
↑ or Shift+Enter the previous match
× or Esc closes the bar and its highlights

It searches the text as written, in the format chosen: skos:prefLabel finds the names in Turtle, not in RDF/XML, where they are written otherwise. When the text changes — the model, What to show, the format, geometry or provenance — it is searched again. A whole model too large to show is not searched: the bar says Too large to show, so not searched.

  1. With What to show at View, press 🔍 and type prefLabel.
  2. Each element's name is highlighted; press Enter to go from one to the next.

Copy and download

Button Does
🔍 opens the search of the panel's text, and closes it
Copy copies what the panel shows to the clipboard; it says Copied
Download saves it as a file: for Model, as Save does, in the panel's format, without geometry when geometry is off; for View and Selection, what the panel shows
⤢ / ⤡ maximizes the panel over the workspace, and restores it (or Esc)
× hides the panel, as { } RDF does
  1. With What to show at Model and the format TriG (graph per layer), choose Download.
  2. The model is saved as Acme-online-shop.trig.

Large models

A view or a selection is small enough to show and highlight on any model; a whole model may not be. Past 1.5 million characters, the panel shows the model's size instead of its text, and does not write it again on every change:

A large model, at Model

The whole model is 2.4 MB of Turtle — too large to show here. Copy or download it, or show the open view or the selection., for a model of 2.4 million characters as Turtle; the size and the format are the model's.

Copy and Download still work: they write the model as it is at that moment.