-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
order clause is not produce an ordered output #133
Comments
Good question... looks like the query engine isn't treating the numbers as real xsd:integers - sort order for unknown datatypes is undefined, and if it thought they were xsd:integers they would be rendered as bare-word integers. Can you show a sample of the input data? |
here is a small example (not terribly small). thank you for your efforts! Prof. Dr. sc.techn. Dr. h.c. Andrew U. Frank On 09/28/2015 11:53 AM, Steve Harris wrote:
|
Is the example attached to the ticket? I can't see it. 4s-import will import anything that's legal RDF, and you can write things like "VII"^^my:romanNumerals, though it won't sort properly, and you can't do arithmetic with it. |
thank you for your hint. i prepared a reduced file for attachement and found that the error is gone - it sorts and the number are shown as 1, 34 etc. |
I don't know I'm afraid... I would guess that the datatype URI is subtly wrong in the source data - but it looked OK to me. You could do a search that returned the datatype URI of the objects of that predicate? |
Ah! Sorry, I've just seen that it's the output of the COUNT() aggregate that not being sorted correctly. This might be a known bug (I remember there was something in this area), but it should be fixable. |
i was however surprised, that the bug disappeared with less data. i will Prof. Dr. sc.techn. Dr. h.c. Andrew U. Frank On 09/28/2015 04:49 PM, Steve Harris wrote:
|
Ah, interesting. So in that case it's definitely a bug in the engine, not the data. I can't offhand think of any reason why it might behave differently with more/less data. |
i use the query
SELECT ?o (count( ?s) as ?count) WHERE { ?s http://auf.us.to/nlp2015/lemmaPoS ?o } group by ?o ORDER by desc (?count) LIMIT 100
EOQ
in 4s-query (same result in 4s-http) and it produces the correct list, but not ordered:
4store>SELECT ?o (count( ?s) as ?count) WHERE { ?s http://auf.us.to/nlp2015/lemmaPoS ?o } group by ?o ORDER by desc (?count) LIMIT 100
what is wrong wtih the query?
(ps. how do i avoid the clutter and have the result as "1" only?)
thank you
andrew
The text was updated successfully, but these errors were encountered: