Simple ontological models: the big picture

This page is a chapter from our teaching guide
"Introduction to Ontology Modeling" (click to go to the full version in PDF format).

We looked at ways to create the basic elements of semantic models in the simplest editor - Protégé; At the same time, we learned how such models are serialized into RDF/XML format, and what happens to them when loaded into the triplet store. The integrity of understanding these mechanisms is very important for successful work with the software implementation of semantic models.

To bring this knowledge into a common system, and at the same time obtain some new information, let’s take a look at the relationship of the elements of semantic models we have studied. Let's look at an example of a simple ontology. Suppose we want to express in the model the information that objects of the Customer class have a Name property and a Child property, which establishes a child-parent relationship between clients. There are two companies - CJSC Alpha and LLC Beta, and Beta is a subsidiary of Alpha. This whole model can be represented like this:

An example of a holistic semantic model
An example of a holistic semantic model

Prefixes are not shown in this diagram for reasons of readability.

Let's pay attention to the dotted line: what is above it represents definitions of classes and properties, and what is below is information about individual objects and their properties.

At the top of the diagram we see the definition of the Customer class. It is a subclass of dc:Agent. The dc prefix corresponds to the standard Dublin Core ontology. This ontology is an interesting attempt to provide commonly used definitions for entities found in almost any semantic model - such as "actor", "person", etc. By making our Customer class a subclass of the Agent class defined in the standard ontology, we communicate information to potential external consumers of our model about how this class should be perceived.

Shown below are two properties - #Name and #Child. They represent individual elements of the model. As we remember from the previous chapter, properties have two fundamental characteristics - domain, which indicates which class instances have this property (in this case, the domain of both properties points to the Customer class), and range, which determines the type of value received. Name is a string property, and the value of the Child property is also objects of the Customer class.

Below the line are the definitions of two individual objects - #Alpha and #Beta. The standard-predefined property type points to the Customer class. Each object has a name, represented by a string literal. Finally, the Beta object has a Child property that points to Alpha because Beta is a child of Alpha. Let's look at the resulting triplets:

http://example.com/#Customer
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#Class
http://example.com/#Customer
http://www.w3.org/2000/01/rdf-schema#subClassOf
http://purl.org/dc/terms/Agent
http://example.com/#Name
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#DatatypeProperty
http://example.com/#Name
http://www.w3.org/2000/01/rdf-schema#range
http://www.w3.org/2001/XMLSchema#string
http://example.com/#Name
http://www.w3.org/2000/01/rdf-schema#domain
http://example.com/#Customer
http://example.com/#Child
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#ObjectProperty
http://example.com/#Child
http://www.w3.org/2000/01/rdf-schema#range
http://example.com/#Customer
http://example.com/#Child
http://www.w3.org/2000/01/rdf-schema#domain
http://example.com/#Customer
http://example.com/#beta
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#NamedIndividual
http://example.com/#beta
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://example.com/#Customer
http://example.com/#beta
http://example.com/#Child
http://example.com/#alpha
http://example.com/#beta
http://example.com/#Name
"Beta, LLC"
http://example.com/#alpha
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#NamedIndividual
http://example.com/#alpha
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://example.com/#Customer
http://example.com/#alpha
http://example.com/#Name
"Alpha, JSC"

The top of the table corresponds to the top of the chart shown above the dotted line. This part of the model can be conditionally called “reference data” - it describes the structure of information. The lower part corresponds to the content of the model, “design data”. This division is very arbitrary, since often what is design data in one model is reference data in another; technologically, there is no difference between these data types. However, from the point of view of perception and understanding of the model, such a division may be useful.

Next chapter: Ontological model as a graph. SPARQL language