|
| 1 | +# Tables |
| 2 | + |
| 3 | +This document lists every table in |
| 4 | + |
| 5 | +## Table Definitions |
| 6 | + |
| 7 | +The Parquet files are three tables of the SoftCite data. |
| 8 | +They do not contain all fields in the SoftCite dataset, but are a (hopefully useful) subset specifically related to mentions. |
| 9 | + |
| 10 | +Much of the information below can be gleaned from the metadata field `comment`, which is present in every table and for every field. |
| 11 | +Where this documentation conflicts with what is in `comment`, trust what is in `comment`. |
| 12 | + |
| 13 | +Where field names are repeated between tables, they have identical meaning (e.g. "paper_id"). |
| 14 | + |
| 15 | +Tables are mostly normalized, but with several technically-redundant precalculated fields (such as "published_year" from "published_date") which have been added for convenience. |
| 16 | + |
| 17 | +### Papers |
| 18 | + |
| 19 | +This table contains paper metadata. |
| 20 | +Each entry represents a single paper analyzed by SoftCite. |
| 21 | +Many papers do not have any associated mentions - see the `has_mentions` field. |
| 22 | + |
| 23 | +- **paper_id** is a unique key for each paper, specific to this dataset. |
| 24 | +- **softcite_id** is the UUID for each paper in the original SoftCite dataset. |
| 25 | +- **title** is the title of the paper as parsed by SoftCite. |
| 26 | +- **published_year** is the year the paper was published, calculated from published_date. |
| 27 | +- **published_date** is the publication date of the paper as parsed by SoftCite. |
| 28 | +- **publication_venue** is the venue the paper was published in. This covers |
| 29 | +- **publisher_name** is the publisher of the paper's venue. |
| 30 | +- **doi** is the raw DOI of the paper (non-URL form). |
| 31 | +- **pmcid** is the PubMed Central identifier for the paper, if one exists. |
| 32 | +- **pmid** is the PubMed identifier of the paper, if one exists. |
| 33 | +- **genre** is the type of document the paper is, such as a journal article or a book. The full list of genres is shown [below](#genres). |
| 34 | +- **license_type*** is the license of the document parsed by SoftCite. The full list of licenses is shown [below](#licenses). |
| 35 | +- **has_mentions** is whether SoftCite identified any software mentions for the paper. |
| 36 | + |
| 37 | +### Mentions |
| 38 | + |
| 39 | +This table contains an entry for every identified mention of a piece of software in the analyzed papers. |
| 40 | + |
| 41 | +- **software_mention_id** is a unique key for each software mention. It is a composite of _paper_id_, _source_file_type_, and _mention_index_. |
| 42 | +- **paper_id** is the equivalent to _paper_id_ in the Papers table. |
| 43 | +- **source_file_type** is the format of the document parsed by SoftCite. For now this is always "pdf", but in the future may include other formats. |
| 44 | +- **mention_index** is a unique key for each mention within a paper. |
| 45 | +- **software_raw** is the raw string of the mentioned software. |
| 46 | +- **software_normalized** is a normalized form of _software_raw_. |
| 47 | +- **version_raw** is the version of the mentioned software, if present in the mention. |
| 48 | +- **version_normalized** is a normalized form of _version_raw_. |
| 49 | +- **publisher_raw** is the raw string of the publisher of the mentioned software, if present in the mention. |
| 50 | +- **publisher_normalized** is a normalized form of _publisher_raw_. |
| 51 | +- **language_raw** is the raw string of the mentioned software's programming language, if present in the mention. |
| 52 | +- **language_normalized** is a normalized form of _language_raw_. |
| 53 | +- **url_raw** is the raw string of the URL for the mentioned software, if present in the mention. |
| 54 | +- **url_normalized** is a normalized form of _url_raw_. |
| 55 | +- **context_full_text** is the surrounding context of the software mention in the paper, as parsed by SoftCite. This is often a sentence, but can be a fragment. |
| 56 | + |
| 57 | +### PurposeAssessments |
| 58 | + |
| 59 | +Each mention has Purpose Assessments which try to determine whether the mention has a given purpose. |
| 60 | +Each Mention in the Mentions table has exactly six of these assessments, one for each possible combination of scope and purpose (see below). |
| 61 | + |
| 62 | +- **software_mention_id** is identical to _software_mention_id in the Mentions table. |
| 63 | +- **paper_id** is identical to _paper_id_ in the Papers table. |
| 64 | +- **source_file_type** is identical to _source_file_type_ in the Mentions table. |
| 65 | +- **mention_index** is identical to _mention_index_ in the Mentions table. |
| 66 | +- **scope** is either "document" or "local". A "local" scope indicates the analysis was done specifically on the local context of the mention when determining its purpose. A "document" scope indicates that the analysis covered the entire document. |
| 67 | +- **purpose** is either "created", "used", and "shared", representing the reason the software was mentioned in this context. These purposes are not necessarily distinct: a mention could both indicate that some software was created by the papers' authors and is available on GitHub, for instance, making it both "created" and "shared". |
| 68 | + |
| 69 | +### Appendix |
| 70 | + |
| 71 | +#### Genres |
| 72 | + |
| 73 | +For reference, these are the known values for the "genre" field: |
| 74 | + |
| 75 | +- "book" |
| 76 | +- "book-chapter" |
| 77 | +- "book-part" |
| 78 | +- "book-section" |
| 79 | +- "book-series" |
| 80 | +- "book-set" |
| 81 | +- "database" |
| 82 | +- "dataset" |
| 83 | +- "dissertation" |
| 84 | +- "edited-book" |
| 85 | +- "grant" |
| 86 | +- "journal" |
| 87 | +- "journal-article" |
| 88 | +- "journal-issue" |
| 89 | +- "journal-volume" |
| 90 | +- "monograph" |
| 91 | +- "other" |
| 92 | +- "peer-review" |
| 93 | +- "posted-content" |
| 94 | +- "proceedings" |
| 95 | +- "proceedings-article" |
| 96 | +- "proceedings-series" |
| 97 | +- "reference-book" |
| 98 | +- "reference-entry" |
| 99 | +- "report" |
| 100 | +- "report-component" |
| 101 | +- "report-series" |
| 102 | +- "standard" |
| 103 | +- NA (not present) |
| 104 | + |
| 105 | +#### Licenses |
| 106 | + |
| 107 | +For reference, these are the known value for the "license" field: |
| 108 | + |
| 109 | +TBD. |
0 commit comments