140 likes | 298 Views
RDF, RDF, RDF…. Lecture 22. 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>
E N D
RDF, RDF, RDF…. Lecture 22
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>
RDF Equivalent <?xml version="1.0"?> <rdf:RDFxmlns: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:Resourcerdf: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:Movementrdf:about="http://www.yasd.com/dynaearth/monsters3.htm"> <pstcn:movementType>Add</pstcn:movementType> <pstcn:reason>New Article</pstcn:reason> </pstcn:Movement> </rdf:RDF>
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
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
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.
N3 Serialization • N Triples: subjectpredicateobject • <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
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."
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.