MyNixOS website logo
Description

Document-Level Matching Between Bibliographic Datasets.

Identifies and visualizes document overlap in any number of bibliographic datasets. This package implements the identification of overlapping documents through the exact match of a unique identifier (e.g. Digital Object Identifier - DOI) and, for records where the identifier is absent, through a score calculated from a set of fields commonly found in bibliographic datasets (Title, Source, Authors and Publication Year). Additionally, it provides functions to visualize the results of the document matching through a Venn diagram and/or UpSet plot, as well as a summary of the matching procedure.

biblioverlap

R-CMD-check

Biblioverlap is a R package that implements a procedure for identification and visualization of document overlap in any number of bibliographic datasets. The datasets might be exported from the same bibliographical database or several different databases.

The package receives input data, adds an UUID (Universally Unique Identifier) to each record and performs pairwise comparisons between the datasets to identify matching documents. This identification happens through the exact match of a unique identifier (e.g. DOI) or, when the identifier is absent for the record, through a score calculated from a set of fields commonly found in bibliographic datasets (Title, Source, Authors and Publication Year).

When a match is found, the UUID of the document in the first dataset is copied to its matching counterpart in the second dataset. Thus, after all pairwise comparisons are finished, it provides the information needed to identify documents that occur in any intersections from the sets of bibliographical data provided.

Installation

You can install the stable version of biblioverlap from CRAN with:

install.packages("biblioverlap")

It’s also possible to install the development version of biblioverlap from GitHub with:

# install.packages("devtools")
devtools::install_github("gavieira/biblioverlap")

Example

This is a basic example which shows how to obtain document overlap between sets of bibliographical data using the biblioverlap() function:

library(biblioverlap) #loading package

#Input 1: Named list of bibliographic dataframes
sapply(ufrj_bio_0122, class) #ufrj_bio_0122 is an example dataset provided by the package
#> Biochemistry     Genetics Microbiology      Zoology 
#> "data.frame" "data.frame" "data.frame" "data.frame"

#Input 2: Namded list of columns for document matching 
matching_cols <- list(DI = 'DOI',
                      TI = 'Title',
                      PY = 'Publication Year',
                      AU = 'Author/s',
                      SO = 'Source Title')

#Running document-level matching procedure
biblioverlap_results <- biblioverlap(ufrj_bio_0122, matching_fields = matching_cols)
#> Matching by DOI for pair Biochemistry_Genetics
#> [1] "Matching by SCORE for pair Biochemistry_Genetics"
#> Updating matched documents in db2
#> Matching by DOI for pair Biochemistry_Microbiology
#> [1] "Matching by SCORE for pair Biochemistry_Microbiology"
#> Updating matched documents in db2
#> Matching by DOI for pair Biochemistry_Zoology
#> [1] "Matching by SCORE for pair Biochemistry_Zoology"
#> Updating matched documents in db2
#> Matching by DOI for pair Genetics_Microbiology
#> [1] "Matching by SCORE for pair Genetics_Microbiology"
#> Updating matched documents in db2
#> Matching by DOI for pair Genetics_Zoology
#> [1] "Matching by SCORE for pair Genetics_Zoology"
#> Updating matched documents in db2
#> Matching by DOI for pair Microbiology_Zoology
#> [1] "Matching by SCORE for pair Microbiology_Zoology"
#> Updating matched documents in db2

#The results of the matching returns a list containing:
#(i) a copy of the original data + UUID column (db_list)
#(ii) a summary of the matching results (summary)
sapply(biblioverlap_results, class)
#> $db_list
#> [1] "list"
#> 
#> $summary
#> [1] "grouped_df" "tbl_df"     "tbl"        "data.frame"

The package also features some functions for plotting the results of biblioverlap(). For instance, the plot_matching_summary() function can be used to convert the summary of the matching procedure into a bar plot.

#Plotting the matching results summary
plot_matching_summary(biblioverlap_results$summary)

The plot_venn() function uses the UUID column to plot the results of the matching procedure as a Venn diagram.

#Plotting the Venn diagram
plot_venn(biblioverlap_results$db_list)

Similarly, the plot_upset() function uses the UUID column to generate a UpSet plot, which is generally better for visualizing intersections between 5 or more datasets.

#Plotting the UpSet plot
plot_upset(biblioverlap_results$db_list)

The biblioverlap package also features a graphical user interface in the form of a ShinyApp, which can be called through the biblioverApp() function.

#loading package
library(biblioverlap)

#Using the ShinyApp
biblioverApp()

Metadata

Version

1.0.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows