NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The caCORE LexEVS API was a public domain, open source web service that provides access to the LexEVS Terminology Service and Data Model.  LexEVS supports the CBIIT hosted NCI Thesaurus, NCI Metathesaurus, and other vocabularies. In versions up to LexEVS 6.5 Java clients accessing vocabularies can communicate their requests via the open source caCORE data services but beyond that only java remote LexEVS APIs will be support

 

The open source interfaces provided in LexEVS versions up to LexEVS 6.4 include a Java API, a SOAP interface, QBE style data model query methods and an HTTP REST interface.  These services are separate from the CTS2 REST API.  

...

  • Requires Java 1.7, Maven 3.2.3, Git, and Eclipse Neon or some other maven enabled Eclipse IDE. 
  • This example assumes some familiarity with Eclipse and Maven.
  • run Run git clone https://github.com/lexevs/LexEVS_Distributed_Client.git
  • change Change working directory to LexEVS_Distributed_Client
  • Run mvn clean install, if tests fail you may add -DskipTests
  • Create a new Java Project
  • Configure as a Maven project
  • add Add as dependency to the pom file:

...

Code Block
themeEclipse
languagejava
package org.lexgrid.lexevs.remote.client;

import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList;
import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
import org.LexGrid.LexBIG.Exceptions.LBInvocationException;
import org.LexGrid.LexBIG.caCore.interfaces.LexEVSDistributed;

import gov.nih.nci.system.client.ApplicationServiceProvider;

public class MavenBasedPrototype {

	LexEVSDistributed lbs = null;
	private static String serviceUrl = "https://localhost.daplie.com:8443/lexevsapi64";
	public void run() throws LBInvocationException{
		try {
			lbs = (LexEVSDistributed)ApplicationServiceProvider.getApplicationServiceFromUrl(serviceUrl, "EvsServiceInfo");
	}
		catch(Exception e){
			System.out.println("Starting LexEVS Remote Client fails" + e);
	}

	CodingSchemeRenderingList list = lbs.getSupportedCodingSchemes();
		for(CodingSchemeRendering rendering: list.getCodingSchemeRendering()){
			System.out.println(rendering.getCodingSchemeSummary().getFormalName());
		}
	}

	public static void main(String[] args) {
		try {
			new MavenBasedPrototype().run();
		} catch (LBInvocationException e) {
			e.printStackTrace();
		}
	}
}

  

Background:

Architecture

The LexEVS API is exposed by the LexEVS caCORE System for remote access as shown in the figure below. The caCORE System's LexEVSApplicationService class implements the LexBIGService interface.

...