Re: Problem in saving class instances to file

2016-12-03 Thread Lorenz B.
> Hello Lorenz, I tried to load the model from one owl file and then stored > it to another file (though both files have same data, but different names). > When I try to load model from owl file and store also into same file, it > then works fine and data is not overwritten. I don't understand. Do

Re: Problem in saving class instances to file

2016-12-02 Thread Martynas Jusevičius
Where is the code?? On Fri, Dec 2, 2016 at 2:23 PM, kumar rohit wrote: > Hello Lorenz, I tried to load the model from one owl file and then stored > it to another file (though both files have same data, but different names). > When I try to load model from owl file and store also into same file,

Re: Problem in saving class instances to file

2016-12-02 Thread kumar rohit
Hello Lorenz, I tried to load the model from one owl file and then stored it to another file (though both files have same data, but different names). When I try to load model from owl file and store also into same file, it then works fine and data is not overwritten. On Fri, Dec 2, 2016 at 2:00

Re: Problem in saving class instances to file

2016-12-02 Thread Lorenz B.
> If you really want to write each user to a separate file > > I dont want each user to a separate file, rather I want to save all the > individuals/students in one file. Some times ago, it worked for me but I > have made some changes to my code and now when I enter an individual, it > replaces th

Re: Problem in saving class instances to file

2016-12-02 Thread kumar rohit
If you really want to write each user to a separate file I dont want each user to a separate file, rather I want to save all the individuals/students in one file. Some times ago, it worked for me but I have made some changes to my code and now when I enter an individual, it replaces the existing o

Re: Problem in saving class instances to file

2016-12-02 Thread Claude Warren
It sounds to me like Kumar is thinking that he needs to store each student in an individual file and load that. Kumar, if that is the case then I think you misunderstand how the graph storage works. Or you have an unusual use case. In most cases you would simply write the entire graph to disk (U

Re: Problem in saving class instances to file

2016-12-02 Thread Lorenz B.
> Hi > I want to create student instances of my Student class and enter his > details. Then at the end I writes model to the file. > > OntClass std = model.getOntClass(ns + "Student"); > Individual mystd = std.createIndividual(ns + stdname); > > In the file when I enter name of a student, i-e

Problem in saving class instances to file

2016-12-01 Thread kumar rohit
Hi I want to create student instances of my Student class and enter his details. Then at the end I writes model to the file. OntClass std = model.getOntClass(ns + "Student"); Individual mystd = std.createIndividual(ns + stdname); In the file when I enter name of a student, i-e Bob, it saves to