public static String getURIFromAbbrev ( final String abbreviation ) { String [ ] parts = abbreviation . split ( ":" ) ; if ( parts . length == 2 ) { return getNSFromPrefix ( parts [ 0 ] ) + parts [ 1 ] ; } throw new IllegalArgumentException ( "Undefined prefix in " + abbreviation ) ; }
Given an abbreviated URI it returns a full URI