--- license: other language: - en pretty_name: Database of Data Use task_categories: - token-classification tags: - data-use - dataset-mentions - information-extraction configs: - config_name: documents data_files: documents/*.parquet - config_name: mentions data_files: mentions/*.parquet - config_name: datasets data_files: datasets/*.parquet - config_name: mention_family data_files: mention_family/*.parquet - config_name: families data_files: registry/families.parquet - config_name: aliases data_files: registry/aliases.parquet --- # Database of Data Use Mentions of datasets in documents, extracted with the `datause_pipeline` (`rafmacalaba/gliner_agents_v3` finds mentions, `rafmacalaba/lfm2.5-350M-focus-metadata` gives usage and attributes; code: https://github.com/rafmacalaba/database-of-data-use). The dataset is the data-use extractions and the **origin** of each document, for traceability. It carries no bibliographic metadata (title, authors, abstract); follow `source_url` / `pdf_url` / `doi` to the origin. The data grows by **source**. Every table has a `source` column, and each source is one parquet file per table (`documents/.parquet`, ...), so adding a source adds files and does not change existing ones. All sources share the same schema; a field a source does not have is null. | table | one row per | main columns | |---|---|---| | `documents` | document | `corpus_id`, `source`, `source_doc_id`, `source_url`, `pdf_url`, `doi`, `sha256`, `n_pages`, `extraction_status`, `entity_model`, `metadata_model`, `extraction_settings` (the models and settings that produced the document's mentions; null for a source published before they were recorded), `topics` (topics of the whole document when the source has them: for OpenAlex, the topic searches that found the paper; null otherwise), plus `document_type` and `publication_year` as analysis context | | `mentions` | extracted mention | `mention_id`, `corpus_id`, `page_number` (1-based), `mention_text`, `specificity`, `score`, `role`, `usage_action`, `usage_summary`, `theme_tags`, `dataset_geography`, `dataset_year`, `dataset_version`, `dataset_producer`, `dataset_acronym`, `dataset_data_type` `document_type`, `publication_year`, `source_url` | | `datasets` | distinct dataset in a document | `corpus_id`, `dataset_name`, `specificity`, `n_occurrences`, `pages`, `max_score`, `role`, `usage_action`, `theme_tags`, `dataset_*` | | `mention_family` | mention | `mention_id`, `specificity`, `family_id`, `match_method`, `match_score`, `mention_country` (ISO-3), `round_year` | | `families` | dataset family | `family_id`, `canonical_name`, `acronym`, `kind`, `producer`, `n_mentions` | | `aliases` | normalised name form | `alias`, `family_id`, `method`, `score` | Join the tables on `corpus_id` (`:` of the document bytes). ## Reading the data - `specificity`: `named` (a named dataset), `descriptive` (described, not named), `vague`. Only named mentions carry `role` (primary, supporting, background), `usage_action` (source, analyze, curate, validate, inform) and the `dataset_*` attributes; for the others they are null. - `mentions` are per text chunk: the same mention in overlapping chunks can appear twice. `datasets` is the deduplicated view. - **Where an extraction comes from.** Every row carries `source` (the corpus) and `corpus_id` (`:`). `documents` gives the origin record (`source_doc_id`, `source_url`, `pdf_url`, `doi`, `sha256`). A mention's `mention_id` is `:::-`, so it names the exact page and character span, and `summary-.json` records the counts and, under `extraction`, the run's models, settings and library versions. - `extraction_status != ok` means the document was **not processed** (for example the GPU ran out of memory). It does not mean the document mentions no data. Such documents have no mentions. - The extraction is automatic and has errors: scores and attributes are model output, not curated. - Byte-identical files are merged into one document; the other origin ids are in `duplicate_source_doc_ids`. ## Dataset families (`family_id`) "Ghana Living Standards Survey", "Nepal Living Standards Survey IV" and "LSMS 2017" are different strings for one family of surveys. `mention_family` maps each *named* mention to a `family_id` automatically (no manual curation) and splits off the country and the round/year. `match_method` says how: `alias` (a form seen before), `acronym`, `fuzzy` (overlap with a family's name), `extends` (a variant that contains a family's whole name), `new` (first form of a new family) or `generic` (nothing distinguishing, like "household survey" or "census data"; `family_id` is null). Named mentions create and join families. Descriptive mentions (if included) only join an *existing* family, with a stricter rule (a known form, an acronym, or a close match); most stay unresolved (`unmatched`), because descriptions like "passenger data" are not dataset names. Named results do not depend on whether descriptive mentions are included. `unnamed` (written as a description, not a name: see below; `family_id` is null). `match_score` is the confidence; low `fuzzy`/`extends` scores are the least reliable. `family_id` is assigned once and never changes, so adding sources only extends the registry. `canonical_name`, `kind` (majority of the extracted data type) and `producer` are automatic and may be imperfect. ## What is left out (both ON by default; `datause/quality.py`) - **Non-English passages and documents.** The model writes its one-line summary in the language of the passage, so a mention whose summary is identified as another language (probability at least 0.9) is left out, and so is every mention of a document where more than half of the summarised passages are. The language of the dataset *name* does not count: "Encuesta Nacional de Hogares" cited in an English document stays. Off with `--no-english-only`. - **Datasets that are not named.** A form written as a description ("survey launched by the UNHCR", "mobile phone usage data", "Routine surveillance system") can join an existing family but never creates one, and a family none of whose forms is written like a name is dropped. Lowercase spellings of a real name ("demographic and health survey") still join it. Off with `--no-named-only`. `canonicalize.py` and `build_graph.py` take both flags and record what they left out (`non_english`, `unnamed`) in their output; `harmonize.py` takes `--named-only` so a real dataset is never merged into a family that is left out. The dataset's label is chosen among the forms written as a name when there is one ("Economic Activity Index", not "index of economic activity"). ## Sources See `summary-.json` in the repository for counts per source.