code: function _compareRDFTriples(t1, t2) {
    var attrs = ['subject', 'predicate', 'object'];
    for(var i = 0; i < attrs.length; ++i) {
      var attr = attrs[i];
      if(t1[attr].type !== t2[attr].type || t1[attr].value !== t2[attr].value) {
        return false;
      }
    }
    if(t1.object.language !== t2.object.language) {
      return false;
    }
    if(t1.object.datatype !== t2.object.datatype) {
      return false;
    }
    return true;
  }
docs: Compares two RDF triples for equality.
  
  @param t1 the first triple.
  @param t2 the second triple.
  
  @return true if the triples are the same, false if not.