View a markdown version of this page

What an ontology is and why it is separate from data sources - AWS Context

What an ontology is and why it is separate from data sources

An ontology is a formal model of a business domain that software can read. It names the concepts in the domain, such as the kinds of objects that your business works with, and the properties that describe them. It also says how those concepts relate to each other and which rules apply to them. People and agents use the ontology as a shared vocabulary, so that data from different sources describes the same concepts in the same terms.

Part What it describes Example

Classes

The kinds of objects and concepts in your business.

Customer, Account, Transaction

Properties

The attributes of a class, each with a data type.

An account has a balance, which is a decimal number.

Relationships

Typed, directional links between classes, each with a source class and a target class.

A Customer holds an Account.

Hierarchy

Classes and properties that are more specific kinds of others.

An unfunded account is a kind of account.

Vocabulary

Labels, other names, and definitions for each term.

DDA is another name for a checking account.

Rules

Conditions that every member of a class meets.

An unfunded account has a balance of zero or less.

AWS Context reads ontologies written in the Web Ontology Language (OWL) and saved in the Turtle format. In an OWL ontology, you can also use terms from other standard vocabularies, for example:

  • RDF Schema (RDFS), for hierarchies and definitions

  • Simple Knowledge Organization System (SKOS), for labels and matching terms

  • Shapes Constraint Language (SHACL), for rules

  • Dublin Core, for metadata such as renamed terms

An ontology isn’t data. It describes concepts, not records, and it holds no table rows or document text. AWS Context works with three inputs: the structured data in your catalogs, the documents in your knowledge bases, and the ontology that guides how AWS Context processes the first two.

You model an ontology separately from your data sources, for the following reasons:

  • It describes concepts, not storage. An ontology describes your business concepts apart from the tables, columns, and documents that hold the data. A table named acct_mstr and a lending policy document can both be about the Account class, even though neither uses that exact name.

  • It’s reusable. An ontology is a top-level resource. After you publish it, you can use it with more than one connection and in more than one Agent Context.

  • It adds to your data and doesn’t replace it. When you use an ontology in an Agent Context, AWS Context adds the ontology’s classes and links them to your data. Your table, column, and document nodes don’t change.

  • It can have its own owner. An ontology owner can maintain the model while data owners manage the connections to the sources.

AWS Context includes built-in ontologies, and you can add custom ontologies of your own. A custom ontology is one that you bring or one that AWS Context induces from your documents. For the built-in ontologies, see Built-in ontologies.