Discussion:
External Reasoners in Jena
Abduladem Eljamel
2016-10-30 14:35:04 UTC
Permalink
Hello,,
I know that this mailing list is not the right place to discuss Pellet reasoning problems; however, my question is about the caparison between Jena reasoning and Pellet reasoning.
I wrote SWRL rules and applied Pellet reasoner in protégé and then I wrote the same rules by Jena general rules and applied Jena reasoning. I applied both reasoners on the same ontology and RDF data. The inferred results are completely different. Does it make sense?
The other question is about using Pellet reasoning in Jena. I have managed to include Pellet API with Jena application but I do not know how to include SWRL rules?

I would be very grateful if anyone could help me or tell me about another place to ask?
Thanks in advance
Abdul
Lorenz B.
2016-10-30 17:00:52 UTC
Permalink
Pellet is an OWL-DL reasoner + some support for SWRL.

And Protege (resp. the underlying OWL API) and Jena are totally
different framework with different support for OWL 2 DL.

Thus, additional OWL DL reasoning based data might be inferred that is
not covered if you only use your own rules with the GenericRuleReasoner
in Jena. If you don't have rules for e.g. the transitive closure of
rdfs:subClassOf, you would already get differences indeed.

But, we don't know your rules, nor do we know how you perform reasoning
in Jena. We need some code and example data to see what you're doing.
Yet, as I said there are obvious differences w.r.t. the inferred results.


Lorenz
Post by Abduladem Eljamel
Hello,,
I know that this mailing list is not the right place to discuss Pellet reasoning problems; however, my question is about the caparison between Jena reasoning and Pellet reasoning.
I wrote SWRL rules and applied Pellet reasoner in protégé and then I wrote the same rules by Jena general rules and applied Jena reasoning. I applied both reasoners on the same ontology and RDF data. The inferred results are completely different. Does it make sense?
The other question is about using Pellet reasoning in Jena. I have managed to include Pellet API with Jena application but I do not know how to include SWRL rules?
I would be very grateful if anyone could help me or tell me about another place to ask?
Thanks in advance
Abdul
A. Soroka
2016-10-30 17:56:07 UTC
Permalink
As far as differences in operation, it might be helpful if you could provide some complete examples (input data, code, outputs with differences highlighted). There are a lot of places your two approaches could have diverged.

SWRL and Jena rules operate in very different ways-- SWRL begins with OWL and brings in rules, the Jena rules functionality starts with RDF and brings in rules on that. It's not easy to see how it could be that you "wrote the same rules".

---
A. Soroka
The University of Virginia Library
Post by Abduladem Eljamel
Hello,,
I know that this mailing list is not the right place to discuss Pellet reasoning problems; however, my question is about the caparison between Jena reasoning and Pellet reasoning.
I wrote SWRL rules and applied Pellet reasoner in protégé and then I wrote the same rules by Jena general rules and applied Jena reasoning. I applied both reasoners on the same ontology and RDF data. The inferred results are completely different. Does it make sense?
The other question is about using Pellet reasoning in Jena. I have managed to include Pellet API with Jena application but I do not know how to include SWRL rules?
I would be very grateful if anyone could help me or tell me about another place to ask?
Thanks in advance
Abdul
Abduladem Eljamel
2016-10-30 21:24:24 UTC
Permalink
Thank you "A. Soroka" for answering my email.
I would like to use SWRL in Semantic Web application using Jena. I have managed to include Pellet API with Jena in my application but I do not know how to include SWRL rules with Pellet in the same application?
I know that this mailing list is not the right place to discuss Pellet reasoning but I would be very grateful if anyone could help me or tell me about another place to ask because I couldn't find any place to help.

Thanks in advance
Abdul

From: A. Soroka <***@virginia.edu>
To: ***@jena.apache.org
Sent: Sunday, 30 October 2016, 17:56
Subject: Re: External Reasoners in Jena

As far as differences in operation, it might be helpful if you could provide some complete examples (input data, code, outputs with differences highlighted). There are a lot of places your two approaches could have diverged.

SWRL and Jena rules operate in very different ways-- SWRL begins with OWL and brings in rules, the Jena rules functionality starts with RDF and brings in rules on that. It's not easy to see how it could be that you "wrote the same rules".

---
A. Soroka
The University of Virginia Library
Post by Abduladem Eljamel
Hello,,
I know that this mailing list is not the right place to discuss Pellet reasoning problems; however, my question is about the caparison between Jena reasoning and Pellet reasoning.
I wrote SWRL rules and applied Pellet reasoner in protégé and then I wrote the same rules by Jena general rules and applied Jena reasoning. I applied both reasoners on the same ontology and RDF data. The inferred results are completely different. Does it make sense?
The other question is about using Pellet reasoning in Jena. I have managed to include Pellet API with Jena application but I do not know how to include SWRL rules?
I would be very grateful if anyone could help me or tell me about another place to ask?
Thanks in advance
Abdul
A. Soroka
2016-10-30 23:47:45 UTC
Permalink
Please explain a little more fully how you are using Pellet and Jena together. When you say that you have "managed to include Pellet API with Jena" do you mean simply having both frameworks available on the classpath?

---
A. Soroka
The University of Virginia Library
Post by Abduladem Eljamel
Thank you "A. Soroka" for answering my email.
I would like to use SWRL in Semantic Web application using Jena. I have managed to include Pellet API with Jena in my application but I do not know how to include SWRL rules with Pellet in the same application?
I know that this mailing list is not the right place to discuss Pellet reasoning but I would be very grateful if anyone could help me or tell me about another place to ask because I couldn't find any place to help.
Thanks in advance
Abdul
Sent: Sunday, 30 October 2016, 17:56
Subject: Re: External Reasoners in Jena
As far as differences in operation, it might be helpful if you could provide some complete examples (input data, code, outputs with differences highlighted). There are a lot of places your two approaches could have diverged.
SWRL and Jena rules operate in very different ways-- SWRL begins with OWL and brings in rules, the Jena rules functionality starts with RDF and brings in rules on that. It's not easy to see how it could be that you "wrote the same rules".
---
A. Soroka
The University of Virginia Library
Post by Abduladem Eljamel
Hello,,
I know that this mailing list is not the right place to discuss Pellet reasoning problems; however, my question is about the caparison between Jena reasoning and Pellet reasoning.
I wrote SWRL rules and applied Pellet reasoner in protégé and then I wrote the same rules by Jena general rules and applied Jena reasoning. I applied both reasoners on the same ontology and RDF data. The inferred results are completely different. Does it make sense?
The other question is about using Pellet reasoning in Jena. I have managed to include Pellet API with Jena application but I do not know how to include SWRL rules?
I would be very grateful if anyone could help me or tell me about another place to ask?
Thanks in advance
Abdul
Abduladem Eljamel
2016-10-31 10:09:00 UTC
Permalink
Thank you Soroka.
Yes, I haveincluded Pellet API for Jena to classpath of Jena Application. Also, I wouldlike to mention that Pellet API for Jena does not support Jena 3.
I would liketo use Pellet because it supports SWRL rules but I do not know how to include these rules.
This is anexample to my code:   ...
importorg.mindswap.pellet.jena.PelletReasonerFactory;
...
Model myModel =myDataset.getDefaultModel();
OntModelmyOntModel = ModelFactory.createOntologyModel(PelletReasonerFactory.THE_SPEC);
ReasonermyReasoner = PelletReasonerFactory.theInstance().create();
myReasoner = myReasoner.bindSchema(myOntModel);
InfModelmyInfModel = ModelFactory.createInfModel(myReasoner, myModel);
...ThanksAbdul

From: A. Soroka <***@virginia.edu>
To: ***@jena.apache.org
Sent: Sunday, 30 October 2016, 23:47
Subject: Re: External Reasoners in Jena

Please explain a little more fully how you are using Pellet and Jena together. When you say that you have "managed to include Pellet API with Jena" do you mean simply having both frameworks available on the classpath?

---
A. Soroka
The University of Virginia Library
Post by Abduladem Eljamel
Thank you "A. Soroka" for answering my email.
I would like to use SWRL in Semantic Web application using Jena. I have managed to include Pellet API with Jena in my application but I do not know how to include SWRL rules with Pellet in the same application?
I know that this mailing list is not the right place to discuss Pellet reasoning but I would be very grateful if anyone could help me or tell me about another place to ask because I couldn't find any place to help.
Thanks in advance
Abdul
Sent: Sunday, 30 October 2016, 17:56
Subject: Re: External Reasoners in Jena
As far as differences in operation, it might be helpful if you could provide some complete examples (input data, code, outputs with differences highlighted). There are a lot of places your two approaches could have diverged.
SWRL and Jena rules operate in very different ways-- SWRL begins with OWL and brings in rules, the Jena rules functionality starts with RDF and brings in rules on that. It's not easy to see how it could be that you "wrote the same rules".
---
A. Soroka
The University of Virginia Library
Post by Abduladem Eljamel
Hello,,
I know that this mailing list is not the right place to discuss Pellet reasoning problems; however, my question is about the caparison between Jena reasoning and Pellet reasoning.
I wrote SWRL rules and applied Pellet reasoner in protégé and then I wrote the same rules by Jena general rules and applied Jena reasoning. I applied both reasoners on the same ontology and RDF data. The inferred results are completely different. Does it make sense?
The other question is about using Pellet reasoning in Jena. I have managed to include Pellet API with Jena application but I do not know how to include SWRL rules?
I would be very grateful if anyone could help me or tell me about another place to ask?
Thanks in advance
Abdul
Andy Seaborne
2016-10-31 10:19:22 UTC
Permalink
Post by Abduladem Eljamel
Also, I wouldlike to mention that Pellet API for Jena does not support Jena 3.
Pellet is not connected to Apache Jena. There is nothing the project
here can do.

Andy
Abduladem Eljamel
2016-10-31 10:57:46 UTC
Permalink
Thanks Andy and every one answered my emails, I really appreciate that.
I know that there is no relation between Pellet and Apache Jena projects. I mentioned that Pellet does not support Jena 3 not to ask for help. I am sorry for including it in my email.
Jena's documentation mentions that it supports some external reasoners. One of these reasoners is Pellet and I am using it because it supports SWRL rules. 
I am asking if anyone knows how to apply SWRL rules by using Pellet reasoner in Jena framework application. My example code is in the my last email.

Thanks again.
Abdul




From: Andy Seaborne <***@apache.org>
To: ***@jena.apache.org
Sent: Monday, 31 October 2016, 10:19
Subject: Re: External Reasoners in Jena
Post by Abduladem Eljamel
Also, I wouldlike to mention that Pellet API for Jena does not support Jena 3.
Pellet is not connected to Apache Jena. There is nothing the project
here can do.

    Andy
Lorenz B.
2016-11-01 11:27:08 UTC
Permalink
The are forks of Pellet that work with Apache Jena 3, e.g. Openllet[1]

[1] https://github.com/Galigator/openllet
Post by Abduladem Eljamel
Thanks Andy and every one answered my emails, I really appreciate that.
I know that there is no relation between Pellet and Apache Jena projects. I mentioned that Pellet does not support Jena 3 not to ask for help. I am sorry for including it in my email.
Jena's documentation mentions that it supports some external reasoners. One of these reasoners is Pellet and I am using it because it supports SWRL rules.
I am asking if anyone knows how to apply SWRL rules by using Pellet reasoner in Jena framework application. My example code is in the my last email.
Thanks again.
Abdul
Sent: Monday, 31 October 2016, 10:19
Subject: Re: External Reasoners in Jena
Post by Abduladem Eljamel
Also, I wouldlike to mention that Pellet API for Jena does not support Jena 3.
Pellet is not connected to Apache Jena. There is nothing the project
here can do.
Andy
--
Lorenz BÃŒhmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center
Loading...