Menu

API to erase/update Triples in TripleStore

Help
2015-07-23
2015-08-02
  • Shankar Nair

    Shankar Nair - 2015-07-23

    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

     
  • M Levin

    M Levin - 2015-07-27

    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

     
  • Shankar Nair

    Shankar Nair - 2015-08-02

    Hi Mikhail,

    Exactly what I needed! :-)

    This library has been really useful in my project.
    Thank you for the efforts!

    Sincerely,
    Shankar

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.