ArticleslgStudy

computer science

ERIL

ERIL is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ERIL rather than just read about it. In short: ERIL (Entity-Relationship and Inheritance Language) is a visual language for representing the data structure of a computer system. As its name suggests, ERIL is based on entity-relationship diagrams and class diagrams.

ERIL — main illustration
ERIL — illustration

Key takeaways

  • ERIL belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ERIL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ERIL from memory before moving on to harder problems.

Reference excerpt

ERIL (Entity-Relationship and Inheritance Language) is a visual language for representing the data structure of a computer system. As its name suggests, ERIL is based on entity-relationship diagrams and class diagrams. ERIL combines the relational and object-oriented approaches to data modeling.

Overview ERIL can be seen as a set of guidelines aimed at improving the readability of structure diagrams. These guidelines were borrowed from DRAKON, a variant of flowcharts created within the Russian space program. ERIL itself was developed by Stepan Mitkin. The ERIL guidelines for drawing diagrams:

Lines must be straight, either strictly vertical or horizontal. Vertical lines mean ownership (composition). Horizontal lines mean peer relationships (aggregation). Line intersections are not allowed. It is not recommended to fit the whole data model on a single diagram. Draw many simple diagrams instead. The same class (table) can appear several times on the same diagram. Use the following standard symbols to indicate the type of the relationship. One-to-one: a simple line. One-to-many, two-way: a line with a "paw". One-to-many, one-way: an arrow. Many-to-many: a line with two "paws". Do not lump together inheritance and data relationships.

Indexes A class (table) in ERIL can have several indexes. Each index in ERIL can include one or more fields, similar to indexes in relational databases. ERIL indexes are logical. They can optionally be implemented by real data structures.

Links Links between classes (tables) in ERIL are implemented by the so-called "link" fields. Link fields can be of different types according to the link type:

reference; collection of references. Example: there is a one-to-many link between Documents and Lines. One Document can have many Lines. Then the Document.Lines field is a collection of references to the lines that belong to the document. Line.Document is a reference to the document that contains the line. Link fields are also logical. They may or may not be implemented physically in the system.

Usage ERIL is supposed to model any kind of data regardless of the storage. The same ERIL diagram can represent data stored in a relational database, in a NoSQL database, XML file or in the memory. ERIL diagrams serve two purposes. The primary purpose is to explain the data structure of an existing or future system or component. The secondary purpose is to automatically generate source code from the model. Code that can be generated includes specialized collection classes, hash and comparison functions, data retrieval and modification procedures, SQL data-definition code, etc. Code generated from ERIL diagrams can ensure referential and uniqueness data integrity. Serialization code of different kinds can also be automatically generated. In some ways ERIL can be compared to object-relational mapping frameworks.

See also Model-driven engineering UML Entity–relationship model Flowcharts Class diagram DRAKON

Notes

Illustrations

ERIL: An example ERIL diagram with 3 classes and 3 one-to-many relationships.
An example ERIL diagram with 3 classes and 3 one-to-many relationships.

Worked examples

Example 1 — a first encounter with ERIL

Start with the simplest possible case. Write down what ERIL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ERIL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ERIL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ERIL

In research
ERIL appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ERIL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ERIL is common in secondary-school and first-year university syllabi. It links to neighbouring topics Architecture description language, Data modeling diagrams, Data modeling languages, so understanding it makes those chapters shorter.
In everyday life
Look for ERIL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ERIL” →

How to study ERIL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ERIL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ERIL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ERIL in simple terms?

ERIL (Entity-Relationship and Inheritance Language) is a visual language for representing the data structure of a computer system. As its name suggests, ERIL is based on entity-relationship diagrams and class diagrams.

Why does ERIL matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ERIL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ERIL.

Tags

  • Architecture description language
  • Data modeling diagrams
  • Data modeling languages
  • Diagrams
  • Knowledge representation
  • Software modeling language
  • Specification languages

Keep exploring