W3C home > Mailing lists > Public > www-archive@w3.org > February 2004

Re: [w3photo] RDF and ID's

From: Masahide Kanzaki <post@kanzaki.com>
Date: Mon, 9 Feb 2004 13:18:00 +0900
Message-Id: <p04320400bc4cb273dd3a@[[192.168.0.4]]>
To: Greg Elin <elin@unitboy.com>
Cc: Libby Miller <Libby.Miller@bristol.ac.uk>, semantic-photolist@unitboy.com

Hi Greg,

>I mean we've talked about using rectangle or path, but if we are
>thinking recursively, wouldn't ultimately make more sense to say:
>foaf:Image (an object)
>      image:width (a property)
>      image:height (a property)
>      image:HasPart (an object)
>         HasPart: width (a property)
>         HasPart: height (a property)
>
>Or put another way, would we *ever* have an image:hasPart without
>having an image:Rectangle? From the vocab, if an image has a
>image:hasPart it must have an image:points.


You can use rdf:parseType="Resource" to make hasPart behave as an object
while being a property.

 <foaf:Image rdf:about='...Closingpanel5.gif'>
  <image:width>535</image:width>
  <image:height>367</image:height>
  <image:hasPart rdf:parseType='Resource'>
   <image:points>6,106 84,181</image:points>
   <dc:description>Joseph Hardin looking interested</dc:description>
   ...

However, you cannot put rdf:ID on this hasPart (actually you can, but with
totally different meaning). Also, the spec defines the value of
image:points to be interpreted according to its subject type, e.g., if the
parent is image:Circle, the value means "X,Y R", etc.

I think the syntax with image:Rectangle is better for clarity and
interoperability. But if image:Rectangle is a problem for you, maybe you
can use the above syntax for internal use of Fotonotes as a transitional
format (you may want to add an extra property like
<fotonotes:selectionId>1</fotonotes:selectionId> inside the image:hasPart).
This is a legal RDF, and a clever tool may be able to guess that this
implies a Rectangle from the value of image:points.


cheers,

-- 
KANZAKI, Masahide a.k.a. masaka
http://kanzaki.com/info/webwho.rdf
mailto:webmaster(at)kanzaki.com
#Please use above address for a personal mail
#instead of post@kanzaki.com, which is for list only.
==================================
This is the TEMPORARY discussion list for the W3 Semantic-Photo History
Project. For questions, contact greg@fotonotes.net.

Subscribe Instructions
To:   semantic-photolist-request@unitboy.com
Body: subscribe

Unsubscribe Instructions
To:   semantic-photolist-request@unitboy.com
Body: unsubscribe

Help
To:   semantic-photolist-request@unitboy.com
Body: help
Received on Sunday, 8 February 2004 23:23:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:39 GMT