- rdf_compare(-Dif, +Object1, +Object2) is det
- Compare two object terms. Where SPARQL defines a partial
ordering, we define a complete ordering of terms. The ordering
is defines as:
- Blank nodes < IRIs < Literals
- Numeric literals < other literals
- Numeric literals are compared by value and then by type,
where Integer < Decimal < Double
- Other literals are compare lexically, case insensitive.
If equal, uppercase preceeds lowercase. If still equal,
the types are compared lexically.