Re: [Owlim-discussion] delete operation in owlim

2009-12-09 Thread Damyan Ognyanoff
Hi Dhaval,

this is a "feature", not a bug - the statements (including the inferred ones) 
that come from the files listed in the "imports" parameter of your repository 
configuration are treated as "read-only" thus, these are "protected" from 
delete operations - just do not put any data that would be deleted through that 
parameter ...

about the missing update/modify statement operations - there is no such since 
changing any of the triple components (subject, predicate or object) means, 
actually, that the old triple is removed and a new one is asserted instead ...

HTH,
Damyan Ognyanov,
Ontotext AD


  - Original Message - 
  From: Dhaval Thakker 
  To: owlim-discussion@ontotext.com 
  Sent: Wednesday, December 09, 2009 3:40 PM
  Subject: [Owlim-discussion] delete operation in owlim


  Dear list users,
   
  I have been trying to remove (delete) some statements from an ontology 
(schema) with big-owlim using following code :


  OwlimSchemaRepository myOwlim = new OwlimSchemaRepository();
  myOwlim.setDataDir(repoDir);


  Repository sesameRepo = new SailRepository(myOwlim);
  sesameRepo.initialize();


  RepositoryConnection sesameCon = sesameRepo.getConnection();


  Resource S1 = new URIImpl("subject of statement");
  URI  P1= new URIImpl("predicate of statement");
  Value O1 = new URIImpl("object of statement");


 sesameCon.remove(S1, P1,O1);
 sesameCon.commit();




  The above doesn't work, i.e. the deleted statements are still present when 
queried. However, the same code and settings work while deleting 
A-box/instances. Any suggestions?


  Also, on another matter I could not find any code/listings in sesame/bigowlim 
that can allow me to modify/update a statement, any hints? 


  Regards

  Dhaval Thakker



--


  ___
  OWLIM-discussion mailing list
  OWLIM-discussion@ontotext.com
  http://ontotext.com/mailman/listinfo/owlim-discussion
___
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion


[Owlim-discussion] delete operation in owlim

2009-12-09 Thread Dhaval Thakker
Dear list users,

I have been trying to remove (delete) some statements from an ontology
(schema) with big-owlim using following code :

OwlimSchemaRepository myOwlim = new OwlimSchemaRepository();
myOwlim.setDataDir(repoDir);

Repository sesameRepo = new SailRepository(myOwlim);
sesameRepo.initialize();

RepositoryConnection sesameCon = sesameRepo.getConnection();

Resource S1 = new URIImpl("subject of statement");
URI  P1= new URIImpl("predicate of statement");
Value O1 = new URIImpl("object of statement");

   sesameCon.remove(S1, P1,O1);
   sesameCon.commit();


The above doesn't work, i.e. the deleted statements are still present when
queried. However, the same code and settings work while deleting
A-box/instances. Any suggestions?

Also, on another matter I could not find any code/listings in
sesame/bigowlim that can allow me to modify/update a statement, any hints?

Regards

Dhaval Thakker
___
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion