2009/7/6 Juan Sequeda <[email protected]>: > Hi Everybody, > > In a recent thread there was a lot of discussion of how the content > negotiation through .htaccess can be complicated. Several people started to > send their solutions to this problem through PHP and Python scripts. I > believe that these solutions are a very important resource for the whole LOD > community. Hence, Tom and I have set up a section on linkeddata.org on > Content Negotiation: > > http://linkeddata.org/conneg-303-redirect-code-samples > > Currently we have examples in PHP and Python. There is a RoR script on the > way too! If anybody else has any other code examples of how to do Content > Negotiation, please let me know so we can add your link on the website! > > Thanks to everybody who has contributed!
There is some java code from the pubby part of the dbpedia project at [1] that I have successfully used and adapted for my projects. It could be adapted as an example I think. Cheers, Peter [1] http://dbpedia.svn.sourceforge.net/viewvc/dbpedia/pubby/src/de/fuberlin/wiwiss/pubby/negotiation/
