[rdfweb-dev] Bartering

Dan Brickley danbri at w...
Sat Nov 30 13:44:27 UTC 2002


* Libby Miller <libby.miller at b...> [2002-11-30 13:28+0000]
> 
> hi Lach
> 
> I think seealso is mostly used for pointing to other rdf files. Since
> RDF (like other text) can be embedded in jpgs, that could work.
> 
> My first thought was this:
> 
> <has>
> <wn:Car rdf:about="http://example.com/car.jpg"/>
> </has>
> 
> but that conflates the car with the pic of the car
> maybe
> 
> <has>
> <wn:Car>
> <foaf:depiction df:resource="http://example.com/car.jpg"/>
> </wn:Car>
> </has>
> 
> might be better - that's the approach we've taken to pictures of things
> in codepiction

Yes, that's the way to do it. This says something like 'there exists a 
car and it has a foaf:depiction property with value 'http://example.com/car.jpg'.

If we wanted to use rdfs:seeAlso (a useful thing to do if we know about 
more info elsewhere), it could look like:

...
<has>
<wn:Car>
<foaf:depiction rdf:resource="http://example.com/car.jpg"/>
<rdfs:seeAlso rdf:resource="http://example.com/car/allaboutthecar.rdf"/>
</wn:Car>
</has>

...assuming the relevant XML namespace markup was set up in the enclosing 
document, and that this <has> element was inside a relevant <Person> descriptionor similar.

Note also that doing things this way is pretty friendly to Web indexing apps 
like Google. They know (i) allaboutthecar.rdf is worth investigation (ii) that
it further describes a think of type wn:Car...

...such hints help indexers prioritise. As do document typing hints.

We could also write 

<has>
<wn:Car>
<foaf:depiction rdf:resource="http://example.com/car.jpg"/>
<rdfs:seeAlso>
<eg:FOAFShopDoc rdf:about="http://example.com/car/allaboutthecar.rdf"/>
</rdfs:seeAlso> 
</wn:Car>
</has>

...if we wanted to mention more about the kind of document we're linking to.

Aside re rdf syntax: the attribute which gives the URI for the 
allaboutthecar.rdf doc moves in this latter example from an XML element that 
specifies a relation (seeAlso) to an XML element that specifies a (typed)thing, ie. the eg:FOAFShopDoc element. Accordingly, we use rdf:about instead of 
rdf:resource. This is a possible source of confusion for those not used to
RDF's XML syntax, so just thought I'd mention it here to avoid any puzzlement.

...so, this gives us two flavours of hint for robots indexing a Web of RDF files: the type of thing described by the seeAlso-referenced document, and the 
type of document referenced. In this eg., we have a FOAFShopDoc document that
describes a Car. Other examples might be a CurriculumVitaeDoc that describes 
a person, or a FOAFCorp doc that describes an Organisation...

hope this helps,

Dan



> 
> http://rdfweb.org/2002/01/photo/
> http://jibbering.com/codepiction/
> http://swordfish.rdfweb.org/discovery/2001/08/codepict/
> 
> Libby
> 
> >
> > eg
> > <has>
> > <wn:Car rdfs:seeAlso="http://example.com/car.jpg"/>
> > </has>
> >
> > Or would something else have to be used instead?
> >
> > Sorry to wander off-topic but I'm still trying to get a grasp on all
> > this stuff.
> > --
> > Lach
> > __________________________________________
> > Web: http://illuminosity.net/
> > E-mail: lach @ illuminosity.net
> > MSN: luminosity @ members.evolt.org
> > __________________________________________
> >
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > rdfweb-dev-unsubscribe at egroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> 
> 
> To unsubscribe from this group, send an email to:
> rdfweb-dev-unsubscribe at egroups.com
> 
>  
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.usefulinc.com/pipermail/foaf-dev/attachments/20021130/552c4f32/attachment-0001.pgp


More information about the foaf-dev mailing list