1 Reply Latest reply on Dec 27, 2010 2:03 PM by Sdas-Oracle

    Update on RDF Triple

    792262
      Hi,

      I have to update the set of triples.

      Is it possible to update the RDF Triple with update statement?

      I am not sure about the below syntax and statement (While trying the below statment getting an error ORA-00927: missing equal sign)

      example

      update articles_rdf_data a
      set a.triple.get_subject()='http://nature.example.com/test'
      where a.triple.get_subject()='http://nature.example.com/Article1';

      Please help me to find a solution to update triple

      Version: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production

      Regards,
      Kavitha.
        • 1. Re: Update on RDF Triple
          Sdas-Oracle
          Try the following (used model name as 'M1', replace it as appropriate):

          update articles_rdf_data a
          set a.triple=sdo_rdf_triple_s('M1','http://nature.example.com/test',a.triple.get_property(),a.triple.get_obj_value())
          where a.triple.get_subject()='http://nature.example.com/Article1'
          or a.triple.get_subject()='<http://nature.example.com/Article1>';