Hello Dibyanshu, did you find a solution to your problem? It's a long time since I tried that Protege plugin, but it never worked for me. Although it does not directly answer your problem, I can recommend you two other solutions:
1) http://semanticweb.org/wiki/RDFReactor is a code generation plugin for Jena and Sesame. I never tried it but there exist several papers about it. 2) umlTUmany: This is a novel, very flexible code generator that enables the transformation of UML class diagram annotation into OWL and Java code. It has been applied successfully to the integration of IT project management data, recently. If you want to give it a try, I can recommend you to download https://bitbucket.org/agruenwald/custom-itpm-builds/downloads the ITPM prototype. It includes the Semantic Model Editor, which you can use to create and manage reusable models, and to generate OWL ontologies, and Java code (beans, DAOs, unit tests) directly from the UI. On Fri, Jan 31, 2014 at 12:54 PM, Dibyanshu Jaiswal <[email protected]>wrote: > Hi! > Does any body has a working example of How to use the the Java code > generated by Protege-OWL Java code tool. for a given Ontology. > Browsing thorugh the generated java code i have found that code/package > consists of a factory class corresponding to the ontology. My main aim is > to use these code so that it helps in creating individuals of a given > class. > > Further digging down the code to a specific class, it contains only add, > remove, collection and has functions for a given property associated with > the class. > > I am unable to figure out the usage of such methods defined in the class. > Say suppose, if I want to add a literal/resource to a property of a class, > how can that be done. > > Looking forward for some sample exaple running code with basic > functionality. > Thanks in advance. > > -- > *Dibyanshu Jaiswal* > Mb: +91 9038304989 > -- Andreas Grünwald Tel.: +43 650 77 82340
