Problem - I have insert query in module, when I fill information in HTML form I am getting error like
Most interesting thing is that when I am writing
I am really confused, any thought on this will be appreciated.
asked 24 Jul '12, 07:40
Imperium is a plugin for Play 1 which provides an alternate JPA implementation, one that is backed by any triple store supported by the Sesame or Jena APIs (via Empire), that you can use more or less the exact same way as you do with its current JPA support.
Imperium is a little out of date, it was not updated for the Play! 1 module registry, though that would be fairly straightforward to do. I don't know what would be entailed for updating it to Play! 2, I'm not aware of all the specifics regarding API changes between the two versions, but there's not a lot of glue code in Imperium so I bet it would be pretty easy to just port it over to Play! 2.
The convenience it provides it that you don't have to worry about the details of working with the triple store, you can do the normal CRUD operations on your Empire-annotated Java beans and it will handle the details of persisting them into your triplestore, TDB in this case. And if you need to switch off TDB for, say SDB, or a Sesame based database, you don't have to change your application code, only your Play! configuration.
I know that doesn't really address the NPE you're seeing, but you have not provided enough information to diagnose that. But I did want to let you know that there are options out there for integration between the Play! framework and the semantic web.
answered 24 Jul '12, 10:06