[Pellet-users] [Bulk] Problem with pellet and jena-saving in file inferences

GEORGE LITSIOS litsiosgeorgios at hotmail.com
Sat Jan 24 14:42:33 UTC 2009


> Date: Sat, 24 Jan 2009 13:54:52 +0000> From: ignazio_io at yahoo.it> To: pellet-users at lists.owldl.com> Subject: Re: [Pellet-users] [Bulk] Problem with pellet and jena-saving in file inferences> > GEORGE LITSIOS wrote:> > Hello all,> > > > I have a roblem when i try to save at file my jena model wich use the pellete 1.5.2 reasoner.> > > > I have two properties in my ontology "hasDocument" and "isDocumentOf" that are inverse the one to the other.> > > > I Create my model with this statement: OntModel model_reason = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );> > > > And i'm trying to save the ontology in a file with the folowng code:> > > []snip> > model_reason.writeAll( fileout, "RDF/XML-ABBREV","xsd:"+My_NS );> ^^^^^^^^^^^^^^^^^^> I believe you were advised to avoid setting the last parameter to this, > especially because I think the last parameter must be a URI and this > does not look like one.
 
The My_NS is a URI, but the "xsd:" i put it there so to make all namespaces from the jena model in my file like the namespaces tha protege write at the file when i did my ontology at the protege platform.  My namespaces are all correct with this when i write the base model at the file. But with the base model i do'nt take the inverse properties as i said at my first mail.
> > fileout.close();> > } catch(IOException e){ e.printStackTrace(); }> > > > But with this the program start to running for a long time, the pellete reasoner give me messages all this time like that:> > > []snip> > > and after a lot of time the machine goes out of memory.> > > > Any suggestion please?> > have you tried increasing the heap space for the java VM? try the -Xmx > option (like in java -Xmx200M to give 200 megs of heap space to the VM).> HTH,> I.
I give it -Xmx1024m and after 10minutes of running it goes out of memory again. Is it normal to do 10 minutes?Somewhere i read that is better to copy the reason model to another mem model of jena and after this to write at a file the new jena mem model, but i don't know how to do this. They said that with this we can earn at time.
 
Do you have any other ideas?
 
Thanks for your time
 
With regards
George> > _______________________________________________> Pellet-users mailing list> Pellet-users at lists.owldl.com> http://lists.owldl.com/mailman/listinfo/pellet-users> _______________________________________________> > Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explore_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.owldl.com/pipermail/pellet-users/attachments/20090124/56666806/attachment.htm 


More information about the Pellet-users mailing list