From W3C Wiki
Jump to: navigation, search

"rdf:resource" is a shorthand.

Instead of...

   <rdf:Description rdf:about="URI"/>

...you just write:

 <property rdf:resource="URI"/>

In RDF, we're making a big graph. Sometimes, the nodes in the graph represent things that are available on the web. We want to draw a tie that node in the graph to that thing on the web. That's what rdf:Description rdf:about does- it connects the Description node to the thing on the web.

Here's from my FOAF file:

  <foaf:homepage rdf:resource="http://www.speakeasy.org/~lion/"/>

This looks like it's the following graph:

(Person) --homepage--> http://www.speakeasy.org/~lion/

In reality, when you undo the RdfResource shorthand, it's drawing the following graph:

(Person) --homepage--> (Description) --about--> http://www.speakeasy.org/~lion/


According to this page, rdf:resource is a shorthand.

I am a little confused- some times, we seem to use "Descriptions." Other times, we don't seem to.

In my FOAF, it just reads:

<foaf:Person rdf:nodeID="me">
  <foaf:name>Lion Kimbro</foaf:name>
  <foaf:homepage rdf:resource="http://www.speakeasy.org/~lion/"/>
  <foaf:phone rdf:resource="tel:206.440.0247"/>

My home page gets an rdf:resource, shorthand for a description. But why isn't the other stuff description as well?

I suppose because it doesn't have a URL.

Does everything that has a URL, also have a specification by class "Description"?

Well, here's something- my telephone doesn't have a URL, but it's included. Or maybe it does? It's prefaced with "tel:", so perhaps that's a URL as well.

-- LionKimbro DateTime(2004-06-06T03:28:37)