updates to concept search service utils
This commit is contained in:
parent
2bf820d038
commit
1a994e0187
1 changed files with 4 additions and 3 deletions
|
@ -19,7 +19,8 @@ import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
|
||||||
public class ConceptSearchServiceUtils {
|
public class ConceptSearchServiceUtils {
|
||||||
private static final Log log = LogFactory.getLog(ConceptSearchServiceUtils.class);
|
private static final Log log = LogFactory.getLog(ConceptSearchServiceUtils.class);
|
||||||
//Get the appropriate search service class
|
//Get the appropriate search service class
|
||||||
|
private static final String UMLSVocabSource = "http://link.informatics.stonybrook.edu/umls/";
|
||||||
|
private static final String AgrovocVocabSource = "http://www.fao.org/webservices/Agrovoc";
|
||||||
//Get the class that corresponds to the appropriate search
|
//Get the class that corresponds to the appropriate search
|
||||||
public static String getConceptSearchServiceClassName(String searchServiceName) {
|
public static String getConceptSearchServiceClassName(String searchServiceName) {
|
||||||
HashMap<String, String> map = getMapping();
|
HashMap<String, String> map = getMapping();
|
||||||
|
@ -33,8 +34,8 @@ public class ConceptSearchServiceUtils {
|
||||||
//URL to label
|
//URL to label
|
||||||
public static HashMap<String, String> getVocabSources() {
|
public static HashMap<String, String> getVocabSources() {
|
||||||
HashMap<String, String> map = new HashMap<String, String>();
|
HashMap<String, String> map = new HashMap<String, String>();
|
||||||
map.put("http://link.informatics.stonybrook.edu/umls/", "UMLS");
|
map.put(UMLSVocabSource, "UMLS");
|
||||||
map.put("http://www.fao.org/webservices/Agrovoc", "Agrovoc");
|
map.put(AgrovocVocabSource, "Agrovoc");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue