@Test public final void testGetNames2() { String[] names = MiriamLink.getNames("nci_nature"); assertTrue(names.length > 1); assertTrue(Arrays.toString(names).contains("PID")); }
public static String[] getNames(String datatypeKey) { Set<String> names = new HashSet<String>(); Datatype datatype = getDatatype(datatypeKey); names.add(datatype.getName()); Synonyms synonyms = datatype.getSynonyms(); if(synonyms != null) for(String name : synonyms.getSynonym()) { names.add(name); } return names.toArray(ARRAY_OF_STRINGS); }
MiriamLink { public static String[] getNames(String datatypeKey) { Set<String> names = new HashSet<String>(); Datatype datatype = getDatatype(datatypeKey); names.add(datatype.getName()); Synonyms synonyms = datatype.getSynonyms(); if(synonyms != null) for(String name : synonyms.getSynonym()) { names.add(name); } return names.toArray(ARRAY_OF_STRINGS); } }
MiriamLink { public static String[] getNames(String datatypeKey) { Set<String> names = new HashSet<String>(); Datatype datatype = getDatatype(datatypeKey); names.add(datatype.getName()); Synonyms synonyms = datatype.getSynonyms(); if(synonyms != null) for(String name : synonyms.getSynonym()) { names.add(name); } return names.toArray(ARRAY_OF_STRINGS); } protected  MiriamLink(); }
MiriamLink { public static String[] getNames(String datatypeKey) { Set<String> names = new HashSet<String>(); Datatype datatype = getDatatype(datatypeKey); names.add(datatype.getName()); Synonyms synonyms = datatype.getSynonyms(); if(synonyms != null) for(String name : synonyms.getSynonym()) { names.add(name); } return names.toArray(ARRAY_OF_STRINGS); } 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); }
MiriamLink { public static String[] getNames(String datatypeKey) { Set<String> names = new HashSet<String>(); Datatype datatype = getDatatype(datatypeKey); names.add(datatype.getName()); Synonyms synonyms = datatype.getSynonyms(); if(synonyms != null) for(String name : synonyms.getSynonym()) { names.add(name); } return names.toArray(ARRAY_OF_STRINGS); } 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; }