How to get domain value of a given objectProperty by it's range value with OWLAPI
up vote
0
down vote
favorite
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 ?
java owl-api
add a comment |
up vote
0
down vote
favorite
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 ?
java owl-api
what did you try? where is the Java code? I mean, you have to start with something, e.g. load the ontology, create the reasoner. Once you have the reasoner, read Javadoc (always do this by the way) and you'll find this method
– AKSW
Nov 8 at 9:50
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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 ?
java owl-api
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 ?
java owl-api
java owl-api
asked Nov 8 at 9:43
Catty42
327
327
what did you try? where is the Java code? I mean, you have to start with something, e.g. load the ontology, create the reasoner. Once you have the reasoner, read Javadoc (always do this by the way) and you'll find this method
– AKSW
Nov 8 at 9:50
add a comment |
what did you try? where is the Java code? I mean, you have to start with something, e.g. load the ontology, create the reasoner. Once you have the reasoner, read Javadoc (always do this by the way) and you'll find this method
– AKSW
Nov 8 at 9:50
what did you try? where is the Java code? I mean, you have to start with something, e.g. load the ontology, create the reasoner. Once you have the reasoner, read Javadoc (always do this by the way) and you'll find this method
– AKSW
Nov 8 at 9:50
what did you try? where is the Java code? I mean, you have to start with something, e.g. load the ontology, create the reasoner. Once you have the reasoner, read Javadoc (always do this by the way) and you'll find this method
– AKSW
Nov 8 at 9:50
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
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
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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
add a comment |
up vote
0
down vote
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
add a comment |
up vote
0
down vote
up vote
0
down vote
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
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
answered Nov 10 at 23:27
Ignazio
7,8511922
7,8511922
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205066%2fhow-to-get-domain-value-of-a-given-objectproperty-by-its-range-value-with-owlap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what did you try? where is the Java code? I mean, you have to start with something, e.g. load the ontology, create the reasoner. Once you have the reasoner, read Javadoc (always do this by the way) and you'll find this method
– AKSW
Nov 8 at 9:50