Package com.ikanow.infinit.e.data_model.store.feature.entity

Examples of com.ikanow.infinit.e.data_model.store.feature.entity.EntityFeaturePojo.addAlias()


              feature = new EntityFeaturePojo();
              feature.setCommunityId(communityId);
              feature.setDimension(ent.getDimension());
              feature.setDisambiguatedName(ent.getDisambiguatedName());
              feature.setType(ent.getType());
              feature.addAlias(ent.getDisambiguatedName());             
              entityInCommunity.put(feature.getCommunityId(), feature);
            }
            if ( feature.getGeotag() == null )  {
              feature.setGeotag(ent.getGeotag());
              feature.setOntology_type(ent.getOntology_type());
View Full Code Here


              feature.setOntology_type(ent.getOntology_type());
            }
            if (null != ent.getSemanticLinks()) {
              feature.addToSemanticLinks(ent.getSemanticLinks());
            }
            feature.addAlias(ent.getActual_name());
            feature.setDoccount(feature.getDoccount() + 1);
            feature.setTotalfreq(feature.getTotalfreq() + ent.getFrequency());
          }
        }
      }//TESTED
View Full Code Here

      // Change 1 of the aliases
      Iterator<EntityFeaturePojo> it = aliases.values().iterator();
      EntityFeaturePojo alias = it.next();
      alias.addToSemanticLinks(Arrays.asList("AlexTest"));
      EntityFeaturePojo alias2 = it.next();
      alias2.addAlias("XXXXX/person");
      Set<String> failures = infDriver.updateAliases(Arrays.asList(alias, alias2), aliasCommIdStr, false, response);
      if (!response.isSuccess()) {
        System.out.println("UPDATE TOTAL FAILURE: " + response.getMessage());
      }
      else if (!failures.isEmpty()) {
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.