Re: sparql algebra differences jena 2.13.0/3.n

2016-09-18 Thread Paul Tyson
I looked at some more queries that worked in jena 2.x but seem to hang in 3.x. They all follow the same pattern of a complex FILTER query on string values. Rewriting the filter conditions into subgraph patterns solved the problem. Is this a defect induced by algebra optimizations in 3.x? Or, is

Re: Jena rules not working

2016-09-18 Thread javed khan
Thanks a lot Dave, let me try it. I hope it will help. Regards On Sun, Sep 18, 2016 at 1:28 PM, Dave Reynolds wrote: > On 18/09/16 21:24, javed khan wrote: > >> Thanks Lorenz and Dave, I have corrected the http://www.semanticweb.org# >>

Re: Jena rules not working

2016-09-18 Thread Dave Reynolds
On 18/09/16 21:24, javed khan wrote: Thanks Lorenz and Dave, I have corrected the http://www.semanticweb.org# Student to ?x but it does not work.Actually it does not save the updated marks/GPA of student and when I remove the Jena rules part, it then updates and

Re: Jena rules not working

2016-09-18 Thread javed khan
Thanks Lorenz and Dave, I have corrected the http://www.semanticweb.org# Student to ?x but it does not work.Actually it does not save the updated marks/GPA of student and when I remove the Jena rules part, it then updates and save the GPA. I also try the SPARQL

Re: Jena rules not working

2016-09-18 Thread Lorenz Buehmann
The second condition of your rule doesn't make any sense as the subject is Student and it should be ?x. On 18.09.2016 17:41, javed khan wrote: > This code does not work. I want to save student marks/GPA in the file and > based on GPA assign students to GoodStudent or WorstStudents sub classes of

Re: Jena rules not working

2016-09-18 Thread Dave Reynolds
On 18/09/16 16:41, javed khan wrote: This code does not work. You haven't shown us the data and haven't said in what way it doesn't work. I want to save student marks/GPA in the file and based on GPA assign students to GoodStudent or WorstStudents sub classes of Student via Jena rules.

Jena rules not working

2016-09-18 Thread javed khan
This code does not work. I want to save student marks/GPA in the file and based on GPA assign students to GoodStudent or WorstStudents sub classes of Student via Jena rules. OntModel model=ModelFactory.createOntologyModel(); InputStream in =FileManager.get().open("C://std.owl");

Re: Jena rules Error

2016-09-18 Thread Dave Reynolds
On 18/09/16 14:37, javed khan wrote: Hello Dave, thank you for your comment but is the semantic (logic) in the rule above correct? Because it does not give me the required result and when I query ?student rdf:type std:GoodStudent, it does not give me any result. It should work if the details

Re: Jena rules Error

2016-09-18 Thread javed khan
Hello Dave, thank you for your comment but is the semantic (logic) in the rule above correct? Because it does not give me the required result and when I query ?student rdf:type std:GoodStudent, it does not give me any result. Regards On Sun, Sep 18, 2016 at 1:11 AM, Dave Reynolds

Re: Jena rules Error

2016-09-18 Thread Dave Reynolds
On 17/09/16 22:31, javed khan wrote: The error goes away but the rules does not work i-e I can not find the rdf type of GoodUser/GoodStudent. Also after result display, it gives me some exception . Exception in thread "AWT-EventQueue-0" com.hp.hpl.jena.reasoner.rulesys.Rule$ParserException: