code: public static String getURI(String name, String id)
      {
      	Datatype datatype = getDatatype(name);
      	String db = datatype.getName();
      	if(checkRegExp(id, db)) {
      		try {
  				return getOfficialDataTypeURI(datatype)	+ ":" + URLEncoder.encode(id, "UTF-8");
  			} catch (UnsupportedEncodingException e) {
  				throw new RuntimeException("UTF-8 encoding error of id=" + id, e);
  			}
      	} else 
      		throw new IllegalArgumentException(
  				"ID pattern mismatch. db=" + db + ", id=" + id
  				+ ", regexp: " + datatype.getPattern());
      }
docs: Retrieves the unique MIRIAM URI of a specific entity (example: "urn:miriam:obo.go:GO%3A0045202").
  
  @param name - name, URI/URL, or ID of a data type (examples: "ChEBI", "MIR:00000005")
  @param id identifier of an entity within the data type (examples: "GO:0045202", "P62158")
  @return unique standard MIRIAM URI of a given entity
  
  @throws IllegalArgumentException when datatype not found