1 Reply Latest reply on Jul 27, 2009 9:27 PM by alwu-Oracle

    can any one help me to do crud operations?

    713923
      Hi Friends,

      I am struggling a lot since one month i dint find any solutions.

      i am using sparql and jena framework.i want to update and delete few triples.here in jena framework we have three columns.subj,prob,obj.

      Three columns are mandatory in a triple to delete a triple.

      is there any way in update with out deleting existing record can we modify existing as internally its ( delete +add =update ) .

      i want to delete a record/triple where i know subj and property but no value i.e object.

      i want to update a record/triple where i know subj and property but no value i.e object.

      Please do help me to resolve it ASAP

      Thanks & Regards,

      Sajid +91 9985032322

      Teleparadigm ltd
      India
        • 1. Re: can any one help me to do crud operations?
          alwu-Oracle
          Why do you care about how update is implemented?

          To delete/update all matching records/triples with unknown object value, you can use the
          Jena's graph.find() method that takes a TripleMatch object and returns an ExtendedIterator of all
          matching triples. Then you can iterate through them and delete/update as you wish.

          Alternatively, you can use a JDBC call to use a DELETE statement directly. Note that you will likely need
          to create an additional index(s) to speed up DELETE.

          Hope it helps,

          Zhe Wu