[rdfweb-dev] Re: FOAF Schema Validation

Julian Bond julian_bond at v...
Wed Jan 22 08:30:37 UTC 2003


Jim Ley <jim at j...> wrote:
>> BTW. Could someone point me at a description of what "Range" and
>> "Domain" mean?
>
>http://www.w3.org/TR/rdf-schema/#ch_domain
>but none to clear...

Yup that's as clear as mud.

I read http://xmlns.com/foaf/0.1/ that Domain said that the Property 
must be a sub element of the Domain. And that Range meant that the 
Property *may* contain a sub element of Range.

So looking at img.
<Person>
<img />
</Person>
was valid and so was
<Person>
<img>
<image />
<img>
</Person>

But then people have coded up

<Person>
<knows>
<mbox_sha1sum></mbox_sha1sum>
</knows>
</Person>

Which looks wrong to me. Preferring

<Person>
<knows>
<Person>
<mbox_sha1sum>[1]</mbox_sha1sum>
</Person>
</knows>
</Person>

ISTM it would be useful for FOAF to follow both RDF and XML rules. An 
agreed syntax would provide clearer guidance to authors and allow an XML 
interpretation of the data without preventing the community from reading 
it as RDF and extending it as RDF as required.

[1]Still puzzles me that
<mbox rdf:resource="some at e...">
while
<mbox_sha1sum>some at e... SHA1</mbox_sha1sum>

-- 
Julian Bond Email&MSM: julian.bond at v...
Webmaster: http://www.ecademy.com/
Personal WebLog: http://www.voidstar.com/
CV/Resume: http://www.voidstar.com/cv/
M: +44 (0)77 5907 2173 T: +44 (0)192 0412 433



More information about the foaf-dev mailing list