1 Reply Latest reply on Oct 2, 2007 4:47 PM by Mannamal-Oracle

    Nodes connected via sameAs relationship

    502844
      Hello,
      I was wondering if Oracle RDF stores nodes connected via sameAs relationship namely if the predicate is http://www.w3.org/2002/07/owl#sameAs with different node id
      in the table MDSYS.RDF_VALUE$.I mean the column value VALUE_ID.

      Like

      A http://www.w3.org/2002/07/owl#sameAs B (S P O)

      Are A and B given different value ID or same.If not same,can I figure out using same way nodes which are connected via sameAs relationship?

      Thanks,

      Prateek
        • 1. Re: Nodes connected via sameAs relationship
          Mannamal-Oracle
          Hi Prateek,

          No, A and B will not be given the same value_id in the RDF_VALUE$ table. They are after all different nodes, which are connected by the sameAs relationship.

          All nodes related through the sameAs relationship can be retrieved through SDO_RDF_MATCH queries:

          SELECT A, B
          FROM TABLE(SDO_RDF_MATCH(
          '(?A http://www.w3.org/2002/07/owl#sameAs B)',
          SDO_RDF_Models('....'),
          null,
          null,
          null));

          You might want to do inferencing (entailment) using the owl:sameAs property - for example you might like to infer:
          A owl:sameAs B, B myProp C
          => A myProp C

          Such inferencing support (for OWL properties like sameAs) is supported in the recently releasd 11g. It is not supported in 10gR2 (which only supports RDFS and user-defined rules).

          Melli