![]() |
|||||||||
![]() |
|||||||||
|
|
|||||||||
|
December 28, 2003
RDF intro, part 4
Last time I talked about "triples", which are the elementary nugget in RDF. What's a triple? Have a look:
<rdf:Description
rdf:about='http://bigfractaltangle.com'
dc:title='Big Fractal Tangle' />
This triple is saying, "The resource 'http://bigfractaltangle.com' has the title 'Big Fractal Tangle." It's a single fact, expressed as an RDF statement, or triple. The three parts that make it a triple are:
Every RDF statement has a resource, a predicate, and an object. To see it another way, we can take the Grammar Rock approach: each sentence has a subject and a predicate. The subject is the resource we're talking about. The predicate is the thing we're saying about it. Before things get murky, it's important to understand that what the RDF folks are calling a "predicate" is actually a "predicate name". Seems like everyone drops the "name" part, even though in grammar (and logic), a predicate is both the name (dc:title) and its object (Big Fractal Tangle) together. Just to make things more confusing, the name/value combo is usually called a property in RDF. So in RDF-land, a predicate is a name and a property is pair. Once more, an RDF triple (statement) is comprised of a resource (subject), a predicate (property name), and an object (property value). Technically, each piece is actually a URI reference to the thingy in question, with the exception of the object, which can also be a "literal" (right-here, right-now value). Here are two more triples: <rdf:Description rdf:about='http://zombo.com' dc:subject='everything' /> <rdf:Description rdf:about="#tim"> <qed:favoriteSite rdf:resource='http://zombo.com' /> </rdf:Description> The first says that the zombo.com resource has a subject of 'everything' (a literal). The second says that my favorite website is the resource zombo.com. Take note of the two ways I'm writing the properties. The first is contained in the Description tag. The second is a tag in its own right, between the start and end Description tags. Why have both? Well, some properties, such as the second one, can't be written "inline", since you can't have XML attributes (rdf:resource) inside XML attributes (qed:favoriteSite). Other than that, some people just prefer one way over the other. Many of you XML fans may still be wondering, "Can't I do all this in XML? Why RDF? Why triples? Why Zombo?" Well, yesterday I hinted at the "pick-up-sticks" nature of RDF. Tomorrow I'll rest my case by describing in detail the wholesome goodness of incomplete interconnectedness.
Comments |
About Me Contact Me being real blogosphere events interconnectedness isabel making money musings olpc photo stories saving the world semantic web squeak etoys tidepool and storymill usability waveplace computer literacy new videos from st john pilot back from st john immuexa turns ten XO donor comments photos from haiti and st john pilots haitian pilot starts give two, keep none story: fall 2007 good press RDF Intro Angela Talk: a semweb introduction W3C Semantic Web Original Road Map SciAm Article SemanticWeb.org RDF Resource Guide SchemaWeb SUMO Full Article Index April 2008 March 2008 February 2008 January 2008 November 2007 October 2007 September 2007 December 2006 September 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 September 2005 August 2005 July 2005 May 2005 April 2005 March 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 link to this site
![]()
|
||||||||
![]() |
|||||||||
|
"Big Fractal Tangle" is a phrase used by Tim Berners-Lee at ISWC 2003
to describe his vision of the Semantic Web (used with permission) "Tidepool" and "Storymill" are trademarks of Immuexa Corporation. Website design copyright © 2003-2004 by Immuexa. |
|||||||||