Skip to content

Commit

Permalink
v0.6: Data Subject Categories, minor fixes
Browse files Browse the repository at this point in the history
This commit updates the DPV to v0.6, which adds the Data Subject
categories and makes minor changes to the Risk module.

It fixes inconsistencies in ontology metadata:
- DPV-SKOS ontologies utilised the wrong metadata
- SPECIAL project links have been updated to the ERCIM archive as the
  previous ones were not resolvable
- other minor fixes
  • Loading branch information
coolharsh55 committed Apr 13, 2022
1 parent dfdc399 commit 757317c
Show file tree
Hide file tree
Showing 339 changed files with 113,189 additions and 135,465 deletions.
15 changes: 8 additions & 7 deletions documentation-generator/002_parse_csv_to_rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
ODRL = Namespace('http://www.w3.org/ns/odrl/2/')
PROV = Namespace('http://www.w3.org/ns/prov#')
SKOS = Namespace('http://www.w3.org/2004/02/skos/core#')
SPL = Namespace('http://www.specialprivacy.eu/langs/usage-policy#')
SVD = Namespace('http://www.specialprivacy.eu/vocabs/data#')
SVDU = Namespace('http://www.specialprivacy.eu/vocabs/duration#')
SVL = Namespace('http://www.specialprivacy.eu/vocabs/locations#')
SVPR = Namespace('http://www.specialprivacy.eu/vocabs/processing#')
SVPU = Namespace('http://www.specialprivacy.eu/vocabs/purposes#')
SVR = Namespace('http://www.specialprivacy.eu/vocabs/recipients')
SPL = Namespace('https://specialprivacy.ercim.eu/langs/usage-policy#')
SVD = Namespace('https://specialprivacy.ercim.eu/vocabs/data#')
SVDU = Namespace('https://specialprivacy.ercim.eu/vocabs/duration#')
SVL = Namespace('https://specialprivacy.ercim.eu/vocabs/locations#')
SVPR = Namespace('https://specialprivacy.ercim.eu/vocabs/processing#')
SVPU = Namespace('https://specialprivacy.ercim.eu/vocabs/purposes#')
SVR = Namespace('https://specialprivacy.ercim.eu/vocabs/recipients')
SW = Namespace('http://www.w3.org/2003/06/sw-vocab-status/ns#')
TIME = Namespace('http://www.w3.org/2006/time#')

Expand Down Expand Up @@ -924,6 +924,7 @@ def serialize_graph(graph, filepath):
if proposed:
proposed_terms['EU_Adequacy'] = proposed

DPV_LEGAL_GRAPH.load('ontology_metadata/dpv-legal.ttl', format='turtle')
serialize_graph(DPV_LEGAL_GRAPH, f'{EXPORT_DPV_LEGAL_PATH}/dpv-legal')
if proposed_terms:
with open(f'{EXPORT_DPV_LEGAL_PATH}/proposed.json', 'w') as fd:
Expand Down
14 changes: 7 additions & 7 deletions documentation-generator/002_parse_csv_to_rdf_owl.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
ODRL = Namespace('http://www.w3.org/ns/odrl/2/')
PROV = Namespace('http://www.w3.org/ns/prov#')
SKOS = Namespace('http://www.w3.org/2004/02/skos/core#')
SPL = Namespace('http://www.specialprivacy.eu/langs/usage-policy#')
SVD = Namespace('http://www.specialprivacy.eu/vocabs/data#')
SVDU = Namespace('http://www.specialprivacy.eu/vocabs/duration#')
SVL = Namespace('http://www.specialprivacy.eu/vocabs/locations#')
SVPR = Namespace('http://www.specialprivacy.eu/vocabs/processing#')
SVPU = Namespace('http://www.specialprivacy.eu/vocabs/purposes#')
SVR = Namespace('http://www.specialprivacy.eu/vocabs/recipients')
SPL = Namespace('https://specialprivacy.ercim.eu/langs/usage-policy#')
SVD = Namespace('https://specialprivacy.ercim.eu/vocabs/data#')
SVDU = Namespace('https://specialprivacy.ercim.eu/vocabs/duration#')
SVL = Namespace('https://specialprivacy.ercim.eu/vocabs/locations#')
SVPR = Namespace('https://specialprivacy.ercim.eu/vocabs/processing#')
SVPU = Namespace('https://specialprivacy.ercim.eu/vocabs/purposes#')
SVR = Namespace('https://specialprivacy.ercim.eu/vocabs/recipients')
SW = Namespace('http://www.w3.org/2003/06/sw-vocab-status/ns#')
TIME = Namespace('http://www.w3.org/2006/time#')

Expand Down
14 changes: 7 additions & 7 deletions documentation-generator/002_parse_csv_to_rdf_skos.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
ODRL = Namespace('http://www.w3.org/ns/odrl/2/')
PROV = Namespace('http://www.w3.org/ns/prov#')
SKOS = Namespace('http://www.w3.org/2004/02/skos/core#')
SPL = Namespace('http://www.specialprivacy.eu/langs/usage-policy#')
SVD = Namespace('http://www.specialprivacy.eu/vocabs/data#')
SVDU = Namespace('http://www.specialprivacy.eu/vocabs/duration#')
SVL = Namespace('http://www.specialprivacy.eu/vocabs/locations#')
SVPR = Namespace('http://www.specialprivacy.eu/vocabs/processing#')
SVPU = Namespace('http://www.specialprivacy.eu/vocabs/purposes#')
SVR = Namespace('http://www.specialprivacy.eu/vocabs/recipients')
SPL = Namespace('https://specialprivacy.ercim.eu/langs/usage-policy#')
SVD = Namespace('https://specialprivacy.ercim.eu/vocabs/data#')
SVDU = Namespace('https://specialprivacy.ercim.eu/vocabs/duration#')
SVL = Namespace('https://specialprivacy.ercim.eu/vocabs/locations#')
SVPR = Namespace('https://specialprivacy.ercim.eu/vocabs/processing#')
SVPU = Namespace('https://specialprivacy.ercim.eu/vocabs/purposes#')
SVR = Namespace('https://specialprivacy.ercim.eu/vocabs/recipients')
SW = Namespace('http://www.w3.org/2003/06/sw-vocab-status/ns#')
TIME = Namespace('http://www.w3.org/2006/time#')

Expand Down
2 changes: 1 addition & 1 deletion documentation-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Downloads the CSV data for DPV and other vocabularies (such as DPV-GDPR), conver

Requires: `python3` and modules `rdflib`, `rdflib-jsonld`, `jinja2`

The Data Privacy Vocabulary (DPV) is available at https://www.w3id.org/dpv and its repository is at https://github.com/w3c/dpv.
The Data Privacy Vocabulary (DPV) is available at https://w3id.org/dpv and its repository is at https://github.com/w3c/dpv.

## Quick Summary

Expand Down
193 changes: 0 additions & 193 deletions documentation-generator/docs/diagrams/base_vocab_alternate_001.graphml

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 757317c

Please sign in to comment.