Skip to content
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 BY and value comparison fixes #16

Merged
merged 3 commits into from
Jul 27, 2014
Merged

Conversation

michivi
Copy link
Contributor

@michivi michivi commented Jul 27, 2014

As mentioned in the issue #15 from the original sparql project repository, only the first ORDER BY criterion was taken into account. Also, there was no predefined order between blank nodes, IRIs and literal values (or lack thereof) as described in the SPARQL recommendation.

I've fixed both issues and written some non-regression tests for them. I've also updated a MIME type in a Unit Test (change necessary with the latest version of the rdf-turtle library).

To sum up:

  • Changed application/turtle to text/turtle in a unit test for the latest version of the rdf-turtle dependency
  • Added the predefined order between special value type:
    1. (missing value)
    2. Blank nodes
    3. IRI
    4. RDF literals
  • Taken into account multiple ORDER BY criteria (through the order operator)

@michivi
Copy link
Contributor Author

michivi commented Jul 27, 2014

I've e-mailed the waiver to the [email protected] mailing list.

gkellogg added a commit that referenced this pull request Jul 27, 2014
ORDER BY and value comparison fixes
@gkellogg gkellogg merged commit 1730387 into ruby-rdf:develop Jul 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants