Re: problem in rewriting query by AlgebraGenerator

2013-04-23 Thread John Liu
Thanks Andy for your quick reply.   I tested Jena 2.10.1 and the problem still exists. Could you please run the attached java code to see if it is a defect?   Thanks, John From: Andy Seaborne a...@apache.org To: users@jena.apache.org Sent: Tuesday, April 23,

Re: problem in rewriting query by AlgebraGenerator

2013-04-23 Thread Rob Vesse
John Apache list strips attachments, if you have a code sample please just paste it into the email or provide a link to a pastebin/similar site with your code sample Rob On 4/23/13 11:02 AM, John Liu john_ws_...@yahoo.com wrote: Thanks Andy for your quick reply. I tested Jena 2.10.1 and the

OntClass.listDeclaredProperties

2013-04-23 Thread David Jordan
When I call listDeclaredProperties with a direct parameter value of false, I get a list of properties associated with a class. But when I pass a value of true, I don’t get any values, yet there are properties directly associated with the class. I do run this with a reasoner, using

Re: OntClass.listDeclaredProperties

2013-04-23 Thread Joshua TAYLOR
On Tue, Apr 23, 2013 at 2:45 PM, David Jordan david.jor...@sas.com wrote: When I call listDeclaredProperties with a direct parameter value of false, I get a list of properties associated with a class. But when I pass a value of true, I don’t get any values, yet there are properties directly

Re: OntClass.listDeclaredProperties

2013-04-23 Thread Joshua TAYLOR
-Original Message- From: Joshua TAYLOR [mailto:joshuaaa...@gmail.com] Sent: Tuesday, April 23, 2013 3:11 PM To: users@jena.apache.org Subject: Re: OntClass.listDeclaredProperties On Tue, Apr 23, 2013 at 2:45 PM, David Jordan david.jor...@sas.com wrote: When I call

Re: problem in rewriting query by AlgebraGenerator

2013-04-23 Thread John Liu
oh I see, thanks Rob.   I paste the class here, you will see the exception error when you run the code.  import com.hp.hpl.jena.query.Query;import com.hp.hpl.jena.query.QueryFactory;import com.hp.hpl.jena.sparql.algebra.AlgebraGenerator;import com.hp.hpl.jena.sparql.algebra.Op;import

Re: problem in rewriting query by AlgebraGenerator

2013-04-23 Thread Rob Vesse
It's a bug in how OpAsQuery converts sub-queries, watch this space for a fix Rob On 4/23/13 12:35 PM, John Liu john_ws_...@yahoo.com wrote: oh I see, thanks Rob. I paste the class here, you will see the exception error when you run the code. import com.hp.hpl.jena.query.Query;import

Re: problem in rewriting query by AlgebraGenerator

2013-04-23 Thread John Liu
Thanks, Rob for your quick reponse.   Is there a defect number that I can track this bug?   Thanks, John From: Rob Vesse rve...@yarcdata.com To: users@jena.apache.org users@jena.apache.org; John Liu john_ws_...@yahoo.com Sent: Tuesday, April 23, 2013 4:13:51

Re: problem in rewriting query by AlgebraGenerator

2013-04-23 Thread Rob Vesse
No I did not file a specific defect yet, please feel free to log a JIRA bug if you wish Rob On 4/23/13 1:37 PM, John Liu john_ws_...@yahoo.com wrote: Thanks, Rob for your quick reponse. Is there a defect number that I can track this bug? Thanks, John

Re: OntClass.listDeclaredProperties

2013-04-23 Thread Ian Dickinson
On 23/04/2013 20:10, Joshua TAYLOR wrote: On Tue, Apr 23, 2013 at 2:45 PM, David Jordan david.jor...@sas.com wrote: When I call listDeclaredProperties with a direct parameter value of false, I get a list of properties associated with a class. But when I pass a value of true, I don’t get any

Re: Import and merging of disjoint ontologies in Jena

2013-04-23 Thread Léonard PETNGA
Hi Ian! Thank you for your prompt response to my email. I didn't mention it but, as far as my objectives are concerned, my 2 questions are not related. These are some clarifications to my initial post. Q1: I just wanted to know whether it's possible to create the the owl file from the java