| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| private static final double | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final BibEntryTypesManager | |
| private static final int | |
| private static final Map | |
| private static final Logger | |
| private static final int | |
| private static final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| public static double | |
| private static int | |
| private static double[] | |
| private static int | compareJournalField(final String stringOne, final String stringTwo)
We do not attempt to harmonize abbreviation state of the journal names, but we remove periods from the names in case they are abbreviated with and without dots: |
| private static boolean | compareOptionalFields(final BibEntryType type, final BibEntry one, final BibEntry two, final double[] req)
|
| private static int | comparePagesField(final String stringOne, final String stringTwo)
Pages can be given with a variety of delimiters, "-", "--", " - ", " -- ". |
| private static double[] | |
| private static int | |
| public Optional | Returns: The first duplicate entry found. Empty Optional if no duplicates are found.The database to search. database, final BibEntry The entry of which we are looking for duplicates. entry, final BibDatabaseMode bibDatabaseMode)Goes through all entries in the given database, and if at least one of them is a duplicate of the given entry, as per Util.isDuplicate(BibEntry, BibEntry), the duplicate is returned. |
| public static double | Returns: a value in the interval [0, 1] indicating the degree of match.The first string s1, final String The second string s2)Compare two strings on the basis of word-by-word correlation analysis. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public boolean | isDuplicate(final BibEntry one, final BibEntry two, final BibDatabaseMode bibDatabaseMode)
Checks if the two entries represent the same publication. |
| private static boolean | |
| private static boolean | |
| private static double | similarity(final String first, final String second)
Calculates the similarity (a number within 0 and 1) between two strings. |
| DOUBT_RANGE | back to summary |
|---|---|
| private static final double DOUBT_RANGE | |
| DUPLICATE_THRESHOLD | back to summary |
|---|---|
| private static final double DUPLICATE_THRESHOLD | |
| EMPTY_IN_BOTH | back to summary |
|---|---|
| private static final int EMPTY_IN_BOTH | |
| EMPTY_IN_ONE | back to summary |
|---|---|
| private static final int EMPTY_IN_ONE | |
| EMPTY_IN_TWO | back to summary |
|---|---|
| private static final int EMPTY_IN_TWO | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| EQUAL | back to summary |
|---|---|
| private static final int EQUAL | |
| FIELD_WEIGHTS | back to summary |
|---|---|
| private static final Map<Field, Double> FIELD_WEIGHTS | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| NOT_EQUAL | back to summary |
|---|---|
| private static final int NOT_EQUAL | |
| REQUIRED_WEIGHT | back to summary |
|---|---|
| private static final double REQUIRED_WEIGHT | |
| DuplicateCheck | back to summary |
|---|---|
| public DuplicateCheck(BibEntryTypesManager entryTypesManager) | |
| compareAuthorField | back to summary |
|---|---|
| private static int compareAuthorField(final String stringOne, final String stringTwo) | |
| compareChapterField | back to summary |
|---|---|
| private static int compareChapterField(final String stringOne, final String stringTwo) | |
| compareEntriesStrictly | back to summary |
|---|---|
| public static double compareEntriesStrictly(BibEntry one, BibEntry two) | |
| compareField | back to summary |
|---|---|
| private static int compareField(final String stringOne, final String stringTwo) | |
| compareFieldSet | back to summary |
|---|---|
| private static double[] compareFieldSet(final Collection<Field> fields, final BibEntry one, final BibEntry two) | |
| compareJournalField | back to summary |
|---|---|
| private static int compareJournalField(final String stringOne, final String stringTwo) We do not attempt to harmonize abbreviation state of the journal names, but we remove periods from the names in case they are abbreviated with and without dots: | |
| compareOptionalFields | back to summary |
|---|---|
| private static boolean compareOptionalFields(final BibEntryType type, final BibEntry one, final BibEntry two, final double[] req) | |
| comparePagesField | back to summary |
|---|---|
| private static int comparePagesField(final String stringOne, final String stringTwo) Pages can be given with a variety of delimiters, "-", "--", " - ", " -- ". We do a replace to harmonize these to a simple "-" After this, a simple test for equality should be enough | |
| compareRequiredFields | back to summary |
|---|---|
| private static double[] compareRequiredFields(final BibEntryType type, final BibEntry one, final BibEntry two) | |
| compareSingleField | back to summary |
|---|---|
| private static int compareSingleField(final Field field, final BibEntry one, final BibEntry two) | |
| containsDuplicate | back to summary |
|---|---|
| public Optional Goes through all entries in the given database, and if at least one of them is a duplicate of the given entry, as per Util.isDuplicate(BibEntry, BibEntry), the duplicate is returned. The search is terminated when the first duplicate is found.
| |
| correlateByWords | back to summary |
|---|---|
| public static double correlateByWords(final String s1, final String s2) Compare two strings on the basis of word-by-word correlation analysis. | |
| haveDifferentChaptersOrPagesOfTheSameBook | back to summary |
|---|---|
| private static boolean haveDifferentChaptersOrPagesOfTheSameBook(final BibEntry one, final BibEntry two) | |
| haveDifferentEditions | back to summary |
|---|---|
| private static boolean haveDifferentEditions(final BibEntry one, final BibEntry two) | |
| haveDifferentEntryType | back to summary |
|---|---|
| private static boolean haveDifferentEntryType(final BibEntry one, final BibEntry two) | |
| haveSameIdentifier | back to summary |
|---|---|
| private static boolean haveSameIdentifier(final BibEntry one, final BibEntry two) | |
| isDuplicate | back to summary |
|---|---|
| public boolean isDuplicate(final BibEntry one, final BibEntry two, final BibDatabaseMode bibDatabaseMode) Checks if the two entries represent the same publication. | |
| isFarFromThreshold | back to summary |
|---|---|
| private static boolean isFarFromThreshold(double value) | |
| isSingleFieldEqual | back to summary |
|---|---|
| private static boolean isSingleFieldEqual(BibEntry one, BibEntry two, Field field) | |
| similarity | back to summary |
|---|---|
| private static double similarity(final String first, final String second) Calculates the similarity (a number within 0 and 1) between two strings. http://stackoverflow.com/questions/955110/similarity-string-comparison-in-java | |