- From: Charles McCathieNevile <charles@w3.org>
- Date: Wed, 29 Sep 2004 05:32:00 -0400 (EDT)
- To: public-esw-desc@w3.org
- Cc: Frank Leahy <frank@backtalk.com>
(or where it was taken, but that's not the example I had)
I made a simple height property. Simple if you don't mind syntax things - it
uses a datatype to describe what you mean by height. But then lets you
describe how many storeys up or down you are from the ground - which is
something people are more likely to know thann their altitude above sea level
or something similar. (Except mountaineers...)
Saying that you are on the ground looks like
<hi:height xmlns:hi='http://www.w3.org/2001/sw/Europe/200409/geox/hi#'
rdf:datatype='http://www.w3.org/2001/sw/Europe/200409/geox/hi#etage'>0</hi:height>
(you probably want to move the namespace to where namespaces go, and you
might want to use an entity hack instead of writing the datatype in full. Or
make a simple script :-)
And describing a photo taken on the first floor looks like this :
<rdf:RDF
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:dc='http://purl.org/dc/elements/1.1/'
xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#'
xmlns:foaf='http://xmlns.com/foaf/0.1/'
xmlns:hi='http://www.w3.org/2001/sw/Europe/200409/geox/hi#'
>
<rdf:Description
rdf:about='http://swordfish.rdfweb.org/photos/2002/01/21/001497.JPG'>
<foaf:depicts>
<geo:SpatialThing>
<geo:lat>51.47026</geo:lat>
<geo:long>-2.59466</geo:long>
<hi:height
rdf:datatype='http://www.w3.org/2001/sw/Europe/200409/geox/hi#etage'>1</hi:height>
<dc:description>The couch at Libby's, when it was still
blue.</dc:description>
</geo:SpatialThing>
</foaf:depicts>
</rdf:Description>
</rdf:RDF>
(which is http://www.w3.org/2001/sw/Europe/200409/geox/fotex.rdf copied out)
There's a schema that describes it:
http://www.w3.org/2001/sw/Europe/200409/geox/hi.rdf
cheers
Chaals
--
Charles McCathieNevile http://www.w3.org/People/Charles tel: +61 409 134 136
SWAD-E http://www.w3.org/2001/sw/Europe fax(france): +33 4 92 38 78 22
Post: 21 Mitchell street, FOOTSCRAY Vic 3011, Australia or
W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France
Received on Wednesday, 29 September 2004 09:32:00 UTC