See ../rdf/sparql.js This should only work on literals but doesn't.
function ConstraintEqualTo (value) {
    this.describe = function (varstr) { return varstr + ' = ' + value.toNT() }
    this.test = function (term) {
      return value.sameTerm(term)
    }
    return this
  }