RDF: Basic Ideas: Towards Knowledge Network
RDF: Basic Ideas: Towards Knowledge Network
4. <rdf:Description rdf:about="http://www.example.org/index.html">
5. <exterms:creation-date>August 16, 1999</exterms:creation-date>
6. </rdf:Description>
7. </rdf:RDF>
Describing a Web Page's Creation Date
Several Statements About the Same Resource
shows a graph saying "the document
'http://www.w3.org/TR/rdf-syntax-grammar' has a title
'RDF/XML Syntax Specification (Revised)' and has an
editor, the editor has a name 'Dave Beckett' and a home
page 'http://purl.org/net/dajobe/' ".
Exercise: Mark all the
resources and properties on the
page given to you and write in
the form of a statement on the
back side of the page and return
it with your name and
registration number
• Exercise: Write the following information into a set of
statements (triples) and then draw them into and
RDF graph
• The article on giant squids, titled "Architeuthis Dux,"
at http://burningbird.net/articles/monsters3.htm,
written by Shelley Powers, explores the giant's
squid's mythological representation as the legendary
Kraken as well as describing current efforts to
capture images of a live specimen. In addition, the
article also provides descriptions of a giant squid's
physical characteristics. It is part of a four-part
series, described at
http://burningbird.net/articles/monsters.htm and
entitled "A Tale of Two Monsters."
• The article is uniquely identified by its URI,
http://burningbird.net/articles/monsters3.htm.
• The article was written by Shelley Powers—predicate is written by, value is Shelley
Powers.
• The series is titled "A Tale of Two Monsters"—series predicate is title, value is A Tale
of Two Monsters.
• The article associates the giant squid with the legendary Kraken—predicate is
associates, value is Kraken and giant squid.
• The article provides physical descriptions of the giant squid—predicate is provides, value
is physical description of giant squid.
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:pstcn="http://burningbird.net/postcon/elements/1.0/">
<rdf:Description rdf:about="http://burningbird.net/articles/monsters3.htm">
<pstcn:author>Shelley Powers</pstcn:author>
<pstcn:title>Architeuthis Dux</pstcn:title>
<pstcn:series rdf:resource="http://burningbird.net/articles/monsters.htm" />
<pstcn:contains>Physical description of giant squids</pstcn:contains>
<pstcn:alsoContains>Tale of the Legendary Kraken</pstcn:alsoContains>
</rdf:Description>
<rdf:Description rdf:about="http://burningbird.net/articles/monsters.htm">
<pstcn:seriesTitle>A Tale of Two Monsters</pstcn:seriesTitle>
</rdf:Description>
</rdf:RDF>
Another representation
Nesting one resource description in another
shows the connection between the two more
clearly
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:pstcn="http://burningbird.net/postcon/elements/1.0/">
<rdf:Description rdf:about="http://burningbird.net/articles/monsters3.htm">
<pstcn:author>Shelley Powers</pstcn:author>
<pstcn:title>Architeuthis Dux</pstcn:title>
<pstcn:series>
<rdf:Description rdf:about=
"http://burningbird.net/articles/monsters.htm">
<pstcn:SeriesTitle>A Tale of Two Monsters</pstcn:SeriesTitle>
</rdf:Description>
</pstcn:series>
<pstcn:contains>Physical description of giant squids</pstcn:contains>
<pstcn:alsoContains>Tale of the Legendary Kraken</pstcn:alsoContains>
</rdf:Description>
</rdf:RDF>
Subjects and predicates occur in layers,
<rdf:Description rdf:ID="CIT1111">
<rdf:type rdf:resource="http://www.mydomain.org/uni-
ns#course"/>
<uni:courseName>Discrete Maths</uni:courseName>
<uni:isTaughtBy rdf:resource="#949318"/>
</rdf:Description>
<rdf:Description rdf:ID="949318">
<rdf:type rdf:resource="http://www.mydomain.org/uni-
ns#lecturer"/>
<uni:name>David Billington</uni:name>
<uni:title>Associate Professor</uni:title>
</rdf:Description>
Three Types of Container Elements
<rdf:Description rdf:about="http://example.org/courses/6.001">
<s:students>
<rdf:Bag>
<rdf:li rdf:resource="http://example.org/students/Amy"/>
<rdf:li rdf:resource="http://example.org/students/Mohamed"/>
<rdf:li rdf:resource="http://example.org/students/Johann"/>
<rdf:li rdf:resource="http://example.org/students/Maria"/>
<rdf:li rdf:resource="http://example.org/students/Phuong"/>
</rdf:Bag>
</s:students>
</rdf:Description>
</rdf:RDF>
An Alternative or Alt (a resource having type rdf:Alt)
represents a group of resources or literals that are
alternatives (typically for a single value of a
property).
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://example.org/packages/vocab#">
<rdf:Description rdf:about="http://example.org/packages/X11">
<s:DistributionSite>
<rdf:Alt>
<rdf:li rdf:resource="ftp://ftp.example.org"/>
<rdf:li rdf:resource="ftp://ftp1.example.org"/>
<rdf:li rdf:resource="ftp://ftp2.example.org"/>
</rdf:Alt>
</s:DistributionSite>
</rdf:Description>
</rdf:RDF>
A Sequence or Seq (a resource having type
rdf:Seq) represents a group of resources or
literals, possibly including duplicate members,
where the order of the members is significant.
Using rdfs:subPropertyOf
Property (as attribute)
<rdf:Property rdf:ID="phone">
<rdfs:domain rdf:resource="#staffMember"/>
<rdfs:range rdf:resource=
"http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>