dpv
Theme
Text size
GitHub Menu

dpv#

This project is a LinkML model of the Data Privacy Vocabulary (DPV) 2.3 of the W3C Data Privacy Vocabularies and Controls Community Group. It holds every term of DPV’s vocabularies as a record, and DPV’s examples as data.

  • Schema documentation, generated from the schema
  • About: how the schema reads DPV, where each part comes from and what it leaves out
  • dpv.yaml: the schema, with its modules merged

Validating a file of the catalogue#

uv run linkml-validate -s src/dpv/schema/dpv.yaml -C DpvCatalogue src/dpv/data/dpv-2.3-core.yaml

project/jsonschema/dpv.schema.json is the same schema for anyone without LinkML. tests/dpv_rules.py adds what a validator cannot state, such as that a value names a term that exists.

Describing a use case#

A thing a use case describes is a DpvResource, which holds any DPV property:

id: ex:Newsletter
rdf_type:
  - dpv:Process
hasPurpose:
  - dpv:DirectMarketing
hasPersonalData:
  - pd:EmailAddress
uv run linkml-validate -s src/dpv/schema/dpv.yaml -C DpvResource newsletter.yaml

What the catalogue holds#

FileConceptsProperties
dpv-2.3-core.yaml973162
dpv-2.3-pd.yaml2310
dpv-2.3-tech.yaml13052
dpv-2.3-ai.yaml23110
dpv-2.3-risk.yaml50743
dpv-2.3-justifications.yaml660
dpv-2.3-loc.yaml5,2704
dpv-2.3-legal.yaml89615
dpv-2.3-sector.yaml4150
dpv-2.3-standards.yaml13621
dpv-2.3-examples.yaml10

dpv-2.3-agents.yaml holds 70 contributors and organizations, and dpv-2.3-examples.yaml also holds the 88 examples.

What the validator cannot check#

  • That a value names a term that exists. tests/dpv_rules.py checks it.
  • That a value is of a class a property’s rangeIncludes names, which DPV does not require. tests/test_examples.py lists where DPV’s own examples leave those classes.

Guides