Skip to content

Commit

Permalink
Fix Doaj Fetcher (#9669)
Browse files Browse the repository at this point in the history
* Fix Doaj Fetcher

Previous query returned empty

* fix loc test
  • Loading branch information
Siedlerchr authored Mar 15, 2023
1 parent c9bb3a3 commit 9946dbf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@ void setUp() {

@Test
void searchByQueryFindsEntry() throws Exception {
BibEntry expected = new BibEntry(StandardEntryType.Article);
expected.setField(StandardField.AUTHOR, "Wei Wang and Yun He and Tong Li and Jiajun Zhu and Jinzhuo Liu");
expected.setField(StandardField.DOI, "10.1155/2018/5913634");
expected.setField(StandardField.ISSN, "1875-919X");
expected.setField(StandardField.JOURNAL, "Scientific Programming");
expected.setField(StandardField.PUBLISHER, "Hindawi Limited");
expected.setField(StandardField.TITLE, "An Integrated Model for Information Retrieval Based Change Impact Analysis");
expected.setField(StandardField.URL, "http://dx.doi.org/10.1155/2018/5913634");
expected.setField(StandardField.VOLUME, "2018");
expected.setField(StandardField.YEAR, "2018");
expected.setField(StandardField.ABSTRACT, "The paper presents an approach to combine multiple existing information retrieval (IR) techniques to support change impact analysis, which seeks to identify the possible outcomes of a change or determine the necessary modifications for affecting a desired change. The approach integrates a bag-of-words based IR technique, where each class or method is abstracted as a set of words, and a neural network based IR technique to derive conceptual couplings from the source code of a software system. We report rigorous empirical assessments of the changes of three open source systems: jEdit, muCommander, and JabRef. The impact sets obtained are evaluated at the method level of granularity, and the results show that our integrated approach provides statistically significant improvements in accuracy across several cut points relative to the accuracies provided by the individual methods employed independently. Improvements in F-score values of up to 7.3%, 10.9%, and 17.3% are obtained over a baseline technique for jEdit, muCommander, and JabRef, respectively.");

List<BibEntry> fetchedEntries = fetcher.performSearch("JabRef impact");
BibEntry expected = new BibEntry(StandardEntryType.Article)
.withField(StandardField.AUTHOR, "Nísea de A. Corrêa and Maria P. Foss and Paula R. B. Diniz")
.withField(StandardField.DOI, "10.11606/issn.2176-7262.v49i6p533-548")
.withField(StandardField.ISSN, "2176-7262")
.withField(StandardField.JOURNAL, "Medicina")
.withField(StandardField.PUBLISHER, "Universidade de São Paulo")
.withField(StandardField.TITLE, "Structural and functional changes related to memory deficit in non-demential elderly individuals")
.withField(StandardField.URL, "http://www.revistas.usp.br/rmrp/article/view/127443")
.withField(StandardField.VOLUME, "49")
.withField(StandardField.NUMBER, "6")
.withField(StandardField.YEAR, "2016")
.withField(StandardField.MONTH, "December")
.withField(StandardField.KEYWORDS, "Central Nervous System. Structural Changes. Functional Changes. Memory deficits. Aging. Normal Aging. Magnetic Resonance Imaging")
.withField(StandardField.ABSTRACT, "Objective: Based on Magnetic Resonance Imaging (MRI), verify the structural and functional changes related to memory deficits in non-demented elderly individuals in comparison with young adults. Methodology: Proceeded a systematic review based on Preferred Reporting Items for Systematic Review and Meta-Analysis (PRISMA) fluxogram. The search was done on PubMed, Scopus and EBSCO databases using JabRef 2.10, and Web of Science. It was included in the analysis quasi-experimental, cross-sectional, cohort and case-control studies published between 2005 and 2014 in national and international indexed periodicals that had as sample: non-demented individuals older than 60 years old, who were submitted to MRI investigation of their for any brain structural and functional changes associated with memory deficits, identified in neuropsychologicals tests. Results: About the imaging technique, we reviewed studies that used structural MRIs (two articles), functional MRIs (six articles), both techniques (four articles). In the 12 studies, 38 distinct neuropsychological tests were used, an average of five different tests for each study (variation of 1-12). The most used tests were WAIS Digit Span Backwards (seven articles), Trail Making Test A and B (four articles) and Wechsler Memory Scale (four articles). Conclusion: The review showed that in normal aging the parahippocampal white substance, the hippocampus volume and entorhinal cortex slightly shrink, causing verbal memory reduction, possibly due to fiber demyelination; reduced connections between temporal and frontal lobes contributing to an impairement of episodic, working memory and verbal fluency; reduction suppression of irrelevant information, affecting the register of information; changes on frontal and parietal areas, compromising recognition memory; modifications in activity and connectivity of the default mode network; reorganization of cognitive functions and also a slower response, probably due to reduction of pre-frontal cortex activation");

List<BibEntry> fetchedEntries = fetcher.performSearch("JabRef MRI");
assertEquals(Collections.singletonList(expected), fetchedEntries);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public void performSearchById() throws Exception {
.withField(new UnknownField("lccn"), "2010045158")
.withField(StandardField.NOTE, "Matthew West., Includes index.")
.withField(new UnknownField("oclc"), "ocn665135773")
.withField(StandardField.PUBLISHER, "Morgan Kaufmann")
.withField(new UnknownField("source"), "aacr")
.withField(StandardField.TITLE, "Developing high quality data models")
.withField(StandardField.YEAR, "2011");
Expand Down

0 comments on commit 9946dbf

Please sign in to comment.