[rdfweb-dev] Domain and Range

Dougal Campbell dougal at gunters.org
Tue Feb 4 20:42:04 UTC 2003


Okay, so I run across Ian Davis' Semantic Planet[1] today, and of course
the first thing I do is search for myself. And I see that my FOAF
file[2] is not passing the validation[3], mainly because it complains of
things like:

  Statement object has wrong type
  In the statement <http://dougal.gunters.org/dougal.foaf#dougal>
  <http://xmlns.com/foaf/0.1/workplaceHomepage>
  <http://www.aaacooper.com/> ., the object must be of type
  <http://xmlns.com/foaf/0.1/Document>

I don't feel too bad, though, because everybody else's FOAF seems to
have the same problem.

I know this came up before, but I failed to find the reference when I
searched my archives -- how do the 'domain' and 'range' work for RDF
properties? 'domain' is where the property can live, and 'range' is what
it can contain, right?

Most people are doing this:

  <foaf:Person>
   <foaf:workplaceHomepage rdf:resource="http://example.com"/>
  </foaf:Person>

Should it be this?:

  <foaf:Person>
   <foaf:workplaceHomepage>
    <foaf:Document rdf:resource="http://example.com"/>
   </foaf:workplaceHomepage>
  </foaf:Person>

And perhaps more importantly, should workplaceHomepage and similar
properties be modified to be less restrictive?

[1] http://www.semanticplanet.com/
[2] http://dougal.gunters.org/dougal.foaf
[3] http://www.semanticplanet.com/sources/143/polls/1739/

-- 
Ernest MacDougal Campbell III, MCP+I, MCSE <dougal at gunters.org>
http://dougal.gunters.org/             http://spam.gunters.org/
  Web Design & Development:  http://www.mentalcollective.com/
       This message is guaranteed to be 100% eror frea!




More information about the foaf-dev mailing list