Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instances vs Classes in RDFS

The description of the base classes defined by RDFS in the W3C reference document states that some classes are instances of one class and a subclass of another (or in some cases an instance and subclass of the same class). Coming from a more traditional object-oriented background, the concept of classes as instances eludes me and I was wondering if anyone could explain to me the effective difference between a class as an instance and a class as a subclass in RDFS. Thank you!

like image 779
ShadesOfGrey Avatar asked Jun 24 '11 18:06

ShadesOfGrey


People also ask

What is an instance in RDF?

Utility properties an instance of rdf:Property that is used to indicate a resource defining the subject resource. This property may be used to indicate an RDF vocabulary in which a resource is described.

Is RDF property a class?

The rdf:type property may be used to state that a resource is an instance of a class. RDF distinguishes between a class and the set of its instances. Associated with each class is a set, called the class extension of the class, which is the set of the instances of the class.


1 Answers

An RDFS class is defined as the set of its instances. Consider the class of abstract ideas. Members – instances – of that set include love, honour, duty, pi, evolution, etc. This view of a class is a mathematical concept, so the set of abstract ideas is both an idea and quite abstract, so therefore is itself an instance, or member, of the class abstract ideas. More prosaically, if a class is a set of things, then RDFS classes both denote sets of things, and are themselves instances of the set of all classes, aka rdfs:Class.

I think the practical truth is that it's rare in practical RDFS modelling that you find yourself needing to use the capability of the class being an instance of itself. I would say that it's more a consequence of the mathematical definition of the semantics of RDFS. Similarly, a sub-class of a class is any set which is an improper subset of the set denoted by the super-class, which means that every class is a sub-class of itself. There are good mathematical reasons for making this the case, but it often surprises beginners who look at the sub-classes of a given class as defined by a reasoner, and are confused that the reflexive case is included.

like image 149
Ian Dickinson Avatar answered Oct 01 '22 02:10

Ian Dickinson