简体   繁体   中英

How to get domain value of a given objectProperty by it's range value with OWLAPI

i'm novice in owlapi, i'd like to get all the inferred individuals of the domain class by giving an individual of the range class. In my ontology i have class "shop" related to class "client" with the objectProperty "isRecommendedTo" after using the reasoner on protégé i get the inferred individulas: shop1 isRecommendedTo Client1 Shop3 isRecommendedTo Client1 Shop4 isRecommendedTo Client1

So, how can i use owlapi in java and give the individual "Client1" and get "Shop1", "Shop" and "Shop4" as results ?

If you're new to the OWL API the fastest way to learn your way around is to start from the tutorial and documentation material and try it out on your ontology. Then you'll be able to ask questions and show the code you're using.

https://github.com/owlcs/owlapi/wiki/Documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM