@Test public void shouldResolveStudyEmptyCitation() { StudyImpl study = new StudyImpl("some title", null, ""); assertFalse(LinkerDOI.shouldResolve(study)); }
public static boolean shouldResolve(Study study) { Dataset dataset = study.getOriginatingDataset(); return DatasetUtil.shouldResolveReferences(dataset) && null == study.getDOI() && StringUtils.isNotBlank(study.getCitation()) && citationLikeString(study.getCitation()); }
LinkerDOI implements IndexerNeo4j { public static boolean shouldResolve(Study study) { Dataset dataset = study.getOriginatingDataset(); return DatasetUtil.shouldResolveReferences(dataset) && null == study.getDOI() && StringUtils.isNotBlank(study.getCitation()) && citationLikeString(study.getCitation()); } }
LinkerDOI implements IndexerNeo4j { public static boolean shouldResolve(Study study) { Dataset dataset = study.getOriginatingDataset(); return DatasetUtil.shouldResolveReferences(dataset) && null == study.getDOI() && StringUtils.isNotBlank(study.getCitation()) && citationLikeString(study.getCitation()); } LinkerDOI();  LinkerDOI(DOIResolver resolver); }
LinkerDOI implements IndexerNeo4j { public static boolean shouldResolve(Study study) { Dataset dataset = study.getOriginatingDataset(); return DatasetUtil.shouldResolveReferences(dataset) && null == study.getDOI() && StringUtils.isNotBlank(study.getCitation()) && citationLikeString(study.getCitation()); } LinkerDOI();  LinkerDOI(DOIResolver resolver); @Override void index(GraphServiceFactory factory); void resolveBatch(DOIResolver doiResolver, Map<String, StudyNode> batch); void resolve(DOIResolver doiResolver, Map<String, StudyNode> batch, Collection<String> citations); String logProgress(int counter, StopWatch stopWatch); static void linkStudy(DOIResolver doiResolver, StudyNode study); static boolean shouldResolve(Study study); }
LinkerDOI implements IndexerNeo4j { public static boolean shouldResolve(Study study) { Dataset dataset = study.getOriginatingDataset(); return DatasetUtil.shouldResolveReferences(dataset) && null == study.getDOI() && StringUtils.isNotBlank(study.getCitation()) && citationLikeString(study.getCitation()); } LinkerDOI();  LinkerDOI(DOIResolver resolver); @Override void index(GraphServiceFactory factory); void resolveBatch(DOIResolver doiResolver, Map<String, StudyNode> batch); void resolve(DOIResolver doiResolver, Map<String, StudyNode> batch, Collection<String> citations); String logProgress(int counter, StopWatch stopWatch); static void linkStudy(DOIResolver doiResolver, StudyNode study); static boolean shouldResolve(Study study); static final int BATCH_SIZE; }