Hi,
You can read in the file as a new model, make your changes and write it
out like you do in the source code you posted(mke shure you closed the
filehandler before writing it out again). This will overwrite the
existing file with the changes.
By the way you also can update the existing model and write it out. This
will have the same effect.
Regards
Stefan
Am 29.05.2013 03:27, schrieb Faisal Sarfraz:
Hi All
I am new to jena. I am trying to update RDF file which is placed
externally. Currently i am using this code to write it
String fileName = "details.rdf";
FileWriter out = new FileWriter( fileName );
try {
model.write( out, "RDF/XML-ABBREV" );
}
finally {
try {
out.close();
}
catch (IOException closeException) {
// ignore
}
}
this is writing it to external file now i want to update it after certain
changes. is there a way?
Please help