4 Replies Latest reply on Sep 10, 2009 3:47 PM by alwu-Oracle

    Query multiple models with different rules indexes

    696067
      I have two models, one containing entailments and one that does not. The second model is very large and does not need any entailments. I want to be able to run SEM_MATCH queries against both models combined as well as the entailments of the first one.
      1) Is there a simple way to do this with SEM_MATCH?
      2) Will a Virtual Model created with both the first and second model contain the entailments of the first?
      (I do not want to specify a rulebase in the CREATE_VIRTUAL_MODEL function since I only want to compute entailments for the first model)
        • 1. Re: Query multiple models with different rules indexes
          alwu-Oracle
          No to 1)

          A Virtual Model created with the first, the second model and a rulebase will contain the entailments of both the first and second model.

          Right now, there is no easy way to query against something like (M1 + inf_for_m1_only) + M2.

          However, you may want to ask yourself the question that why M2 does not need to be included in the inference? Is it going to take much
          longer time to run create_entailment if M2 is included?

          Thanks,

          Zhe Wu
          • 2. Re: Query multiple models with different rules indexes
            696067
            Yes indeed.
            The first graph contains around 300 nodes and the second one has over 50,000 leaves. The first graph makes vast use of transitive "contains" properties and the second also needs to use this property but not transitively since it only has one depth level. Basically my graph has 100+ times as many leaves as nodes and I am trying to optimize for this situation. One of my requirements is to be able to do a model update in under 2 seconds which is impossible if the both leaves and nodes are in a single graph.
            Any ideas as to how I could separate the two models in the SEM_APIS (or Jena framework) or satisfy my requirement for <2 second session-commit in some other way would be greatly appreciated.

            Whoa! In the other post you mentioned that Oracle 11.2 can do incremental entailment updates. Could this feature solve my problem? Please send me a link to the manual as to how this can be done (I couldn't find it myself).

            Edited by: alexi on Sep 9, 2009 2:19 PM
            • 3. Re: Query multiple models with different rules indexes
              alwu-Oracle
              Hi,

              I will post the link to the 11.2 semantic technologies user manual a bit later.

              When you say "do a model update in < 2 seconds," does that time include inference maintenance? Just want to clarify.

              Thanks,

              Zhe Wu
              • 4. Re: Query multiple models with different rules indexes
                alwu-Oracle
                Hi,

                Please try the following two links

                http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11828/toc.htm
                http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11828.pdf

                Thanks,

                Zhe Wu