Operators are operations which differ in the calling of syntax and/or the argument passing mode from Language's functions
. SPARQL features a wealth of Operators that can be used.
For instance there are logical connectives and (&&
) and or (||
) for boolean values, comparison Operators (equal, unequal, great than...) for numeric Datatypes, Comparison Operators (equal and not equal) for other Datatypes as well as Arithmetic Operators (plus, minus, multiplication, and division) for numeric Datatypes.
In addition one can use Regular Expressions (RegEx), e.g. one can put filter expressions that are based on Regular Expressions. Further one can compare two Terms with the sameTERM
Operator and one can compare of two Language Literals Match.
&&
and ||
for xsd:boolean=
, !=
, <
, >
, <=
, and >=
for numeric Datatypes, xsd:dateTime, xds:string, and xsd:boolean=
and !=
for other Datatypes+
, -
, *
, and /
for numeric DatatypesREGEX
(String,Pattern) or REGEX
(String,Pattern,Flags)sameTERM
(A,B)langMATCHES
(A,B)
Comment on This Data Unit