openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 3
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1284 times and has 2 replies Next Thread
Mar 19, 2008 5:54:05 PM

sisbell
Member



Joined: Mar 7, 2008
Posts: 12
Status: Offline

Updating RDF Repo with Plain Java Beans?

I have a specific problem and I wonder if there are any standard/recommended solutions and/or libraries for solving it.

I have A.jar that contains plain java beans classes. I generate A.owl using the codegen. Then I generate A-concepts.jar, jar of elmo concepts (annotated interfaces), from the A.owl.

I need to populate the RDF repo reading xml files, which are unmarshalled from an XML document to the java bean objects. Can I use the plain java beans directly in updating of the RDF repo (I also have A.owl). Or do I need to copy values from the java beans to the annonated elmo concepts and then store those concepts? Other solutions?
Show Printable Version of Post        Hidden to Guest    http://jroller.com/random7 [Link] Report threatening or abusive post: please login first  Go to top 
Mar 19, 2008 9:46:45 PM

james
OpenRDF.org Consultant
Member's Avatar

Canada
Joined: Jul 21, 2005
Posts: 650
Status: Offline
Re: Updating RDF Repo with Plain Java Beans?

If your java beans classes implement the concept interfaces, then the manager could merge them into the RDF repository. This would then allow you to export the contents into an RDF file.
----------------------------------------
Sesame Consultant
http://leighnet.ca
http://jamesrdf.blogspot.com
Show Printable Version of Post        Hidden to Guest    http://leighnet.ca [Link] Report threatening or abusive post: please login first  Go to top 
Mar 20, 2008 8:54:23 PM

sisbell
Member



Joined: Mar 7, 2008
Posts: 12
Status: Offline

Re: Updating RDF Repo with Plain Java Beans?

Unfortunately, I don't have the option of modifying the original class files, so it looks as though a workable solution is just to do the mappings from my java beans to the concepts. A little tedious but it'll work.
Show Printable Version of Post        Hidden to Guest    http://jroller.com/random7 [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]