owl-api

Retrieve OWL Individuals with same Object Properties using OWL API 4.0

a 夏天 提交于 2019-11-30 15:53:42
I am using OWL Api 4.0 in eclipse 3.4 with a simple ontology in Protege 4. I have two classes "Ward" and "Gaurdian". Individuals of these classes are related by object property isWardOf. How can i retrieve the individuals of class Ward that are related to same individual of Class Gaurdian. consider the following figure:- I want to retrieve the Fact that Peter and Allice are related or siblings as they both are connected to Jack. Any rough clue as to how to achieve this using OWL API 4.0. My complete owl file is affixed:- <?xml version="1.0"?> <!DOCTYPE Ontology [ <!ENTITY xsd "http://www.w3