URIUtils { public static URI getURI(String shortform) { return getURI(getPrefixMappings(), shortform); }  synchronized static Map<String, String> getPrefixMappings(); synchronized static Map<String, String> loadPrefixMappings(); static String getShortform(URI uri); static String getShortform(URI uri, ShortformStrictness strictness); static String getShortform(URI uri, ShortformStrictness strictness, PrefixCreationMode prefixCreationMode); static String getShortform(final Map<String, String> prefixMappings, URI uri); static String getShortform(final Map<String, String> prefixMappings,
                                      URI uri,
                                      ShortformStrictness strictness,
                                      PrefixCreationMode prefixCreationMode); static URI getURI(String shortform); static URI getURI(final Map<String, String> prefixMappings, String shortform); static URI getNamespace(String shortform); static URI getNamespace(final Map<String, String> prefixMappings, String shortform); static String getFragment(String shortform); static URI extractNamespace(URI uri); static String extractFragment(URI uri); static boolean isNamespaceKnown(URI uri); static URI normalizeURI(String uriStr); static URI normalizeURI(URI uri); static URI incrementURI(ZoomaDAO dao, URI uri); static final PrefixCreationMode DEFAULT_PREFIX_CREATION_MODE; static final ShortformStrictness DEFAULT_SHORTFORM_STRICTNESS; static final URI SEARCH_NONE; }
@Test public void testGetURI() { Map<String, String> pm = new HashMap<>(); pm.put(prefix1, namespace2); pm.put(prefix2, namespace3); assertEquals("Unexpected lengthened form", uri1, URIUtils.getURI(pm, shortform1)); assertEquals("Unexpected lengthened form", uri2, URIUtils.getURI(pm, shortform2)); }