I've been working on some RDF output for the Open Library APIs, and
have run into a question about the use of rdf:value vs. rdfs:label.
The dc-rdf page [1] has this example using rdf:value for the text of
the person's name:
<dcterms:creator>
<foaf:Person rdf:about="http://example.org/person45">
<rdf:value>John Smith</rdf:value>
<foaf:phone rdf:resource="tel:+358-555-1234567"/>
</foaf:Person>
</dcterms:creator>
My RDF is somewhat different, but I followed the DC use of rdf:value
in two different instances:
1. from http://openlibrary.org/works/OL6037025W.rdf
<dcterms:creator>
<rdf:Description rdf:about="http://openlibrary.org/authors/OL1518080A">
<rdf:value>Lawrence Lessig</rdf:value>
</rdf:Description>
</dcterms:creator>
2. from http://openlibrary.org/books/OL13628443M.rdf
<bibo:authorList rdf:parseType="Collection">
<rdf:Description rdf:about="http://openlibrary.org/authors/OL1518080A">
<rdf:value>Lawrence Lessig</rdf:value>
</rdf:Description>
</bibo:authorList>
In another instance, the author is a value of foaf:name:
3. http://openlibrary.org/authors/OL1518080A.rdf
<foaf:Person rdf:about="http://openlibrary.org/authors/OL1518080A">
<foaf:name>Lawrence Lessig</foaf:name>
</foaf:Person>
I am now hyper-aware of the fact that in three cases I now have three
different ways of encoding a person's identifier and name, which
perhaps means that I should clean that up. But in particular, I have
been asked whether rdf:value shouldn't actually be rdfs:label. I don't
know how to answer that -- but I presume there is an answer. Can
anyone hazard one? In particular, under what circumstances do you use
value/label?
Thanks in advance,
kc
[1] http://dublincore.org/documents/dc-rdf/
--
Karen Coyle
[log in to unmask] http://kcoyle.net
ph: 1-510-540-7596
m: 1-510-435-8234
skype: kcoylenet
|