Github user kinow commented on a diff in the pull request:
https://github.com/apache/jena/pull/237#discussion_r114431718
--- Diff: jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java
---
@@ -954,7 +971,8 @@ public boolean isDayTimeDuration()
public boolean getBoolean() { raise(new
ExprEvalTypeException("Not a boolean: "+this)) ; return false ; }
public String getString() { raise(new
ExprEvalTypeException("Not a string: "+this)) ; return null ; }
public String getLang() { raise(new
ExprEvalTypeException("Not a string: "+this)) ; return null ; }
-
+ public String getCollation() { raise(new
ExprEvalTypeException("Not a collation: "+this)) ; return null ; }
--- End diff --
Nice catch! I'm updating the code, experimenting with the idea of having a
`NodeValueSortKey` type instead. If that works well, will update the message to
"Not a sort key"...
---
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.
---