wherehows-dao/src/main/java/wherehows/util/UrnUtil.java
public static String toWhDatasetUrn(DatasetIdentifier datasetIdentifier) {
    String platform = getUrnEntity(datasetIdentifier.dataPlatformUrn.toString());
    String name = datasetIdentifier.nativeName.toString();

    if ("hdfs".equalsIgnoreCase(platform)) {
      if (name.startsWith("/")) {
        name = name.substring(1);
      }
    } else {
      name = name.replace(".", "/");
    }

    return platform + ":///" + name;
  }
/**
   * Construct WhereHows dataset URN from DatasetIdentifier
   * Replace '.' with '/' in dataset name
   * It is the reverse of splitWhUrn
   * @param datasetIdentifier DatasetIdentifier
   * @return String WH URN
   */
Construct WhereHows dataset URN from DatasetIdentifier
Replace '.' with '/' in dataset name
It is the reverse of splitWhUrn
@param datasetIdentifier DatasetIdentifier
@return String WH URN
Construct WhereHows dataset URN from DatasetIdentifier Replace ' . ' with ' / ' in dataset name It is the reverse of splitWhUrn @param datasetIdentifier DatasetIdentifier @return String WH URN
public static String toWhDatasetUrn(DatasetIdentifier datasetIdentifier) {
    String platform = getUrnEntity(datasetIdentifier.dataPlatformUrn.toString());
    String name = datasetIdentifier.nativeName.toString();
    if ("hdfs".equalsIgnoreCase(platform)) {
      if (name.startsWith("/")) {
        name = name.substring(1);
      }
    } else {
      name = name.replace(".", "/");
    }
    return platform + ":///" + name;
  }
public static String toWhDatasetUrn ( DatasetIdentifier datasetIdentifier ) { String platform = getUrnEntity ( datasetIdentifier . dataPlatformUrn . toString ( ) ) ; String name = datasetIdentifier . nativeName . toString ( ) ; if ( "hdfs" . equalsIgnoreCase ( platform ) ) { if ( name . startsWith ( "/" ) ) { name = name . substring ( 1 ) ; } } else { name = name . replace ( "." , "/" ) ; } return platform + ":///" + name ; }
Construct WhereHows dataset URN from DatasetIdentifier
 Replace '.'
Construct WhereHows dataset URN from DatasetIdentifier Replace ' . '