/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.k_int.webedit;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ibbo
 */

public class TupleDTO {
  public String uri;
  public Map<String,Object> triples = new HashMap<String,Object>();

  public TupleDTO() {
  }

  public TupleDTO(String uri) {
    this.uri = uri;
  }

  public void add(String property, Object value) {
    Object current_value = triples.get(property);
    if ( value == null ) {
      triples.put(property,value);
    }
    else {
      triples.put(property,value);
    }
  }
}
