xiedaode / jenabean

Automatically exported from code.google.com/p/jenabean
0 stars 0 forks source link

XMLLiteral datatype support in JenaBean for Bean2RDF #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define a Bean with a property of type LocalizedString
2. When the model is used to generate RDF/XML A NullPointerException is 
encountered in JenaHelper.toLiteral(Model m, Object o).
3. This is due to the fact that the Object of Type LocalizedString is not 
handled in Writer. It is handled only in Rdf2Bean.

What is the expected output? What do you see instead?
The rdf shud contain the property with xml:lang attribute
<x:name xml:lang="en">test_en</x:name>

What version of the product are you using? On what operating system?
Jena 1.06 on Windows 7

Please provide any additional information below.
I have attached the changed file, please look out for the comment in the file
//Made changes by Chiths to handle xml:lang Literal

Original issue reported on code.google.com by chi...@gmail.com on 18 Jul 2013 at 8:11

Attachments: