Professional Documents
Culture Documents
What is RDFS ?
• RDF Schema
▫ Defines vocabulary for RDF
▫ Organizes this vocabulary in a typed hierarchy
(Class, subClassOf, type, Property,
subPropertyOf)
domain range
Student S Researcher
type type
Frank S Jeen
Semantic Web Technologies
RDF Schema
<rdf:Description ID="Truck">
<rdf:type
df t resource="http://www.w3.org/...#Class"/>
"htt // 3 / #Cl "/
<rdfs:subClassOf rdf:resource="#MotorVehicle"/>
</rdf:Description>
<rdf:Description ID="registeredTo">
ID= registeredTo >
<rdf:type resource="http://www.w3.org/...#Property"/>
<rdfs:domain rdf:resource="#MotorVehicle"/>
<rdfs:range rdf:resource="#Person"/>
</rdf:Description>
<rdf:Description ID=”ownedBy">
<rdf:type resource="http://www.w3.org/...#Property"/>
p y rdf:resource="#registeredTo"/>
<rdfs:subPropertyOf g
</rdf:Description>
Semantic Web Technologies
▫ As in programming languages
▫ E g A+1,
E.g. A+1 where A is an array
▫ Disallow nonsense from being stated
Semantic Web Technologies
Class Hierarchies
Property Hierarchies
• Hierarchical relationships for properties
▫ E.g., “is
E “i ttaught
ht bby”
” iis a subproperty
b t off
“involves”
▫ If a course C is taught by an academic staff
member A, then C also involves Α
• P is a subproperty
p p y of Q,, if Q(x,y)
( ,y) is true
whenever P(x,y) is true
Semantic Web Technologies
Core Classes
• rdf:Statement,
df St t t th
the class
l off all
ll reified
ifi d
statements
Semantic Web Technologies
Core Properties
• rdf:type, which relates a resource to its
class
▫ The resource is declared to be an instance of
that class
Examples
<rdfs:Class rdf:about="#lecturer">
<rdfs:subClassOf rdf:resource="#staffMember"/>
</rdfs:Class>
<rdf:Property rdf:ID="phone">
<rdfs:domain rdf:resource="#staffMember"/>
rdf:resource= #staffMember />
<rdfs:range rdf:resource="http://www.w3.org/
2000/01/rdf-schema#Literal"/>
</rdf:Property>
Semantic Web Technologies
Subclass Hierarchy
y of some Modelling
g primitives
p of RDFS
Instance Relationships
p of some Modelling
gpprimitives of RDFS
Relationships
p Between Core Classes and Properties
p
• rdfs:subClassOf and rdfs:subPropertyOf are
transitive by definition
transitive,
Utility Properties
• rdfs:seeAlso relates a resource to another resource
that explains
p it
• rfds:comment. Comments,
rfds:comment Comments typically longer text
text, can
be associated with a resource
• rdfs:label.
df l b l A human-friendly
h f i dl label
l b l (name)
( ) is
i
associated with a resource
SUMMARY
RDF Classes
Class name comment
rdfs:Resource The class resource, everything.
rdfs:Literal The class of literal values, e.g. textual strings and integers.
Example: A University
<rdfs:Class rdf:ID="lecturer">
<rdfs:comment>
rdfs:comment
The class of lecturers. All lecturers are
academic staff members.
</rdfs:comment>
<rdfs:subClassOf
rdf:resource="#academicStaffMember"/>
</rdfs:Class>
/ df Cl
Semantic Web Technologies
<rdf:Property rdf:ID="isTaughtBy">
<rdfs:comment>
df
Inherits its domain ("course") and range ("lecturer")
from its superproperty "involves"
</rdfs:comment>
<rdfs:subPropertyOf rdf:resource="#involves"/>
</rdf:Property>
Semantic Web Technologies
Class Hierarchy
y for the Motor Vehicles Example
p
•
Semantic Web Technologies
Example (1)
Example (2)
<rdf:RDF xml:lang="en"
xmlns:rdf="http://www
xmlns:rdf= http://www.w3.org/1999/02/22-rdf-syntax-ns#
w3 org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<!-- Note: this RDF schema would typically be used in RDF instance data by
referencing it with an XML namespace declaration, for example
xmlns:xyz="http://www.w3.org/2000/03/example/vehicles#". This allows us to
use abbreviations such as xyz:MotorVehicle to refer unambiguously to the RDF
class 'MotorVehicle'. -->
<rdf:Description ID="MotorVehicle">
<rdf:type resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
<rdfs:subClassOf
rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
</rdf:Description>
...
Semantic Web Technologies
Example (3)
<rdf:Description ID="PassengerVehicle">
<rdf:type resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
< df
<rdfs:subClassOf
bCl Of rdf:resource="#MotorVehicle"/>
df "#M t V hi l "/>
</rdf:Description>
<rdf:Description
p ID="Truck">
<rdf:type resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
<rdfs:subClassOf rdf:resource="#MotorVehicle"/>
</rdf:Description>
...
Semantic Web Technologies
Example (4)
…
<rdf:Description ID="Van">
<rdf:type resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
<rdfs:subClassOf rdf:resource="#MotorVehicle"/>
</rdf:Description>
<rdf:Description ID="MiniVan">
<rdf:type resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
<rdfs:subClassOf rdf:resource="#Van"/>
<rdfs:subClassOf rdf:resource="#PassengerVehicle"/>
</rdf:Description>
</rdf:RDF>
DUBLIN CORE
Semantic Web Technologies
Dublin Core
• A set of fifteen basic properties for describing
generalised Web resources
• ISO Standard 15836-2003 (February 2003):
http://www niso org/international/SC4/n515
http://www.niso.org/international/SC4/n515.
pdf
The Dublin Core Metadata Initiative is an open forum engaged in the development of
interoperable online metadata standards that support a broad range of purposes and business
models.
http://dublincore.org/
Semantic Web Technologies
• RDF:
http://www.w3.org/RDF/
• RDF Schema:
http://www.w3.org/TR/rdf-schema/