[VIVO-1311] Implementation of UMLS datasource using NLM APIs

This commit is contained in:
Graham Triggs 2017-09-12 15:29:11 +01:00
parent 51e9ee9b9f
commit 930507a694
3 changed files with 211 additions and 168 deletions

View file

@ -0,0 +1,19 @@
package edu.cornell.mannlib.semservices.service.impl;
import edu.cornell.mannlib.semservices.bo.Concept;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class UMLSServiceTest {
@Test
public void testUmls() throws Exception {
UMLSService service = new UMLSService();
if (service.isConfigured()) {
List<Concept> concepts = service.getConcepts("diabetes");
Assert.assertNotNull(concepts);
}
}
}

View file

@ -0,0 +1,9 @@
# Configure credentials to access UMLS service
# Sign up here - https://uts.nlm.nih.gov//home.html
# You can user either a username / password combination, or an apikey
#username =
#password =
#apikey =