Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

RDF Schema

RDF Schema (RDFS)


RDF Schema (RDFS) is an extension of RDF.


RDF Schema and Application Classes

RDF describes resources through classes, properties, and values.

In addition, RDF also needs a way to define application-specific classes and properties. Application-specific classes and properties must be defined using an extension of RDF.

RDF Schema is such an extension.


RDF Schema (RDFS)

RDF Schema does not provide actual application-specific classes and properties; instead, it provides a framework for describing application-specific classes and properties.

Classes in RDF Schema are very similar to classes in object-oriented programming languages. This allows resources to be defined as instances and subclasses of classes.


RDFS Example

The example below demonstrates some aspects of RDFS's capabilities:

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

xml:base="http://www.animals.fake/animals#">

 

 

 

In the example above, the resource "horse" is a subclass of the class "animal".


Abbreviated Example

Since an RDFS class is an RDF resource, we can abbreviate the example above by using rdfs:Class instead of rdf:Description and removing the rdf:type information:

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

xml:base="http://www.animals.fake/animals#">

 

That's it!