Examples of addRelatedConcept()


Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addRelatedConcept()

              c.addTerm(t);
            }else if("is_a".equals(key)){
              int j = val.indexOf("!");
              if(j > -1)
                val = val.substring(0,j).trim();
              c.addRelatedConcept(Relation.BROADER,val);
              Concept pr = list.get(val);
              if(pr != null)
                pr.addRelatedConcept(Relation.NARROWER,c.getCode());
            }else if("relationship".equals(key)){
              int j = val.indexOf("!");
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addRelatedConcept()

              if(j > -1)
                val = val.substring(0,j).trim();
              c.addRelatedConcept(Relation.BROADER,val);
              Concept pr = list.get(val);
              if(pr != null)
                pr.addRelatedConcept(Relation.NARROWER,c.getCode());
            }else if("relationship".equals(key)){
              int j = val.indexOf("!");
              int k = val.indexOf(" ");
              if(k > -1){
                String rel = val.substring(0,k).trim();
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addRelatedConcept()

      for(Source sr: concept.getSources())
        sr.setCode(getCode(sr.getCode(),truncateURI));
     
      // add relations to concept
      for(IClass c: cls.getDirectSuperClasses()){
        concept.addRelatedConcept(Relation.BROADER,getCode(c,truncateURI));
      }
     
      // add relations to concept
      for(IClass c: cls.getDirectSubClasses()){
        concept.addRelatedConcept(Relation.NARROWER,getCode(c,truncateURI));
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addRelatedConcept()

        concept.addRelatedConcept(Relation.BROADER,getCode(c,truncateURI));
      }
     
      // add relations to concept
      for(IClass c: cls.getDirectSubClasses()){
        concept.addRelatedConcept(Relation.NARROWER,getCode(c,truncateURI));
      }
           
      // add concept
      term.addConcept(concept);
     
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addRelatedConcept()

              re = Relation.NARROWER;
           
            // get concept from map
            Concept c = terminology.convertConcept(storage.getConceptMap().get(cui1));
            if(c != null && re != null){
              c.addRelatedConcept(re,cui2);
              // replace with new concept
              storage.getConceptMap().put(cui1,c.getContent());
            }
          } 
        }
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addRelatedConcept()

      for(Source sr: concept.getSources())
        sr.setCode(getCode(sr.getCode()));
     
      // add relations to concept
      for(IClass c: cls.getDirectSuperClasses()){
        concept.addRelatedConcept(Relation.BROADER,getCode(c));
      }
     
      // add relations to concept
      for(IClass c: cls.getDirectSubClasses()){
        concept.addRelatedConcept(Relation.NARROWER,getCode(c));
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addRelatedConcept()

        concept.addRelatedConcept(Relation.BROADER,getCode(c));
      }
     
      // add relations to concept
      for(IClass c: cls.getDirectSubClasses()){
        concept.addRelatedConcept(Relation.NARROWER,getCode(c));
      }
           
      // add concept
      addConcept(concept);
     
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addRelatedConcept()

              re = Relation.NARROWER;
           
            // get concept from map
            Concept c = convertConcept(conceptMap.get(cui1));
            if(c != null && re != null){
              c.addRelatedConcept(re,cui2);
              // replace with new concept
              conceptMap.put(cui1,c.getContent());
            }
          } 
        }
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addRelatedConcept()

              c.addTerm(t);
            }else if("is_a".equals(key)){
              int j = val.indexOf("!");
              if(j > -1)
                val = val.substring(0,j).trim();
              c.addRelatedConcept(Relation.BROADER,val);
              Concept pr = list.get(val);
              if(pr != null)
                pr.addRelatedConcept(Relation.NARROWER,c.getCode());
            }else if("relationship".equals(key)){
              int j = val.indexOf("!");
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addRelatedConcept()

              if(j > -1)
                val = val.substring(0,j).trim();
              c.addRelatedConcept(Relation.BROADER,val);
              Concept pr = list.get(val);
              if(pr != null)
                pr.addRelatedConcept(Relation.NARROWER,c.getCode());
            }else if("relationship".equals(key)){
              int j = val.indexOf("!");
              int k = val.indexOf(" ");
              if(k > -1){
                String rel = val.substring(0,k).trim();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.