What is the difference between placing instanceof=”prefix:val” vs. rel=”prefix:val” on something? How do I decide between the two?
In the example of hEvent data, why is it better/more accurate to use instanceof=”cal:Vevent” instead of a blank node via rel=”cal:Vevent”?
-m
Jeni Tennison http://www.jenitennison.com
November 11th, 2007 at 3:08 amThey’re saying different things, aren’t they? rel=”prefix:val” is defining statement with a Property called prefix:val, with a resource (defined by the href or content of the element) as its subject.
On the other hand, instanceof=”prefix:val” means that the object you’re talking about is a prefix:val. So prefix:val in an instanceof is a Class identifier. instanceof is a shorthand for rel=”rdf:type” href=”prefix:val”, I think.
They can both be used with blank nodes, so far as I can tell.
mdubinko http://
November 12th, 2007 at 8:58 amThis seems difficult to explain to grandma. :) If the instanceof to rel+href equivalence holds, I wonder if instanceof is even necessary… -m
Push Button Paradise | Blog Archive | Representing structured data on a web page http://dubinko.info/blog/2007/11/13/representing-structured-data-on-a-web-page/
November 13th, 2007 at 5:42 pm[...] About Contact Feed « RDFa question [...]