You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by rvesse <gi...@git.apache.org> on 2017/02/02 10:18:09 UTC

[GitHub] jena issue #205: JENA-1277: don't use sorting in spatial queries, for much b...

Github user rvesse commented on the issue:

    https://github.com/apache/jena/pull/205
  
    We should already have support for most of the trigonometric functions built into ARQ as extension functions - https://github.com/apache/jena/tree/59e5e06c85c98c9c65a9c1addbc4252626e9d061/jena-arq/src/main/java/org/apache/jena/sparql/function/library/leviathan
    
    For example:
    
    ```
    sparql --data ~/Documents/Work/Datasets/minimal.nt "SELECT (<http://www.dotnetrdf.org/leviathan#sin>(90) AS ?x) { }"
    ------------------------
    | x                    |
    ========================
    | 0.8939966636005579e0 |
    ------------------------
    ```
    
    Notes:
    
    - Inverse functions are named as `sin-1` etc.
    - function arguments are expected to be radians
    - convenience functions `degreesToRadians` and `radiansToDegrees` are provided


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---