[rdfweb-dev] The inverse of depicts

Dan Brickley danbri at w3.org
Fri Apr 1 01:08:55 UTC 2005


* Norman Walsh <ndw at nwalsh.com> [2005-03-31 19:54-0500]
> On IRC today, I was reminded that the right way to express depicts is,
> for example:
> 
> <rdf:Description rdf:about="someURI">
>   <foaf:depicts>
>     <wn:Snowman/>
>   </foaf:depicts>
> </rdf:Description>
> 
> And that's fine as far as it goes, but I also want to be able to
> collect together depictions. I want to express the inverse of this
> relationship: foaf:depiction.
> 
> When I was misusing rdf:resource, like so:
> 
>   <foaf:depicts rdf:resource="http://xmlns.com/wordnet/1.6/Snowman"/>
> 
> I could construct the inverse with a couple of n3 rules:
> 
>   { ?p foaf:depicts ?q } => { ?q foaf:depiction ?p } .
>   { ?p foaf:depiction ?q } => { ?q foaf:depicts ?p } .

those rules are still correct...

In RDF/XML you could write

<wn:Snowman>
 <foaf:depiction rdf:resource="someURI"/>
</wn:Snowman>

does that help?

dan
 

> What's the right way to express (and construct) the inverse now that
> I'm doing it "right"?
> 
>                                         Be seeing you,
>                                           norm
> 
> -- 
> Norman Walsh <ndw at nwalsh.com> | CNN is one of the participants in the
> http://nwalsh.com/            | war. I have a fantasy where Ted Turner
>                               | is elected president but refuses
>                               | because he doesn't want to give up
>                               | power.--Arthur C. Clark



> _______________________________________________
> rdfweb-dev mailing list
> rdfweb-dev at vapours.rdfweb.org
> wiki: http://rdfweb.org/topic/FoafProject
> http://rdfweb.org/mailman/listinfo/rdfweb-dev




More information about the foaf-dev mailing list