This content has been marked as final. Show 4 replies
RDF Bag is not so widely used in practice. It's a bit hard to generate and query. A more common way is to define a property like :containsElement (and on which you can easily define an owl:inverseOf, for example, :elementContainedBy)
I have my Model's stored in Oracle DB as triples.
I want to create some rules like inverseOf , contains using jena as i dont want to create rules on DB side.
Is there anyway i can do that on jena side or using owl.
It would be great if you could share a simple example of using owl with jena for my reference.
Thanks and Regards,
Here is a sketch illustrating the idea.
GraphOracleSem oracleGraph = ... you need to use attachment with OWLPRIME ...
// After inference, you will see iterm1 containedBy MyBagXYZ
For details on GraphOracleSem, data loading, and performInference, please refer to Chapter 7 of the following document.
Thanks. it helped me working in my code.