Modeler:15/Paragraphs

From CaseTalk Wiki
Jump to: navigation, search

Paragraphs

A model rarely starts from nothing. It starts from a text: a law, a policy, a set of requirements, the minutes of an interview. Paragraphs keep that text inside the model, numbered and nested the way the source is, so every element you model can point back to the sentence it came from. When the source changes, you can see which parts of the model rest on it.

Open the overview with View → Paragraphs. It opens as a tab next to your diagrams.

The overview

Each row is a paragraph: a chapter, an article, a member, a sub-item. Sub-paragraphs sit under the paragraph they belong to, in document order, so Artikel 68, Lid 2 comes after Lid 1 and Hoofdstuk IX after Hoofdstuk V.

Column Shows
Index The paragraph's name, without the part its parent already says.
Text The text of the paragraph itself.
Comment Your own notes on it.

Right-click the column headers to show more columns: one for every other section the paragraphs carry, such as a Definition or Examples. Under a paragraph you also see the elements it refers to. They are its links into the model.

Double-click a text or comment to edit it in place. The panel on the right shows the attributes of the selected row.

Organising

  • Add Paragraph and Add Sub-paragraph create new ones.
  • Up and Down change the order of sub-paragraphs where you set the order yourself. Numbered titles such as Lid 2 or a. always follow their numbers.
  • Drag a paragraph between two rows to move it there. Drop it on a paragraph and CaseTalk asks what you mean: make it a sub-paragraph of that one, or add a reference to it and leave it where it is. A law refers to other articles all the time, and a reference keeps that visible without moving anything.
  • Drag a paragraph onto a diagram to place it there.
  • Type in the filter box to keep only the rows that contain the words, along with the paragraphs above them for context.

Annotated law texts

When a paragraph holds the text of a law or policy, you can annotate its words: link a phrase to the model element it stands for, and give it its legal class. The overview then shows the words in the colour of their class. That way you can see at a glance how much of an article has been analysed, and what kind of thing each phrase is.

  • Show Annotations (toolbar and context menu) switches the colours on and off.
  • An annotated text is not edited in place: its words carry the annotations, and typing over them would lose their anchor. Double-click it, or choose Annotate Text…, to open it in the annotator.
  • An orange bar in front of the text means the law text changed after it was annotated: some annotations still sit on the old wording. Choose Re-anchor Annotations to move them onto the new wording wherever their words can still be found without doubt.

In the annotator, the Annotations tab shows every annotated phrase with its class and the element it is linked to:

Each annotated phrase, its class, and the element it stands for. Phrases that are not (yet) a model element are terms of the law text (Text::…).

When its law text section is switched on under Preferences → Reports, the MIM report includes the law texts in the same colours. Each annotated word links to the element it stands for, and each paragraph is followed by its source, such as its place in the law and a link to the article online:

An annotated article in the MIM report

Terms

Not every phrase in a law is already a model element. A phrase you annotate without linking it to an element becomes a term of the law text, in the reserved schema Text (for example Text::aansluiting). Terms are the vocabulary the law itself uses. The Terms view turns them into a glossary you can work on.

Open it with View → Terms. It is the same overview, listing words instead of paragraphs:

The term aansluiting with its classes, the articles that use it, and its definition in the concept editor
Column Shows
Term The word, without its Text schema.
Class Every class the word is annotated with, each in its colour. A word that is a legal object in one article and a source definition in another shows both.
Comment The term's own description.

Right-click the headers for the other description sections (Definition, Examples, Questions …) and for the custom attributes the terms carry. Comments, sections and attributes are edited in place with a double-click. The class is not: it follows from the annotations.

Senses

A word can mean different things. Aansluiting is the act of connecting in one article and the physical connection point in another. CaseTalk does not duplicate the word for that. A word has senses, and each sense is an element of the model: a concept, or an object type or fact type. The paragraphs annotate the sense they mean, and the sense refers to the word.

Under each term the overview therefore lists:

  • its senses: the elements tied to the word, each with the classes and the paragraphs of its own annotations;
  • the paragraphs that still annotate the word itself, before a sense has been chosen for them.

Each paragraph row shows the full law text in class colours, so the word is always read in its context. Double-click it to open the annotator.

Working with terms

  • Add Term adds a word to the glossary before any paragraph uses it.
  • Delete Term removes a word that no paragraph annotates and no sense refers to. A word that is still in use cannot be deleted from here.
  • Edit in the context menu (or a double-click on its class) opens the concept editor for its plural, aliases, translations and descriptions.
  • Edit Terms in Fact Table Editor… opens the Fact Table Editor showing only the Text schema, to go through names, plurals and translations of all terms as a table. The Fact Table Editor's schema list does the same for any schema.

The Text schema is reserved: other elements cannot be moved into it, and its terms cannot be moved out. A term stays a word of the law. The modelling happens in its senses.

See also