# Comp HOPOS Data Dictionary #

v2.0, 2019-11-12
Data downloads: <https://doi.org/10.5281/zenodo.1400633>
Script downloads: <https://doi.org/10.5281/zenodo.1403900>

This file is the data dictionary for the Comp HOPOS dataset.  The dataset comes in two *data formats*:  author-wise and publication-wise.  In the *author-wise* format, each row corresponds to a single paper-author combination.  Thus, if a given paper has 3 coauthors, it will occupy 3 rows in the author-wise format.  Paper-level metadata are repeated in each of the 3 rows.  Because of these repeats, typically paper-level statistics should not be calculated from the author-wise format.  

In the *publication-wise* format, each row corresponds to a single paper (journal article or book chapter).  Depending on the file format, author data may or may not be available in the publication-wise format.  `Rds` files are designed to store complex nested data for loading in R, and do contain author data.  `csv` files are not, and so do not include author data.  

The *full* dataset contains all entries retrieved in the data collection process.  As of 2019-11-12, the author-wise format contains 161,709 rows and the publication-wise format contains 126,413 rows. 

The *philosophy of science* subset contains entries identified as by philosophers of science.  As of 2019-11-12, the author-wise format contains 41,629 rows and the publication-wise format contains 37,946 rows. 

Two file formats are used.  `csv` files are application neutral, but cannot contain nested dataframes/list columns.  `Rds` files are specific to R, but can contain nested files.  In particular, `Rds` publication-wise files contain author-level data, nested in the `author_data` column.  

The file `unf.csv` contains Universal Numeric Fingerprints (UNF) for the dataset files.  UNF values can be used to validate a copy of the dataset, i.e., to confirm that the copy is the version that the user thinks it is.  UNF values are generated using the UNF R package.  The following block briefly illustrates the use of UNF values in practice:  

```{r}
library(UNF)

## UNF value for publications-philosophy of science-Rds v2.0
unf_value = 'nJaKSRjMpMV1zYGoOPFRlQ=='

pub_level = readRDS('publications_philsci.Rds')
pub_level_unf = unf(pub_level, version = 6, digits = 3, timezone = 'UTC')

identical(pub_level_unf$unf, unf_value)
```


# Copyright Information #

The researchers responsible for the Comp HOPOS dataset believe all of its contents to be in the public domain.  We claim no ownership over any of these contents, and believe the contents are free for unrestricted public use.  If you are or represent a copyright holder and believe some of your copyrighted materials have been included in the dataset, contact us at <hicks.daniel.j@gmail.com>.  


# Publication-Level Data #

The following columns are publication-level data, and are available in both data formats.  Most of these columns are retrieved from the [CrossRefAPI](https://github.com/Crossref/rest-api-doc/blob/master/api_format.md).  Descriptions in quotes are quoted verbatim from the CrossRef API documentation. 

- `alternative.id`: "Other identifiers for the work provided by the depositing member"
- `publication_series`: The (canonicalized) journal or book series title
- `created`: "Date on which the DOI was first registered"
- `deposited`: "Date on which the work metadata was most recently updated"
- `doi`: Digital Object Identifier
- `indexed`: "Date on which the work metadata was most recently indexed. Re-indexing does not imply a metadata change, see deposited for the most recent metadata change date"
- `issn`: Journal ISSN.  Note that these are not necessarily consistent within a given journal.  Use `publication_series` to group by journal. 
- `issue`: "Issue number of an article's journal"
- `issued`: "Earliest of published-print and published-online"
- `page`: "Pages numbers of an article within its journal"
- `publisher`: "Name of work's publisher"
- `reference.count`: "Count of outbound references deposited with Crossref."  We have not done any analyses to confirm the validity of these counts for bibliometric purposes.  
- `title`: Article or book chapter title
- `type`: Type of entry; should be one of journal article or book chapter
- `volume`: "Volume number of an article's journal"
- `subtitle`: "Work subtitles, including original language and translated"
- `update.policy`: "Link to an update policy covering Crossmark updates for this work"
- `license_date`: Start date for the copyright license(?) 
- `license_URL`: "Link to a web page describing this license"
- `license_delay.in.days`: "Number of days between the publication date of the work and the start date of this license"
- `license_content.version`: "Either vor (version of record,) am (accepted manuscript,) tdm (text and data mining) or unspecified"
- `abstract`: "Abstract as a JSON string or a JATS XML snippet encoded into a JSON string"; only available for a few entries
- `publication_group`: Journal publication groups defined for constructing this dataset.  Should be one of primary [philosophy of science], secondary [philosophy of science], feminist [philosophy and gender studies], or analytic. 
- `container.title`: For Boston and Western Ontario book series, the title of the book in which the chapter appears.  Should be `NA` ("not available") for journal articles. 
- `isbn`: Book ISBN. We have not validated whether these are consistent within a given book. 
- `url`: (We're not clear how we ended up with both "URL" and "url.")
- `book_url`: URL to the book's page on SpringerLink. Only for Springer book chapters. 
- `pub_date`: Publication date.  In `Rds` files, this is in POSIXct format. In `csv` files, as 2018-08-31. 
- `pub_year`: Publication year, as an integer
- `author_data`:  A list column.  Each entry is a dataframe containing the author-level data for this publication.  `Rds` files only.  To unpack, use the `unnest()` function from the `dplyr` package.  
- `n_authors`:  Count of the number of authors


# Author-Level Data #

The following columns are author-level data, and only available in (a) author-wise formats or (b) the publication-wise `Rds` file, in the `author_data` column. 

- `given_orig`: Unmodified given (first) name
- `family_orig`: Unmodified family name or surname
- `sequence`: Author order, as "first" or "additional"
- `suffix`: Name suffix, such as "Jr."
- `affiliation.name`: Author affiliation; mostly `NA` and not standardized
- `orcid`: Author ORCID (See <https://orcid.org/>)
- `canonical_family`: Family name or surname as identified by author disambiguation script. Due to some names excluded from disambiguation, this can contain `NA`s. 
- `canonical_given`: Given (first) name as identified by author disambiguation script. Due to some names excluded from disambiguation, this can contain `NA`s. **The `canonical_` fields do not contain the canonical names.** <https://github.com/dhicks/comp-HOPOS/issues/16> 
- `family`: Canonical family name or surname; should only be `NA` when no name is available
- `given`: Canonical given (first) name; should only be `NA` when no name is available
- `for_gender_attr`: Section of canonical given name used for gender attribution by methods that take only a single word
- `prob_w_blevins`: Probability that the author is a woman according to the Blevins approach
- `prob_w_avg`: Probability that the author is a woman. Averaged from the Blevins, NamSor, and genderize.io results. 
- `gender_attr.manual`: Manual gender attribution; overrides computational methods if not `NA`.  
- `gender_attr`: Gender attribution, based on either `prob_w_avg` or `gender_attr.manual`. 


