File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -431,12 +431,10 @@ def comperable_datatype?(other)
431431 end
432432
433433 ##
434- # Returns `true` if the literal has a datatype and the comparison should
435- # return false instead of raise a type error.
434+ # Returns `true` if the literals are comperable.
436435 #
437436 # Used for <=> operator.
438437 #
439- # This behavior is intuited from SPARQL data-r2/expr-equal/eq-2-2
440438 # @return [Boolean]
441439 def comperable_datatype2? ( other )
442440 case self
@@ -445,13 +443,9 @@ def comperable_datatype2?(other)
445443 when RDF ::Literal ::Numeric , RDF ::Literal ::Boolean
446444 true
447445 else
448- self . plain? || other . plain? ||
449- self . language? || other . language? ||
450- self . datatype == other . datatype
446+ false
451447 end
452448 else
453- self . plain? || other . plain? ||
454- self . language? || other . language? ||
455449 self . datatype == other . datatype
456450 end
457451 end
You can’t perform that action at this time.
0 commit comments