Package edu.pitt.terminology.util

Examples of edu.pitt.terminology.util.TerminologyException


          File f = new File(name);
          if(f.getParentFile() != null)
            IndexFinderTerminology.setPersistenceDirectory(f.getParentFile());
          term = new IndexFinderTerminology(f.getName());
        } catch (IOException e) {
          throw new TerminologyException("Could not load IndexFinder terminology "+name,e);
        }
      }
    }catch(TerminologyException ex){
      ex.printStackTrace();
    }
View Full Code Here


              "org.LexGrid.concepts.Concept[@_entityCode="+filter(cui)+
              "]&codingSchemeName="+filter(scheme));
      List<Concept> list = processResponse(parseXML(u.openStream()));
      return list.isEmpty()?null:list.get(0);
    }catch(Exception ex){
      throw new TerminologyException("Problem w/ lookup",ex);
    }
  }
View Full Code Here

      for(Concept c: list){
        c.setSearchString(text);
      }
      return list.toArray(new Concept [0]);
    }catch(Exception ex){
      throw new TerminologyException("Problem w/ lookup",ex);
    }
  }
View Full Code Here

      c.setInitialized(true);
     
      return c;
     
    }catch(Exception ex){
      throw new TerminologyException("Error: Problem with lookup of "+cui,ex);
    }
  }
View Full Code Here

        st.close();
       
       
        return conceptList.toArray(new Concept [0]);
      }catch(Exception ex){
        throw new TerminologyException("Error: UMLS search failed on "+text,ex);
      }
    }
    //return new Concept [0];
  }
View Full Code Here

  /**
   * add new concept to the terminology
   * @param c
   */
  public boolean addConcept(Concept c) throws TerminologyException{
    throw new TerminologyException("Not implemented");
  }
View Full Code Here

  /**
   * update concept information
   * @param c
   */
  public boolean updateConcept(Concept c) throws TerminologyException{
    throw new TerminologyException("Not implemented");
  }
View Full Code Here

  /**
   * remove existing concept
   * @param c
   */
  public boolean removeConcept(Concept c) throws TerminologyException{
    throw new TerminologyException("Not implemented");
  }
View Full Code Here

  /**
   * convert Template to XML DOM object representation
   * @return
   */
  public void fromElement(Element element) throws TerminologyException{
    throw new TerminologyException("Not implemented");
  }
View Full Code Here

  public IClass createClass(ILogicExpression exp) {
    throw new IOntologyError("Operation not supported");
  }

  public boolean addConcept(Concept c) throws TerminologyException {
    throw new TerminologyException("Operation not supported");
  }
View Full Code Here

TOP

Related Classes of edu.pitt.terminology.util.TerminologyException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.