- From: Charles McCathieNevile <chaals@opera.com>
- Date: Sat, 18 Jun 2005 16:25:32 +0200
- To: "Petko Petkov" <p.d.petkov@gmail.com>
- Cc: "semantic-web@w3.org" <semantic-web@w3.org>
On Sat, 18 Jun 2005 10:39:10 +0200, Petko Petkov <p.d.petkov@gmail.com> wrote: > <item rdf:about="http://www.w3.org"><title>Some > Title</title><link>http://www.w3.org</link><description>Description > Here</description><ns:writtenBy>Bob</ > ns: writtenBy ></item> > <item rdf:about="http://www.w3.org"><title>Some Title > 2</title><link>http://www.w3.org</link><description>Description Here 2</ > description><ns:writtenBy>John</ns: writtenBy ></item> The solution is to model the information differently. Instead of making everything a direct property of the resource, you can use a blank node to group some information: <item r:about="http://www.w3.org"> <dc:title xml:lang="en">Some title</dc:title> <dc:description r:parseType="Resource"> <dc:creator>Bob</dc:creator> <ns:text r:parseType="Literal"> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Whee! <strong>HTML Inside</strong></p> </div> </ns:text> </dc:description> <link r:datatype=""http://www.w3.org/2001/XMLSchema#anyURI">http://www.w3.org</link> </item> This says that the item has a description which is a thing with text and a creator. The description has no URI, so you cannot generally merge it with another decsription, even one which has the same properties. (This is useful if two books have an author with the same name, but you don't yet know anything else about them. There are lots of people with the same name and some of them write books...) So you can then look for the thing you actually want... cheers Chaals -- Charles McCathieNevile chaals@opera.com hablo español - je parle français - jeg lærer norsk Here's one we prepared earlier: http://www.opera.com/download
Received on Saturday, 18 June 2005 14:25:48 UTC