|
Hey all I'm building a web application using Protege API, i'm trying to add new instance to a class i'm using this code
if i look for the individual at run time it's ok but no change in owl file. thanks |
|
see - http://answers.semanticweb.com/questions/19886/commit-changes-to-owl-using-protege-api re saving file """ owlModel.save() - http://protege.stanford.edu/protege/3.4/docs/api/owl/edu/stanford/smi/protegex/owl/jena/JenaOWLModel.html#save(java.net.URI) seeAlso: http://protegewiki.stanford.edu/wiki/ProtegeOWL_API_Advanced_Topics#Loading_and_Saving_Files
""" |


Are you saving the ontology to file? Changes in memory are not automatically mapped to the file.
Actually the owl file is set inside a local webserver folder and i'm accessing it through localhost/~url~/test.owl
As Signified said (+1), most times you'll have to explicitely call a "save" somehow, because otherwise it is only in memory.