Read-only mirror of https://github.com/dscc-admin-ch/csvw-eo — Data Science Competence Center DSCC. Issues & pull requests at the source.
  • HTML 79.4%
  • Python 15.4%
  • Jupyter Notebook 4.7%
  • CSS 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
LancelotMarti 3d2ab49a57 Bump version
2026-06-01 17:58:23 +02:00
.github/workflows quick fix 2026-06-01 17:51:30 +02:00
csvw-eo-library Bump version 2026-06-01 17:58:23 +02:00
docs add links in index 2026-05-13 13:31:09 +00:00
documentation rename all csvw-safe to csvw-eo 2026-05-13 13:06:03 +00:00
images adapting png, adding wip comment, renaming folders 2026-05-13 13:16:35 +00:00
site also rename library import 2026-05-13 13:27:07 +00:00
.gitignore also rename library import 2026-05-13 13:27:07 +00:00
csvw-eo-constraints.md rename all csvw-safe to csvw-eo 2026-05-13 13:06:03 +00:00
csvw-eo-constraints.ttl rename all csvw-safe to csvw-eo 2026-05-13 13:06:03 +00:00
csvw-eo-context.jsonld rename all csvw-safe to csvw-eo 2026-05-13 13:06:03 +00:00
csvw-eo-vocab.ttl rename all csvw-safe to csvw-eo 2026-05-13 13:06:03 +00:00
LICENSE remove setup.py, add license, replace pylint, flake8, isort by ruff 2026-04-13 11:58:24 +00:00
manual_penguin_metadata.jsonld rename all csvw-safe to csvw-eo 2026-05-13 13:06:03 +00:00
mkdocs.yml adapting png, adding wip comment, renaming folders 2026-05-13 13:16:35 +00:00
README.md also rename library import 2026-05-13 13:27:07 +00:00

CSVW-EO

CSVW-EO extends the W3C CSV on the Web (CSVW) standard with privacy-safe metadata for:

  • Differential Privacy contribution modeling
  • Structural dataset assumptions
  • Dummy data generation
  • Public partition/key definitions
  • Validation workflows

Documentation: https://dscc-admin-ch.github.io/csvw-eo-docs/


Why CSVW-EO?

Many datasets cannot be shared directly due to privacy or governance constraints.

CSVW-EO allows publishing safe assumptions about datasets without sharing the underlying sensitive data.

Examples include:

  • schema information
  • nullable proportions
  • public partitions
  • contribution bounds for DP
  • logical dependencies

Overview


Repository Structure

Component Description
csvw-eo-library/ Python library
docs/ MkDocs documentation
csvw-eo-vocab.ttl RDF vocabulary
csvw-eo-constraints.ttl SHACL validation rules

Installation

pip install csvw-eo

Quick Example

from csvw_eo.make_metadata_from_data import make_metadata_from_data
from csvw_eo.make_dummy_from_metadata import make_dummy_from_metadata

metadata = make_metadata_from_data(
    df,
    privacy_unit="user_id",
)
dummy_df = make_dummy_from_metadata(metadata)

Documentation

Section Link
Vocabulary https://dscc-admin-ch.github.io/csvw-eo-docs/vocabulary/overview/
Python Library https://dscc-admin-ch.github.io/csvw-eo-docs/library/overview/
API Reference https://dscc-admin-ch.github.io/csvw-eo-docs/api/