Changeset 5984


Ignore:
Timestamp:
02/17/15 10:51:52 (9 years ago)
Author:
teckart@informatik.uni-leipzig.de
Message:

Extended post processor to deal with purl.org-URLs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/ResourceClassPostProcessor.java

    r5345 r5984  
    88     * Postprocess ResourceClass values
    99     * @param value extracted ResourcClass information
    10      * @return Value with upper case first letter
     10     * @return Value with upper case first letter and some value normalisation
    1111     */
    1212    @Override
    1313    public List<String> process(String value) {
    14         String result =value;
     14        String result = value;
     15       
     16        // replace DCMI URLs with DCMI type
     17        result = result.replaceFirst("http://purl.org/dc/dcmitype/", "");
     18       
     19        // first letter should be upper case
    1520        if(result.length() > 1) {
    1621            result = result.substring(0, 1).toUpperCase().concat(result.substring(1, result.length()));
Note: See TracChangeset for help on using the changeset viewer.