I would like know if the library exposes an API to erase or modify already existing triples in the tripleStore.
To be more specific, I have a DatatypeProperty of type xsd_string for an instance that I need to modify. I am able to insert it but now I need to update that string literal. So either a eraseOld-insertNew or modifyOld API is what I am looking for.
Also, is there a way to flush the changes back to the OWL file. Something like a save_file() API?
Any help is appreciated.
Cheers,
Shankar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like know if the library exposes an API to erase or modify already existing triples in the tripleStore.
To be more specific, I have a DatatypeProperty of type xsd_string for an instance that I need to modify. I am able to insert it but now I need to update that string literal. So either a eraseOld-insertNew or modifyOld API is what I am looking for.
Also, is there a way to flush the changes back to the OWL file. Something like a save_file() API?
Any help is appreciated.
Cheers,
Shankar
Hello Shankar,
The method to erase triples from the triple store was not exposed. It IS now in the head of the master branch:
void Triple_store::erase(Triple const&);
Thank you for catching this!
Existing nodes and triples cannot be modified. You can create a new literal node and use it in your triples.
There is currently no method to write triples to a file. This will be implemented in the future.
Best
Mikhail
Hi Mikhail,
Exactly what I needed! :-)
This library has been really useful in my project.
Thank you for the efforts!
Sincerely,
Shankar