people.apache.org: blog language? feedback?

It was pointed out a few days ago that the FOAF files we’d beenĀ using for creating the people.apache.org site weren’t valid RDF! They had been at various points earlier in the development, but as I added various additional pieces of information it seems I stopped checking the validity of the output. Whoops!

The output has been corrected and a discussion about some more changes is taking place, but one aspect that I’d like to find a way to add back in languages for weblogs. How do you add a language to a weblog entry in a FOAF file?

The site has been live for a short while now, so anyone have any comments to pass back? If you have comments, good ro bad, send them along to site-dev at apache dot org and we’ll be happy to listen. The site may have been developed by a small group, but it really belongs to every committer at the ASF!

This entry was posted in General. Bookmark the permalink.

4 Responses to people.apache.org: blog language? feedback?

  1. http://dublincore.org/documents/dcmes-xml/#sec2-5 says “XML provides an xml:lang attribute that can be used on any element. This provides a way to describe the language used for the content of the element. The DCMES provides a Language element which is used to describe the language of the resource”

    So I think it would look like the following, using xml:lang to show that the title I provided is an English one, and dc:language to show that the foaf:Document is in English:

    Dave Brondsema’s blog
    en

  2. Grr.. no preview nor warnings about stripping tags. Let’s try again:

    {foaf:weblog}
    {foaf:Document rdf:about=”http://brondsema.net/blog”}
    {dc:title xml:lang=”en”}Dave Brondsema’s blog{/dc:title}
    {dc:language}en{/dc:language}
    {/foaf:Document}
    {/foaf:weblog}

  3. david says:

    dc:language looks like what we need. I guess we should also reflect the language of the title, though I’m less convinced by that. After all, as long as it’s correctly encoded it should display OK?

  4. Yep, I think so. Practically speaking, using xml:lang on dc:title would only be needed if you wanted to distinguish an English title and a Spanish title, for example.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>