Re: rdflib lang:xml attribute on properties

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