[VIVO-1311] Implementation of UMLS datasource using NLM APIs
This commit is contained in:
parent
51e9ee9b9f
commit
930507a694
3 changed files with 211 additions and 168 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
9
api/src/test/resources/umls.properties
Normal file
9
api/src/test/resources/umls.properties
Normal 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 =
|
Loading…
Add table
Add a link
Reference in a new issue