Skip to content

Latest commit

 

History

History

docs

Adding a Dataset to Data Commons

This document summarizes the steps involved in adding a dataset to Data Commons (DC).

Prerequisites

Design location and schema mapping

Data Commons is a single graph that reconciles references to the same entities and concepts across datasets. This linking happens at the time of importing datasets. To get started:

  • Identify how the locations/places/entities and variables/properties in the dataset will get mapped.
  • For locations/places, use the following (in preferred order): global identifiers (like FIPS), geo info (lat/lng, geo boundary), qualified names.
  • For variables, find already existing schema in Data Commons (from existing statistical variables here), or add new StatisticalVariable nodes along with core schema (new Class, Property, Enumeration nodes) as necessary.

This process typically happens in collaboration with the DC core team, and we recommend that you put together a short import document (Template, Example1, Example2)

Schema-less imports

For datasets with complex schema or ones that we want to import quickly, we can start with a schema-less import, and iteratively add schema. The “schema-less” part of this framework means that the statistical variables are not yet fully defined. This lets us get the dataset into Data Commons without blocking on schema definition. To learn more, please review the following links:

Preparing artifacts

Once the entity and schema mapping have been finalized, you can now prepare the artifacts. This includes:

  • StatisticalVariable MCF nodes (if any) checked into schema repo
  • Template MCF and corresponding cleaned tabular files (typically CSV).
  • Data cleaning code (along with README) checked into data repo
  • Validation results for the artifacts (from running dc-import tool)

Note: you may also use the DC Import Wizard to help generate artifacts for common dataset structures

Review by DC team

When all the artifacts are ready, please get it reviewed by the DC core team via github Pull Requests made to the data repo.