OWLPrime and Jena
652134Sep 19 2008 — edited Oct 16 2008Hello,
System Specs:
Oracle 11g
Oracle Jena Adapter 2.0
Jena 2.5.6
I am trying to leverage the transitive, inverse, etc. properties of an ontology I downloaded. The ontology I am using references the Relationship Ontology (RO) from the OBO Foundry. The Relationship Ontology contains several transitive properties including the has_part property. I have a SPARQL query that I execute using Jena. My ontology contains some information in the form: A has_part B, A has_part C, B has_part D. Without creating any entailments, I was able to correctly query my ontology and get 2 results when I ran the query "SELECT * WHERE A has_part ?parts".
Now I want to take the next step and return the transitive cases where A has_part D (via the fact that B has_part D). To accomplish this, I loaded the "main ontology" along with the Relationship Ontology into an Oracle semantic model. Next, I ran the following through SQL*Plus to create the entailments: exec sem_apis.create_entailment(‘ontology_model_idx’,sem_models(‘ontology’), sem_rulebases(‘owlprime’));. The procedure ran fine without any errors. However, I still only get the same 2 results when I run "SELECT * WHERE A has_part ?parts". I am not returning the transitive cases. What else do I need to do? Do I need to add Pellet to my Jena code? If so, why? Aren't the inferences already in the Oracle table?
Thanks,
Chuck