[redland-dev] xml:lang problems
Sebastian Dietzold
sebastian at dietzold.de
Fri Sep 24 07:57:53 BST 2004
Hi there,
i've tested a little bit with redland. I like it, because of its php
bindings and i want to use it for some private and university projects.
How can i read the language of a literal? I've seen that the
librdf_node_to_string function glues literal and xml:lang attribute with a
@ together but this means that the Literals in these two statements had
identical strings, isnt it?
<rdf:Description rdf:about="http://sebastian.dietzold.de/terms/me">
<foaf:nick xml:lang="de">Seebi</foaf:nick>
</rdf:Description>
<rdf:Description rdf:about="http://sebastian.dietzold.de/terms/me">
<foaf:nick>Seebi at de</foaf:nick>
</rdf:Description>
Or it is possible to check the language in another way?
And what about included elements? The Literal from the statement
<rdf:Description xml:lang="de" rdf:about="http://sebastian.dietzold.de/terms/me">
<foaf:nick>Seebi</foaf:nick>
</rdf:Description>
should also returned in this way as "Seebi at de" or am i wrong?
How do you solve this problem actually? I hope, i'm not the first who has
to deal with the xml:lang attribute :-)
thanks for help
bye
Seebi
--
http://sebastian.dietzold.de/
More information about the redland-dev
mailing list