W3C home > Mailing lists > Public > semantic-web@w3.org > September 2005

Re: rdflib lang:xml attribute on properties

From: David Pratt <fairwinds@eastlink.ca>
Date: Thu, 08 Sep 2005 10:30:23 -0300
To: Damian Steer <damian.steer@hp.com>
Cc: semantic-web@w3.org
Message-id: <B5B15DF3-206C-11DA-B91E-000A27B3B070@eastlink.ca>

Absolutely!  Thanks, that did it.

Regards,
David

On Thursday, September 8, 2005, at 10:21 AM, Damian Steer wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David Pratt wrote:
>>
>
>> An example of the library is below that came with the library.  I am
>> assuming there is a way to specify the languages on a property or
>> literal so that when serialized with give me something like this for
>> example <foaf:nick xml:lang="en">donna</foaf:nick> and when converted 
>> to
>> raw triples with give me donna@en.
>
> Looking at the rdflib source [1] I see Literal has a slot for language.
> Try Literal(lexical_value, lang)? Looks like it should work.
>
> nb lang is part of the literal, not the property.
>
> hth
>
> Damian
>
> [1] http://svn.rdflib.net/trunk/rdflib/Literal.py
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFDIDrkAyLCB+mTtykRAh4DAJ4sFChySpY6WitO1W0EZU65fbzd+gCfdBWv
> V+XUsGQzZuNKBedW1JCrujQ=
> =BE/b
> -----END PGP SIGNATURE-----
>
Received on Thursday, 8 September 2005 13:30:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:41:47 UTC