Jena Rules and OSGI

2014-11-07 Thread Iturraspe Barturen, Urtza
Good morning, I am working with Jena SDB and OSGI, developing with Eclipse and Bnd Tools plugin. I want to execute a Jena rule and include infModel to JenaSDB Model, but It doesn't work in a REST service using OSGI. I have tested the code and it's works well if I don't use this in a OSGI

Re: Jena Rules and OSGI

2014-11-07 Thread Zahir Kali
Your rules are in OWL format? As i see, you are extending an OWL reasoner but you want use Jena rules format. Zahir KALI Master 2 Architecture et ingénierie de logiciel et de web Université Montpellier 2 Tel: 06 73 81 06 08 Github: https://github.com/ZahirKali?tab=repositories Le Vendredi 7

RE: Jena Rules and OSGI

2014-11-07 Thread Iturraspe Barturen, Urtza
First of all, thanks for your response... My rule follows this format: https://wiki.csc.calpoly.edu/OntologyTutorial/wiki/AddingRulesToOntologiesWithJena [DescriptionOrNameOfRule: (condition to be met) (another condition) - (fact to assert) (another fact to assert) ] Example: [AddingJim:

Re: ApacheCon EU 2014?

2014-11-07 Thread Claude Warren
Sorry I'm going to miss it. :( Claude On Thu, Nov 6, 2014 at 8:29 PM, Andy Seaborne a...@apache.org wrote: I'll be there Saturday to Thursday, staying at the conference hotel. It'll be good to meet up. The entire programme is http://apacheconeu2014.sched.org/ with the linked data talks

Re: ApacheCon EU 2014?

2014-11-07 Thread Stian Soiland-Reyes
We found some money, so I'll join as well. On 6 November 2014 20:29, Andy Seaborne a...@apache.org wrote: I'll be there Saturday to Thursday, staying at the conference hotel. It'll be good to meet up. The entire programme is http://apacheconeu2014.sched.org/ with the linked data talks

Re: Jena Rules and OSGI

2014-11-07 Thread Zahir Kali
No, your rules are in Jena rules format. The problem is that your rules are in Jena format but in the code, you are calling the OWL reasoner. Solution: Call the GenericReasoner instead of the OWL reasoner. Like this: String rules = [AddingJim: - (sf:Jim rdf:type sf:Person) (sf:Jim

Re: Jena Rules and OSGI

2014-11-07 Thread Dave Reynolds
I don't know of a reason why jena rules shouldn't work under OSGI. You are creating your file in java.io.tmpdir then reading it from /tmp so if java.io.tmpdir is different under your OSGI runner that would have an effect. I would debug by reducing the number of moving parts. Created a