Beispiel #1
0
 @Transient
 @Field(index = Index.TOKENIZED, store = Store.NO)
 public String getEcNums() {
   List<String> ecNums = new ArrayList<String>();
   for (FeatureProp fp : getFeatureProps()) {
     CvTerm type = fp.getType();
     if (type.getName().equals("EC_number") && type.getCv().getName().equals("genedb_misc")) {
       ecNums.add(fp.getValue());
     }
   }
   return StringUtils.collectionToDelimitedString(ecNums, " ");
 }
Beispiel #2
0
  @Transient
  @Field(index = Index.TOKENIZED, store = Store.YES)
  public String getAllCuration() {
    List<String> curation = new ArrayList<String>();
    for (FeatureProp fp : getFeatureProps()) {
      CvTerm type = fp.getType();
      if (type.getCv().getName().equals("genedb_misc") && type.getName().equals("curation")) {
        curation.add(fp.getValue());
      }
      if (type.getCv().getName().equals("feature_property") && type.getName().equals("comment")) {
        curation.add(fp.getValue());
      }
    }

    // we add terms from the CC_genedb_controlledcuration featurecvterm here
    curation.addAll(populateFromFeatureCvTerms("CC_genedb_controlledcuration"));

    return StringUtils.collectionToDelimitedString(curation, " ");
  }