[foaf-dev] Multiple language foaf descriptions

Story Henry henry.story at bblfish.net
Mon Jun 28 10:44:42 CEST 2010


You could put all pages at the same location, and return the right one using content negotiation too I think.... Then the URL of the foaf is always the same but the Content-Location header is different. EG:

$ curl -I http://bblfish.net/people/henry/card 
HTTP/1.1 200 OK
Date: Mon, 28 Jun 2010 08:43:31 GMT
Server: Apache/2.2.9 (Unix) PHP/5.2.6 mod_ssl/2.2.9 OpenSSL/0.9.7d
Content-Location: card.n3
Vary: negotiate,accept,accept-charset
TCN: choice
Last-Modified: Thu, 27 May 2010 08:19:36 GMT
ETag: "69ed-4f9e-4878f0d137ae5;45f8007763c2f"
Accept-Ranges: bytes
Content-Length: 20382
Content-Type: text/rdf+n3; charset=utf-8

So I think I remember that there is a header for language preferences too.

Henry


On 28 Jun 2010, at 10:21, Toby Inkster wrote:

> On Mon, 28 Jun 2010 09:20:25 +0200
> Lorenzo De Tomasi <lorenzo.detomasi at gmail.com> wrote:
> 
>> I think that a single rdf file for each language is the best.By this
>> way, you can specify different data for each language, i.e. en:
>> <foaf:homepage rdf:resource="http://isotype.org"/> | it:
>> <foaf:homepage rdf:resource=" http://isotype.org/?lang=it"/>  
>> 
>> What do you think?
> 
> While individual files per RDF might be a good way of, say, hiding
> English information from Italian-speakers and vice versa, it doesn't
> add anything semantically.
> 
> For instance, the presence of:
> 
> 	<foaf:homepage rdf:resource="http://isotype.org/?lang=it"/>
> 
> in an RDF file written mostly in Italian doesn't imply anything about
> the language of the page <http://isotype.org/?lang=it>, which could
> still be in English, Swedish or Urdu. I think perhaps a better way
> would be to put both homepages in the same RDF file, and use RDF to
> indicate which language the pages are in.
> 
> 	<foaf:homepage>
> 	  <foaf:Document rdf:about="http://isotype.org/">
> 	    <language xmlns="http://purl.org/dc/terms/"
> 	        rdf:resource="http://lexvo.org/id/iso639-3/eng"/>
> 	  </foaf:Document>
> 	</foaf:homepage>
> 	<foaf:homepage>
> 	  <foaf:Document rdf:about="http://isotype.org/?lang=it">
> 	    <language xmlns="http://purl.org/dc/terms/"
> 	        rdf:resource="http://lexvo.org/id/iso639-3/ita"/>
> 	  </foaf:Document>
> 	</foaf:homepage>
> 
> -- 
> Toby A Inkster
> <mailto:mail at tobyinkster.co.uk>
> <http://tobyinkster.co.uk>
> 
> _______________________________________________
> foaf-dev mailing list
> foaf-dev at lists.foaf-project.org
> http://lists.foaf-project.org/mailman/listinfo/foaf-dev



More information about the foaf-dev mailing list