Github user kinow commented on the issue:

    https://github.com/apache/jena/pull/237
  
    I have a sandbox project here https://github.com/kinow/jena-arq-filter, not 
really unit tests, but some renamed main methods that I use for experimenting. 
You can try checking out this pull request, opening in the same workspace both 
projects, then trying something like this:
    
    ```
            // Query String
            final String queryString = "PREFIX skos: 
<http://www.w3.org/2004/02/skos/core#>\n" + 
                    "PREFIX arq: <http://jena.apache.org/ARQ/function#>\n"  +
                    "SELECT ?label WHERE {\n" + 
                    "   VALUES ?label { \"tsahurin kieli\"@fi \"tšekin 
kieli\"@fi \"tulun kieli\"@fi \"töyhtöhyyppä\"@fi }\n" + 
                    "}\n" + 
                    "ORDER BY arq:collation(\"fi\", ?label)";
            // --- Model
            Model model = ModelFactory.createDefaultModel();
            // Query object
            Query query = QueryFactory.create(queryString);
            // Execute query
            try (QueryExecution qExec = QueryExecutionFactory.create(query, 
model)) {
                ResultSet results = qExec.execSelect();
                while (results.hasNext()) {
                    QuerySolution solution = results.nextSolution();
                    System.out.println(solution);
                }
            }
    ```
    
    The result will be:
    
    ```
    ( ?label = "tsahurin kieli"@fi )
    ( ?label = "tšekin kieli"@fi )
    ( ?label = "tulun kieli"@fi )
    ( ?label = "töyhtöhyyppä"@fi )
    ```
    
    If you change the locale for "en", then it will be:
    
    ```
    ( ?label = "töyhtöhyyppä"@fi )
    ( ?label = "tsahurin kieli"@fi )
    ( ?label = "tšekin kieli"@fi )
    ( ?label = "tulun kieli"@fi )
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to