Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legal modules for EU countries with DPAs and laws #48

Open
coolharsh55 opened this issue Sep 10, 2022 · 8 comments
Open

Add legal modules for EU countries with DPAs and laws #48

coolharsh55 opened this issue Sep 10, 2022 · 8 comments

Comments

@coolharsh55
Copy link
Collaborator

coolharsh55 commented Sep 10, 2022

With the changes in 2.0, to represent concepts such as law and DPA needs a new legal module (i.e. a subdirectory within /legal) representing the jurisdiction. The information for this e.g. from GDPRHub has a page with DPAs - https://gdprhub.eu/index.php?title=Category:DPA will be put in separate spreadsheets and used to create individual RDF and HTML files for each jurisdiction. E.g. see existing extensions for Ireland, Germany, US, etc.

Work needed now is to populate the spreadsheet https://docs.google.com/spreadsheets/d/1pqGE67I5kyoGrkhMItJbi18VLguVqE1jVecnfki1ujY/edit?gid=2007379443#gid=2007379443 with this info, update 100, vocab_management, and then generate RDF and HTML.

older issue: Current documentation (HTML) has some concepts showing association with relevant terms, but this is inconsistent. E.g. https://w3id.org/dpv/dpv-legal#DPA-AT shows link to relevant jurisdiction and laws, but the jurisdiction https://w3id.org/dpv/dpv-legal#AT does not show either the law or the authority. To fix,

  1. Make changes in spreadsheet to have this information present there
  2. Make changes in 002*.py to serialise this in RDF
  3. Make changes in 003*.py to provide these relations in the HTML tables.

NOTE: It would be better in the long term to refactor the entire term extraction process to handle arbitrary relations, as otherwise this would mean custom code for each and every sheet that has a non-uniform structure.

@coolharsh55
Copy link
Collaborator Author

Two regressions:

  1. We no longer have all DPAs (e.g. DPA-AT) declared as they now reside within the jurisdictional extensions (e.g. /legal/at is needed)
  2. Where to store the triple loc:AT dpv:hasApplicableLaw legal-eu:law-GDPR? Preference would be to store it within the AT extension.

@besteves4
Copy link
Collaborator

I wonder whether it would be nice to have a KG with this, e.g., on https://w3id.org/dpv/kg, where all of these triples, e.g., locations <-> laws, legal basis <-> rights, and so on, are available instead of being spread out in different extensions.

@coolharsh55
Copy link
Collaborator Author

@besteves4 it would be redundant to provide this since such a graph can be constructed automatically by importing all legal extensions? Also, the legal.ttl contains some triples - e.g. authorities and laws, but legal basis to rights mappings are not present as these are defined within specific jurisdictions.

@coolharsh55
Copy link
Collaborator Author

We can provide in legal-eu.ttl all the legal bases, rights, mappings from legal basis to rights, laws, authorities - its the same jurisdiction so there should be no conflicts or issues. What do you think?

@ghurlbot
Copy link

Comment by @coolharsh55 via IRC channel #dpvcg on irc.w3.org

fix this in time for 2.0 release

coolharsh55 added a commit that referenced this issue Jul 21, 2024
- adds association between dpv:Authority and dpv:Law instances in LEGAL
- uses a SPARQL hook (see vocab_management.py)
- generated RDF and HTML documentation containing inferred triples
- added association to consolidated /legal HTML page
- this completes some of #48 which will additionally require creating
  extensions for each jurisdiction and repeating this exercise (in 2.1)
@coolharsh55
Copy link
Collaborator Author

Added association between dpv:Authority and dpv:Law for the 2.0 release. For 2.1, more extensions have to be created to represent specific authorities and laws and associations within them - which will then be consolidated into the LEGAL extension RDF and HTML for convenience.

@coolharsh55 coolharsh55 added todo and removed fix-this labels Jul 21, 2024
coolharsh55 added a commit that referenced this issue Jul 31, 2024
- adds association between dpv:Authority and dpv:Law instances in LEGAL
- uses a SPARQL hook (see vocab_management.py)
- generated RDF and HTML documentation containing inferred triples
- added association to consolidated /legal HTML page
- this completes some of #48 which will additionally require creating
  extensions for each jurisdiction and repeating this exercise (in 2.1)
@coolharsh55
Copy link
Collaborator Author

GDPRHub has a page with DPAs - https://gdprhub.eu/index.php?title=Category:DPA

@coolharsh55 coolharsh55 changed the title Specify association between law, authority, and jurisdiction in documentation of respective concepts Add legal modules for EU countries with DPAs and laws Aug 2, 2024
coolharsh55 added a commit that referenced this issue Aug 2, 2024
- adds extensions under `/legal` for the following EU/EEA member states:
  AT, BE, BG, CY, CZ, DK, EE, ES, FI, FR, GB, GR, HR, HU,
  IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK,
  which use the ISO 3166-2 codes
- the following extensions already existed in 2.0: IE, IN, DE, US, EU
- each jurisdiction only has the DPA defined, and no laws are defined at
  the moment
- #48 should be used to discuss this - the missing laws and other info
  requires volunteers to collect the data (the work is quite simple)
- Spain (ES) has 3 autonomous regions who have DPAs, whose data is
  present in the spreadsheets but has not been included in this release
  as their jurisdictions utilise regions which are not currently
  represented in LOC
- #179 tracks the addition of ISO 3166-2 subdivisions which are needed
  to add ES data as above
@coolharsh55
Copy link
Collaborator Author

Added legal extensions for EU/EEA members with DPAs defined in 314f098 - laws are not defined but are quite trivial to add in (need a name, link, and date added to spreadsheet).

coolharsh55 added a commit that referenced this issue Aug 4, 2024
- adds extensions under `/legal` for the following EU/EEA member states:
  AT, BE, BG, CY, CZ, DK, EE, ES, FI, FR, GB, GR, HR, HU,
  IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK,
  which use the ISO 3166-2 codes
- the following extensions already existed in 2.0: IE, IN, DE, US, EU
- each jurisdiction only has the DPA defined, and no laws are defined at
  the moment
- #48 should be used to discuss this - the missing laws and other info
  requires volunteers to collect the data (the work is quite simple)
- Spain (ES) has 3 autonomous regions who have DPAs, whose data is
  present in the spreadsheets but has not been included in this release
  as their jurisdictions utilise regions which are not currently
  represented in LOC
- #179 tracks the addition of ISO 3166-2 subdivisions which are needed
  to add ES data as above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants