[foaf-dev] FOAF in RDFa, Using dcterms with foaf:Publication

Damian Steer pldms at mac.com
Sat Aug 6 16:07:51 CEST 2011

On 4 Aug 2011, at 06:53, Bruce Whealton wrote:

> I was curious as to whether one needs to use a vocabulary like bibo: bibliography for referencing publications, like books, magazines, etc.  I was given that recommendation at some point.  Are there not enough terms in dcterms to pretty much cover this?  It certainly is less complex.  Does anyone have experience using this?

As Karen says, bibo is an extension of dc, not an alternative to it. The bibo documentation uses dc in many places, [1] and it's possible to follow the bibo docs and not use anything from the bibo namespace. [2]

> Regarding RDFa, for specifying foaf data.  I haven’t been able to find an answer doing a search online as to whether various attributes can be used on almost any tag or is it only a few tags.  For example, this is how I used foaf:depiction
> <img rel="foaf:depiction" resource="http://brucewhealton.us/photos/BruceCloseup.jpg"  src="http://brucewhealton.us/photos/BruceCloseup.jpg"/>
> I don’t know if the resource attribute is redundant or not.

Well it's redundant in the sense that you have repeated the url, but to remove the repetition you need to rearrange a little:

<span rel="foaf:depiction">
    <img src="http://brucewhealton.us/photos/BruceCloseup.jpg"/>

(you may have a suitable enclosing tag already)

And yes, you can use RDFa attributes everywhere. If you care about validation you'll need the rdfa+xhtml dtd.


[1] <http://bibotools.googlecode.com/svn/bibo-ontology/trunk/doc/index.html>
[2] Bibo is partly a way to use dc, foaf etc, together with some more specialised terms introduced where other vocabs have gaps. The former aspect is sometimes called an 'application profile' in the dc community.

More information about the foaf-dev mailing list