Title: More RDF
1More RDF
- CS 431 20040310
- Carl Lagoze Cornell University
Acknowledgements Eric Miller Dieter Fensel
2RDF Data Model
- Directed labeled graphs
- Model elements
- Resource
- Property
- Value
- Statement
- Containers
3RDF meta-model
- RDF basic types
- rdfResource everything that can be identified
(with a URI) - rdfProperty specialization of a resource
expressing a binary relation between two
resources - Rdftype predefined property to express that
subject of property is considered to be an
instance of that category or class defined by the
value of the property - rdfstatement a triple with properties
rdfsubject, rdfpredicate, rdfobject - An RDF statement is a triple consisting of a
resource (subject), a property and a second
resource (object) - (s p o)
- Expressible also as binary relations
- P(S,O) e.g., Title(R, War Peace)
4Expressing Simple Binary Relations
(R1 P1 R2)
P1(R1, R2)
ltRDF xmlns http//www.w3.org/TR/WD-rdf-syntax
gt ltDescription about R1gt ltxP1
resourceR2/gt gt lt/Descriptiongt lt/RDFgt
5Expressing n-ary relations
(Carl Lagoze address 301 College Ave,
Ithaca, NY 14850)
(Carl Lagoze address 301 College Ave
Ithaca NY 14850)
6Another n-ary relation example
7Expressing Collection Primitives in Binary
Relations
8Reification Structure
Staff member 85740 said the weight of item 10245
is 2.4 units
9Reification XML
10RDF Schemas
- Declaration of vocabularies
- properties defined by a particular community
- characteristics of properties and/or constraints
on corresponding values - Provides substructure for inferences based on
existing triples - Schema language is an expression of basic RDF
model - Schema Type System - Basic Types
- Property, Class, SubClassOf, Domain, Range
- Minimal (but extensible) at this time
- Expressible in the RDF model and syntax
11Schema Vocabularies
- Enables communities to share machine readable
tokens and locally define human readable labels.
dcCreator
12Relationships among vocabularies
dcCreator
marc100
msdirector
bibAuthor
13Relationships among vocabulary elements
URIR
msdirector
John Smith
14RDF Schema Specializing Properties
- rdfssubPropertyOf allows specialization of
relations - E.g., the property father is a subPropertyOf
the property parent - subProperty semantics
15Sub-Property Semantics
16Constraints on Properties
- Force objects to be of a certain type
- rdfsdomain
- Restricts the type of resources that may have a
specific property - rdfsrange
- Restricts the type of resources that may be the
value of a specific property
range
17Inferences from Constraints
doris
betty
eve
alice
charles
18Inferences from Constraints
19Class Hierarchy
- rdfsClass
- Resources denoting a set of resources range of
rdftype - rdfssubClassOf
- Create class hierarchy
rdftype
rdftype
rdfsclass
rdfssubClassOf
rdftype
rdftype
rdfclass
rdfclass
20Sub-Class Inferencing
21Sub-class Inferencing Example
22Jena Toolkit
- Robust tools for building and manipulating RDF
models - HP Labs Bristol
- Capabilities
- Model construction
- XML and N3 parsing
- Model persistence (DB foundation)
- Model querying
- Ontology building
- Inferencing
- http//www.hpl.hp.com/semweb/jena2.htm
23IsaViz
- Visualizing and constructing RDF models
- http//www.w3.org/2001/11/IsaViz/