Package edu.pitt.terminology.lexicon

Examples of edu.pitt.terminology.lexicon.Relation


          if(relationSources != null && !relationSources.contains(src))
            continue;
         
          // filter by known relationship
          if(filterRelations.contains(rel) && !cui1.equals(cui2)){
            Relation re = null;
            if("RB".equals(rel) || "PAR".equals(rel))
              re = Relation.BROADER;
            else if("RN".equals(rel) || "CHD".equals(rel))
              re = Relation.NARROWER;
           
View Full Code Here


        }catch(Exception ex){}
        */
       
        // find relationship
        if(c != null){
          Relation r = Relation.BROADER; // default
          rel = rel.toLowerCase();
          Relation [] rs = c.getRelations();
          for(int i=0;i<rs.length;i++){
            if(rs[i].getName().toLowerCase().contains(rel) ||
               rs[i].getCode().toLowerCase().contains(rel)){
View Full Code Here

      }else if ( action.equals("get_sources")){
        tosend = terminology.getSources();
      }else if ( action.equals("get_related_concepts")){
        Object [] p = (Object []) parcel.getPayload();
        Concept c = (Concept) p[0];
        Relation r = (Relation) p[1];
        tosend = terminology.getRelatedConcepts(c, r);
      }else if ( action.equals("get_related_concept_map")){
        Concept c = (Concept) parcel.getPayload();
        tosend = terminology.getRelatedConcepts(c);
      }else if ( action.equals("get_terminologies")){
View Full Code Here

    c.getTerms();
    c.getText();
    c.getWordMap();

    c.getRelatedConcepts();
    Relation relation = new Relation("isa");
    c.getRelatedConcepts(relation);
    c.getRelationMap();
    c.getRelations();

    Annotation annots[] = c.getAnnotations();
View Full Code Here

  public Relation[] getRelations() throws TerminologyException{
    if(relations == null){
      relations = new Relation [3];
      relations[0] = Relation.BROADER;
      relations[1] = Relation.NARROWER;
      relations[2] = new Relation("DisjointWith");
    }
    return relations;
  }
View Full Code Here

TOP

Related Classes of edu.pitt.terminology.lexicon.Relation

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.