1 Reply Latest reply on Jul 19, 2010 8:37 AM by 766393

    How to write this user-defined rule in oracle

    782382
      Hi

      I got a rule:

      INSERT INTO mdsys.semr_uni_rb VALUES(
      'uni_rule1',
      '(?x :authorOf ?p) (?y :authorOf ?p)',
      'x<>y',
      '(?x :coAuthor ?y)',
      SEM_ALIASES(SEM_ALIAS('','http://www.owl-ontologies.com/UniModel.owl#')));

      x is author of p, y is author of p, x is not equal to y, so x is coauthor of y

      I am wondering if there is any other way to indicate that x is not equal to y in this user-defind rule.

      Thanks

      HUI
        • 1. Re: How to write this user-defined rule in oracle
          766393
          Hi,

          I haven't had much chance to work with user-defined rules, but if I remember this well enough, I think the third column is FILTER. You might want to try this :

          INSERT INTO mdsys.semr_uni_rb VALUES(
          'uni_rule1',
          '(?x :authorOf ?p) (?y :authorOf ?p)',
          *'?x != ?y',*
          '(?x :coAuthor ?y)',
          SEM_ALIASES(SEM_ALIAS('','http://www.owl-ontologies.com/UniModel.owl#')));

          I hope this helps.

          Regards,
          Julien