1 Reply Latest reply on Aug 13, 2010 3:45 PM by 715399

    How to modify a triple?

    771415
      Hi,

      How can we modify a triple?

      For example, to modify an id I do:
      UPDATE owltst a
      SET a.id = '7'
      WHERE a.triple.GET_SUBJECT() = '<http://www.example.org/family/Tom>'

      But to modify the subject, i don't know because the column's name is triple then how can I have only the subject?
        • 1. Re: How to modify a triple?
          715399
          Hi,

          One way to do it would be by using the SDO_RDF_TRIPLE_S constructor:

          UPDATE owltst a
          SET a.triple = SDO_RDF_TRIPLE_S(....)
          WHERE a.triple.GET_SUBJECT() = '<http://www.example.org/family/Tom>'

          Regards,
          Vladimir
          1 person found this helpful