@Test public void indexNoNameNoMatch() throws NodeFactoryException { Specimen human = nodeFactory.createSpecimen(nodeFactory.createStudy(new StudyImpl("bla", null, null)), new TaxonImpl("Homo sapiens", PropertyAndValueDictionary.NO_MATCH)); Specimen animal = nodeFactory.createSpecimen(nodeFactory.createStudy(new StudyImpl("bla", null, null)), new TaxonImpl("Canis lupus", PropertyAndValueDictionary.NO_MATCH)); human.ate(animal); for (int i = 0; i < 10; i++) { Specimen fish = nodeFactory.createSpecimen(nodeFactory.createStudy(new StudyImpl("bla", null, null)), new TaxonImpl("Arius felis", null)); human.ate(fish); } assertNull(taxonIndex.findTaxonById(PropertyAndValueDictionary.NO_MATCH)); assertNull(taxonIndex.findTaxonByName("Homo sapiens")); new NameResolver(new NonResolvingTaxonIndex(getGraphDb())) .index(new GraphServiceFactoryProxy(getGraphDb())); assertNotNull(taxonIndex.findTaxonByName("Homo sapiens")); assertNull(taxonIndex.findTaxonById(PropertyAndValueDictionary.NO_MATCH)); assertNull(taxonIndex.findTaxonByName(PropertyAndValueDictionary.NO_NAME)); }
public void index(GraphDatabaseService graphService) { LOG.info("indexing interactions started..."); indexInteractions(graphService); LOG.info("indexing interactions complete."); }
TaxonInteractionIndexer implements IndexerNeo4j { public void index(GraphDatabaseService graphService) { LOG.info("indexing interactions started..."); indexInteractions(graphService); LOG.info("indexing interactions complete."); } }
TaxonInteractionIndexer implements IndexerNeo4j { public void index(GraphDatabaseService graphService) { LOG.info("indexing interactions started..."); indexInteractions(graphService); LOG.info("indexing interactions complete."); }  }
TaxonInteractionIndexer implements IndexerNeo4j { public void index(GraphDatabaseService graphService) { LOG.info("indexing interactions started..."); indexInteractions(graphService); LOG.info("indexing interactions complete."); }  void index(GraphDatabaseService graphService); void indexInteractions(GraphDatabaseService graphService); void createTaxonInteractions(Map<Fun.Tuple3<Long, String, Long>, Long> taxonInteractions, GraphDatabaseService graphService); void createInteraction(Node sourceTaxon, Node targetTaxon, InteractType relType, boolean inverted, Long interactionCount); void finalizeTx(Transaction tx); void collectTaxonInteractions(Map<Fun.Tuple3<Long, String, Long>, Long> taxonInteractions, GraphDatabaseService graphService); static String getProgressMsg(long count, long duration); @Override void index(GraphServiceFactory graphServiceFactory); }
TaxonInteractionIndexer implements IndexerNeo4j { public void index(GraphDatabaseService graphService) { LOG.info("indexing interactions started..."); indexInteractions(graphService); LOG.info("indexing interactions complete."); }  void index(GraphDatabaseService graphService); void indexInteractions(GraphDatabaseService graphService); void createTaxonInteractions(Map<Fun.Tuple3<Long, String, Long>, Long> taxonInteractions, GraphDatabaseService graphService); void createInteraction(Node sourceTaxon, Node targetTaxon, InteractType relType, boolean inverted, Long interactionCount); void finalizeTx(Transaction tx); void collectTaxonInteractions(Map<Fun.Tuple3<Long, String, Long>, Long> taxonInteractions, GraphDatabaseService graphService); static String getProgressMsg(long count, long duration); @Override void index(GraphServiceFactory graphServiceFactory);  }