- From: Damian Steer <damian.steer@hp.com>
- Date: Thu, 08 Sep 2005 14:21:40 +0100
- To: David Pratt <fairwinds@eastlink.ca>
- CC: semantic-web@w3.org
-----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:23:52 UTC