Transcript Lecture 6

Class Schedule
April
April
April
April
April
April
April
April
April
April
April
April
April
7 (today)
8 x-period – Max, Diego
9 no class
11 - Riley, Ian
14 – Song, Josh
15 – Greg, Saurabh
16 – Jose, James
18 - Ali
21 - Guofei Jiang: RDF, DAML
23 - Wayne Chung: JXTA
25
28
30 – Valentino Crespi: examples
Thayer School of Engineering
Dartmouth
May
May
May
May
May
May
May
May
May
May
May
May
May
May
2 – Vince Berk
5
6
7
9
12
14
16
19 – Projects
20 – Projects
21 – Projects
23 – Projects
26 – Projects
28 – no class
Lecture 6 Overview
• RDF Overview
• Homework 2 discussion
Thayer School of Engineering
Dartmouth
RDF Overview
•
•
•
•
Resource Description Framework
World Wide Web Consortium (W3C) effort
See http://www.w3c.org/TR/rdf-primer
A language for representing information
about “resources” in the World Wide Web.
• Implementation of syntax follows XML
Thayer School of Engineering
Dartmouth
RDF Model
• Basic unit is a triple
(subject, predicate, object)
Think of this as (thing, property, value)
•
•
•
•
Example (web page, creator, person)
This is an RDF “statement”
Each item can be identified by a URI
Uniform Resource Identifier ala URL
Thayer School of Engineering
Dartmouth
Compare with databases
• Relational DB model –
Create Table Patient:
ID (Integer)
Name (String)
Address (String)
Birthdate (String)
Gender (String)
SSN (Integer)
Thayer School of Engineering
Dartmouth
Relational Database Table
ID
Name
Address
Birthdate
Gender
SSN
234
John Smith
18 Main
03/03/73
M
123456789
1432
Mary Jones
173
Lebanon
05/16/47
F
987654321
The relation itself is the “object”.
It has properties ie, ID, name, etc
Those properties have values
Thayer School of Engineering
Dartmouth
RDF example
<rdf:RDF xmlns:rdf =“…” xmlns:patient=“…”>
<patient:ID rdf:about=“http://…/234”>
<patient:Name>John Smith</patient:Name>
</patient:ID>
</rdf:RDF>
<rdf:RDF xmlns:rdf =“…” xmlns:patient=“…”>
<patient:ID rdf:about=“http://…/234”>
<patient:Address>18 Main</patient:Address>
</patient:ID>
</rdf:RDF>
Thayer School of Engineering
Dartmouth
RDF example…
<rdf:RDF xmlns:rdf =“…” xmlns:patient=“…”>
<patient:ID rdf:about=“http://…/234”>
<patient:Name>John Smith</patient:Name>
<patient:Address>18 Main</patient:Address>
</patient:ID>
</rdf:RDF>
Thayer School of Engineering
Dartmouth
RDF Goals
school
attends
student
is a
is a
John
is a sibling of
Mary
Infer that John attends school, etc
Thayer School of Engineering
Dartmouth
Assignment 2 due April 30
Teams to build
1. SQL Server with a simple database
2. Web services interface to SQL Server
transforming database records to XML
3. Client to interact with SQL via XML/RDF
Form 3 teams and details of DB and client
April 16, teams
April 18, plans for each team and
agreements
Thayer School of Engineering
Dartmouth
Project Requirements
• Identify a concrete problem related to
data transfer and processing OR a
development “tool” that would be useful
for people to use
• Apply as many aspects of web services
to the concrete problem as you can
• Metrics – technical difficulty, novelty,
completeness
• Individual or class effort?
Thayer School of Engineering
Dartmouth