Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
Last active August 29, 2015 13:56
Show Gist options
  • Save ericmoritz/9100715 to your computer and use it in GitHub Desktop.
Save ericmoritz/9100715 to your computer and use it in GitHub Desktop.

Classes, inheritance, and properties are, of course, known in other fields of computing, for example, in object-oriented programming. But while there are many similarities, there are differences, too. In object-oriented program- ming, an object class defines the properties that apply to it. To add new properties to a class means to modify the class.

However, in RDFS, properties are defined globally, that is, they are not encapsulated as attributes in class definitions. It is possible to define new properties that apply to an existing class without changing that class.

On one hand, this is a powerful mechanism with far-reaching conse- quences: we may use classes defined by others and adapt them to our re- quirements through new properties. On the other hand, this handling of properties deviates from the standard approach that has emerged in the area of modeling and object-oriented programming. It is another idiosyncratic feature of RDF/RDFS.

http://www.ics.forth.gr/isl/swprimer/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment