You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Laurent MARTIN <la...@gmail.com> on 2012/10/08 17:52:09 UTC

Trouble with a distinct query

Hello,

This email to inform you about this bug.
I am not in your dev list for the moment. Don't know if it is necessary to
inform you about following bug :

I am using a jena-fuseki-0.2.4 for my developments and obtained an error in
following case :

My request :
SELECT *DISTINCT*  ?o ?name ?field1 WHERE   {
?o rdf:type myPrefix:MyClass .
?o rdfs:label ?name .
 ?URI myPrefix:myProperty ?field1
}

If one of my object do not have rdfs:label property, I obtained an HTTP 500
error with DISTINCT, but the request is OK without DISTICNT.

I know I have an error on my side as It should not be the case : all my
objects must hava a label as described in my ontology file
However, is that normal that "no distinct" give an answer while distinct
fail in error ?

Regards,
Laurent MARTIN

Re: Trouble with a distinct query

Posted by Andy Seaborne <an...@apache.org>.
On 08/10/12 16:52, Laurent MARTIN wrote:
> Hello,
>
> This email to inform you about this bug.
> I am not in your dev list for the moment. Don't know if it is necessary to
> inform you about following bug :
>
> I am using a jena-fuseki-0.2.4 for my developments and obtained an error in
> following case :
>
> My request :
> SELECT *DISTINCT*  ?o ?name ?field1 WHERE   {
> ?o rdf:type myPrefix:MyClass .
> ?o rdfs:label ?name .
>   ?URI myPrefix:myProperty ?field1
> }
>
> If one of my object do not have rdfs:label property, I obtained an HTTP 500
> error with DISTINCT, but the request is OK without DISTICNT.
>
> I know I have an error on my side as It should not be the case : all my
> objects must hava a label as described in my ontology file
> However, is that normal that "no distinct" give an answer while distinct
> fail in error ?
>
> Regards,
> Laurent MARTIN
>

Without some information about the data, or some other complete, minimal 
example, then it's a bit hard to see how investigate this.

What storage are you using behind Fuseki?  How much data have you got? 
What is the stacktrace for the 500?

I have tried with 0.2.5-SNAPSHOT and it worked but I don't have enough 
information to recreate your setup.

	Andy

PS Your query has a cross product in it --

SELECT *DISTINCT*  ?o ?name ?field1 WHERE   {
?o rdf:type myPrefix:MyClass .
?o rdfs:label ?name .
# Below is unconnected to the first part of the query
?URI myPrefix:myProperty ?field1
}


Re: Trouble with a distinct query

Posted by Andy Seaborne <an...@epimorphics.com>.
Hi there - you don't seem to be subscribed to the list.

Subscribe: users-subscribe@jena.apache.org

and rely to the confirmation message.

Without some information about the data, or some other complete, minimal 
example, then it's a bit hard to see how investigate this.

What storage are you using behind Fuseki?

I have tried with 0.2.5-SNAPSHOT and it worked so I suspect we need 
complete details to investigate.

	Andy

On 08/10/12 16:52, Laurent MARTIN wrote:
> Hello,
> This email to inform you about this bug.
> I am not in your dev list for the moment. Don't know if it is necessary
> to inform you about following bug :
> I am using a jena-fuseki-0.2.4 for my developments and obtained an error
> in following case :
> My request :
> SELECT _DISTINCT_  ?o ?name ?field1 WHERE   {
> ?o rdf:type myPrefix:MyClass .
> ?o rdfs:label ?name .
>   ?URI myPrefix:myProperty ?field1
> }
> If one of my object do not have rdfs:label property, I obtained an HTTP
> 500 error with DISTINCT, but the request is OK without DISTICNT.
> I know I have an error on my side as It should not be the case : all my
> objects must hava a label as described in my ontology file
> However, is that normal that "no distinct" give an answer while distinct
> fail in error ?
> Regards,
> Laurent MARTIN