MiriamLink { public static String[] getResourcesId() { Set<String> ids = new HashSet<String>(); for(Datatype datatype : miriam.getDatatype()) { for (Resource resource : getResources(datatype)) { ids.add(resource.getId()); } } return ids.toArray(new String[] {}); } protected  MiriamLink(); static String getServicesVersion(); static String getDataTypeURI(String datatypeKey); static String[] getDataTypeURIs(String datatypeKey); static String getResourceLocation(String resourceId); static String getResourceInstitution(String resourceId); static String getURI(String name, String id); static String getDataTypeDef(String datatypeKey); static String[] getLocations(String datatypeKey, String entityId); static String[] getDataResources(String datatypeKey); static boolean isDeprecated(String uri); static String getDataTypePattern(String datatypeKey); static String getName(String datatypeKey); static String[] getNames(String datatypeKey); static String[] getDataTypesName(); static String[] getDataTypesId(); static String getOfficialDataTypeURI(String uri); static boolean checkRegExp(String identifier, String datatype); static String getOfficialDataTypeURI(Datatype datatype); static Datatype getDatatype(String datatypeKey); static String[] getResourcesId(); static Resource getResource(String resourceId); static boolean containsIdOrName(String searchKey); static boolean containsUri(String searchUri); static String convertUrn(String urn); static String getIdentifiersOrgURI(String name, String id); static final String BINDING; static boolean useObsoleteDatatypes; static boolean useObsoleteResources; }
@Test public final void testGetResourcesId() { String[] rs = MiriamLink.getResourcesId(); List<String> names = Arrays.asList(rs); assertTrue(names.contains(MIRESID)); assertTrue(names.contains("MIR:00100096")); }