W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2005

Re: RDF Schema and Internationalization

From: David Pratt <fairwinds@eastlink.ca>
Date: Thu, 08 Sep 2005 09:20:50 -0300
To: Jon Hanna <jon@hackcraft.net>
Cc: www-rdf-interest@w3.org
Message-id: <FDF43236-2062-11DA-B91E-000A27B3B070@eastlink.ca>

Great! Thanks Jon. That is what I was hoping would be the case but 
since this is new to me just wanted to verify this.  I realize this may 
be out of scope for this list but I am using python rdflib.  I have 
contacted the author of the software but no response yet. I am 
presently not able to add lang:xml attribute to properties when adding 
data. Anyone with any experience with rdflib to provide any pointers. 
There is an api but few examples and googling very little by the way of 
discussions, lists etc for the library or rdf xml in general.

For example:

# Create a namespace object for the Friend of a friend namespace.
FOAF = Namespace("http://xmlns.com/foaf/0.1/")

# Create an identifier to use as the subject for Donna.
donna = BNode()

# Add triples using store's add method.
store.add((donna, RDF.type, FOAF["Person"]))
store.add((donna, FOAF["nick"], Literal("donna")))
store.add((donna, FOAF["name"], Literal("Donna Fales")))

# Serialize the store as RDF/XML to the file foaf.rdf.
store.save("foaf.rdf", format="pretty-xml")

Serializing produces:

<?xml version="1.0" encoding="utf-8"?>
     <foaf:name>Donna Fales</foaf:name>


On Thursday, September 8, 2005, at 06:52 AM, Jon Hanna wrote:

> David Pratt wrote:
> Note that we are now using a new list at semantic-web@w3.org
>>  I am not clear about how to deal with internationalize data however. 
>>  Let's use a product as an example.  If it has properties 
>> (predicates) such as a hasSKU, hasTitle, hasDescription, the title 
>> and description properties could be in different languages. How does 
>> one deal with internationalization in the schema.  Do I have to 
>> create properties like hasTitleEn, hasTitleFr, hasTitleEs  etc. so my 
>> schema will handle multiple languagesor is there another way. It 
>> seems this approach would not be a very dynamic and involve much 
>> duplication in my schema which is already large. I would appreciate 
>> pointers on what I should do.  Many thanks.
> Let hasTitle etc. allow for multiple values.
> Then have an English value, a French, and so on.
> When rendering for humans select the value appropriate for their 
> language preferences.
> Since this is potentially bloaty in the case of a user-agent that has 
> sent an accept-languages header tou could also restrict the values 
> transmitted in a given transfer to only those appropriate.
Received on Thursday, 8 September 2005 12:20:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:56 UTC