Comparison Operators and Functions

The topics in this section describe the comparison operators and built-in SPARQL comparison functions.

Operators

  • = for equals
  • != for not equal
  • > for greater than
  • < for less than

Functions

  • IN: Tests whether the specified value is found in one or more expressions.
  • NOT IN: Tests whether the specified value is not found in one or more expressions.
  • LANGMATCHES: Tests whether the language tags match for string values.
  • SAMETERM: Tests whether the specified RDF terms are the same.