14
RDF, RDF, RDF…. Lecture 22

RDF, RDF, RDF…. Lecture 22. XML Data New Article

Embed Size (px)

Citation preview

Page 1: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

RDF, RDF, RDF….

Lecture 22

Page 2: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

XML Data

<?xml version="1.0"?> <resource>

<uri>http://burningbird.net/articles/monsters3.htm</uri> <history> <movement>

<link>http://www.yasd.com/dynaearth/monsters3.htm </link>

<reason>New Article</reason> </movement>

</history> </resource>

Page 3: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

RDF Equivalent<?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/" xml:base="http://burningbird.net/articles/">

<pstcn:Resource rdf:about="monsters3.htm"> <!--resource movements--><pstcn:history> <rdf:Seq>

<rdf:_3 rdf:resource="http://www.yasd.com/dynaearth/monsters3.htm" /> </rdf:Seq> </pstcn:history> </pstcn:Resource>

<pstcn:Movement rdf:about="http://www.yasd.com/dynaearth/monsters3.htm"> <pstcn:movementType>Add</pstcn:movementType>

<pstcn:reason>New Article</pstcn:reason> </pstcn:Movement>

</rdf:RDF>

Page 4: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

Difference

• XML parse tags with data• Querying

<http://www.yasd.com/dynaearth/monsters3.htm> pstcn:reason ?

• RDF RBDMS• XML/RDF relational databases• OWL ERPs• Ontologies Business Logic

Analogies

Page 5: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

RDF heart and soul

• Data interchange, searching, cataloging, navigation, classification, etc.

• RDF is a description for a data model rather than a description of a specific data vocabulary

Page 6: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

Example: writing a blog

• What is missing:– The article's title is “xxx".– The article's author is “yyy”.– The article is part of a series.– A related article is ...– The article is about a specific topic and its place in

the subject domain.

Page 7: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

N3 Serialization

• N Triples: subject predicate object – <http://weblog.burningbird.net/fires/000805.htm>

<http://purl.org/dc/elements/1.1/creator> Shelley

• Using Q Names– <bbd:000805.htm> dc:creator Shelley.

• Using N3

Page 8: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

Serializing RDF to XML

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."

Page 9: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

Categorizing Information• 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 article's title is "Architeuthis Dux"—predicate is title, value is

Architeuthis Dux. • The article is one of a four-part series—predicate is series member,

value is http://burningbird.net/articles/monsters.htm. • 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.

Page 10: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

RDF

Page 11: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

Same Subject

Page 12: RDF, RDF, RDF…. Lecture 22. XML Data   New Article
Page 13: RDF, RDF, RDF…. Lecture 22. XML Data   New Article

Schema

Page 14: RDF, RDF, RDF…. Lecture 22. XML Data   New Article