Subtyping and inheritance with XML and OWL

Let's look at examples of subtyping and inheritance for XML and OWL.

We'll cover the following

XML schema

In XML Schema, a subtype can be defined if we extend or restrict an existing complex type. When we extend a complex type, we extend its intension by adding elements or attributes. When we restrict a complex type, we restrict its extension by adding constraints.

We can define a complex type Person and a subtype Student if we extend Person in the following way:

Get hands-on with 1200+ tech skills courses.