Skip to content

Commit

Permalink
fix missing risk:Reidentification, empty LEGAL csv
Browse files Browse the repository at this point in the history
RISK
- risk:Reidentification as parent was missing in the consequences
  taxonomy in RISK extension
- concept was declared as the parent of risk:UnauthorisedReidentification

LEGAL
- The LEGAL csv `legal/legal.csv` was empty, which has been fixed and
  the CSV is now populated with the same concepts as the RDF and HTML
- see #165 #165 (comment)
- issue was legal concepts don't have a definition, and the query in
  `200_serialise_RDF.py` assumed all concepts have one. Fix is to
  declare definition as optional.
  • Loading branch information
coolharsh55 committed Jun 21, 2024
1 parent c12aeed commit d29d521
Show file tree
Hide file tree
Showing 26 changed files with 23,918 additions and 23,040 deletions.
2 changes: 1 addition & 1 deletion code/200_serialise_RDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def _consolidate(item: list) -> list:
?iri a skos:Concept .
?iri skos:prefLabel ?label .
?iri rdf:type ?type .
?iri skos:definition ?definition .
?iri dct:created ?created .
OPTIONAL { ?iri skos:definition ?definition } .
OPTIONAL { ?iri rdfs:subClassOf ?parent } .
OPTIONAL { ?iri skos:broader ?broader } .
OPTIONAL { ?iri skos:scopeNote ?note } .
Expand Down
2 changes: 1 addition & 1 deletion code/vocab_csv/RiskConsequences.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Harm,Harm,Impact that acts as or causes harms,risk:Damage,dpv:Risk,,,,,,2022-08-
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Consequences,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
SecurityBreach,Security Breach,Security Breach,,dpv:Risk,,,,,"(ISO/IEC 27005:2018,https://www.iso.org/standard/75281.html)",2022-08-17,,accepted,Harshvardhan J. Pandit,https://www.w3.org/2022/08/17-dpvcg-minutes.html,,,,,,,,,,,,,,,,,
Reidentification,Re-identification,Re-identification,,dpv:Risk,,,,,,,,proposed,,,,,,,,,,,,,,,,,,,
Reidentification,Re-identification,Re-identification,,dpv:Risk,,,,,,2022-08-19,,accepted,Harshvardhan J. Pandit,,,,,,,,,,,,,,,,,,
UnauthorisedReidentification,Unauthorised Re-Identification,Unauthorised Re-Identification,risk:Reidentification,dpv:Risk,,,,,,2022-08-19,,accepted,Georg P. Krog,https://www.w3.org/2022/08/17-dpvcg-minutes.html,,,,,,,,,,,,,,,,,
ConsequenceForDataSubject,Consequence for Data Subject,Consequence for Data Subject,,dpv:Risk,,,,,,2022-10-22,,accepted,"Harshvardhan J. Pandit, Georg P. Krog",,,,,,,,,,,,,,,,,,
ConsequenceOnDataSecurity,Consequence on Data Security,Consequence on Data Security,,dpv:Risk,,,,,,2022-10-22,,accepted,"Harshvardhan J. Pandit, Georg P. Krog",,,,,,,,,,,,,,,,,,
Expand Down
Binary file modified code/vocab_csv/risk.xlsx
Binary file not shown.
124 changes: 116 additions & 8 deletions v2.0/risk/index-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,17 @@ <h2>Consequences and Impacts</h2>
<strong>risk:PrivacyImpact</strong>: Privacy impact
<small><a href="https://w3id.org/dpv/v2.0/risk#PrivacyImpact" class="local-link">go to full definition</a></small>

</li>
<li>
<strong>risk:Reidentification</strong>: Re-identification
<small><a href="https://w3id.org/dpv/v2.0/risk#Reidentification" class="local-link">go to full definition</a></small>
<ul class="concept-list">
<li>
<strong>risk:UnauthorisedReidentification</strong>: Unauthorised Re-Identification
<small><a href="https://w3id.org/dpv/v2.0/risk#UnauthorisedReidentification" class="local-link">go to full definition</a></small>

</li>
</ul>
</li>
<li>
<strong>risk:ReputationTrustImpact</strong>: Reputation and trust impact
Expand All @@ -2082,11 +2093,6 @@ <h2>Consequences and Impacts</h2>
<small><a href="https://w3id.org/dpv/v2.0/risk#SocialDisadvantage" class="local-link">go to full definition</a></small>

</li>
<li>
<strong>risk:UnauthorisedReidentification</strong>: Unauthorised Re-Identification
<small><a href="https://w3id.org/dpv/v2.0/risk#UnauthorisedReidentification" class="local-link">go to full definition</a></small>

</li>
</ul></div>
</section>

Expand Down Expand Up @@ -11630,7 +11636,7 @@ <h4>Incident</h4>

<tr>
<th>Date Created</th>
<td><i>2024-05-19</i></td>
<td><i>2024-02-14</i></td>
</tr>

<tr>
Expand Down Expand Up @@ -19156,6 +19162,94 @@ <h4>Reduction Control</h4>



<section class="term-def" id="Reidentification">
<h4>Re-identification</h4>
<table class="term-contents">
<tbody>
<tr>
<th>Term</th>
<td><dfn>Reidentification</dfn></td>
<th>Prefix</th>
<td>risk</td>
</tr>
<tr>
<th>Label</th>
<td><i>Re-identification</i></td>
</tr>
<tr class="technical-detail">
<th>IRI</th>
<td><a href="https://w3id.org/dpv/v2.0/risk#Reidentification" class="local-link">https://w3id.org/dpv/v2.0/risk#Reidentification</a></td>
</tr>

<tr class="table-separator"></tr>

<tr class="technical-detail">
<th>Type</th>
<td><a href="http://www.w3.org/2000/01/rdf-schema#Class" class="local-link">rdfs:Class</a>, <a href="http://www.w3.org/2004/02/skos/core#Concept" class="local-link">skos:Concept</a>, <a href="https://w3id.org/dpv/v2.0#Risk" class="local-link">dpv:Risk</a></td>
</tr>

<tr class="technical-detail">
<th>Broader/Parent types</th>
<td> <a href="https://w3id.org/dpv/v2.0#Risk" class="local-link">dpv:Risk</a>
</td> </tr>

<tr>
<th>Subject of relation</th>
<td> <a href="https://w3id.org/dpv/v2.0#hasResidualRisk" class="local-link">dpv:hasResidualRisk</a>,
<a href="https://w3id.org/dpv/v2.0#hasRiskLevel" class="local-link">dpv:hasRiskLevel</a>,
<a href="https://w3id.org/dpv/v2.0#isMitigatedByMeasure" class="local-link">dpv:isMitigatedByMeasure</a>,
<a href="#hasRiskSource" class="local-link">risk:hasRiskSource</a>
</td>
</tr>
<tr>
<th>Object of relation</th>
<td> <a href="https://w3id.org/dpv/v2.0#hasRisk" class="local-link">dpv:hasRisk</a>,
<a href="https://w3id.org/dpv/v2.0#isResidualRiskOf" class="local-link">dpv:isResidualRiskOf</a>,
<a href="https://w3id.org/dpv/v2.0#mitigatesRisk" class="local-link">dpv:mitigatesRisk</a>,
<a href="https://w3id.org/dpv/v2.0/risk#refersToRisk" class="local-link">risk:refersToRisk</a>
</td>
</tr>




<tr class="table-separator"></tr>

<tr>
<th>Definition</th>
<td><i>Re-identification</i></td>
</tr>



<tr class="table-separator"></tr>



<tr class="table-separator"></tr>

<tr>
<th>Date Created</th>
<td><i>2022-08-19</i></td>
</tr>

<tr>
<th>Contributors</th>
<td><i>Harshvardhan J. Pandit</i></td>
</tr>
<tr class="table-separator"></tr>

<tr>
<th>See More:</th>
<td> section <a href="#vocab-risk-consequences"> RISK-CONSEQUENCES</a> in <a href="https://w3id.org/dpv/v2.0/risk#">RISK</a>
</td>
</tr>
</tbody>
</table>
</section>



<section class="term-def" id="RemedyControl">
<h4>Remedy Control</h4>
<table class="term-contents">
Expand Down Expand Up @@ -29952,7 +30046,8 @@ <h4>Unauthorised Re-Identification</h4>

<tr class="technical-detail">
<th>Broader/Parent types</th>
<td> <a href="https://w3id.org/dpv/v2.0/risk#Reidentification" class="local-link">risk:Reidentification</a>
<td> <a href="#Reidentification" class="local-link">risk:Reidentification</a>
→ <a href="https://w3id.org/dpv/v2.0#Risk" class="local-link">dpv:Risk</a>
</td> </tr>

<tr>
Expand All @@ -29963,7 +30058,14 @@ <h4>Unauthorised Re-Identification</h4>
<a href="#hasRiskSource" class="local-link">risk:hasRiskSource</a>
</td>
</tr>

<tr>
<th>Object of relation</th>
<td> <a href="https://w3id.org/dpv/v2.0#hasRisk" class="local-link">dpv:hasRisk</a>,
<a href="https://w3id.org/dpv/v2.0#isResidualRiskOf" class="local-link">dpv:isResidualRiskOf</a>,
<a href="https://w3id.org/dpv/v2.0#mitigatesRisk" class="local-link">dpv:mitigatesRisk</a>,
<a href="https://w3id.org/dpv/v2.0/risk#refersToRisk" class="local-link">risk:refersToRisk</a>
</td>
</tr>



Expand Down Expand Up @@ -33587,6 +33689,9 @@ <h4>refers to risk</h4>









Expand Down Expand Up @@ -34875,6 +34980,9 @@ <h4>None</h4>









Expand Down
124 changes: 116 additions & 8 deletions v2.0/risk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,17 @@ <h2>Consequences and Impacts</h2>
<strong>risk:PrivacyImpact</strong>: Privacy impact
<small><a href="https://w3id.org/dpv/v2.0/risk#PrivacyImpact" class="local-link">go to full definition</a></small>

</li>
<li>
<strong>risk:Reidentification</strong>: Re-identification
<small><a href="https://w3id.org/dpv/v2.0/risk#Reidentification" class="local-link">go to full definition</a></small>
<ul class="concept-list">
<li>
<strong>risk:UnauthorisedReidentification</strong>: Unauthorised Re-Identification
<small><a href="https://w3id.org/dpv/v2.0/risk#UnauthorisedReidentification" class="local-link">go to full definition</a></small>

</li>
</ul>
</li>
<li>
<strong>risk:ReputationTrustImpact</strong>: Reputation and trust impact
Expand All @@ -2082,11 +2093,6 @@ <h2>Consequences and Impacts</h2>
<small><a href="https://w3id.org/dpv/v2.0/risk#SocialDisadvantage" class="local-link">go to full definition</a></small>

</li>
<li>
<strong>risk:UnauthorisedReidentification</strong>: Unauthorised Re-Identification
<small><a href="https://w3id.org/dpv/v2.0/risk#UnauthorisedReidentification" class="local-link">go to full definition</a></small>

</li>
</ul></div>
</section>

Expand Down Expand Up @@ -11630,7 +11636,7 @@ <h4>Incident</h4>

<tr>
<th>Date Created</th>
<td><i>2024-05-19</i></td>
<td><i>2024-02-14</i></td>
</tr>

<tr>
Expand Down Expand Up @@ -19156,6 +19162,94 @@ <h4>Reduction Control</h4>



<section class="term-def" id="Reidentification">
<h4>Re-identification</h4>
<table class="term-contents">
<tbody>
<tr>
<th>Term</th>
<td><dfn>Reidentification</dfn></td>
<th>Prefix</th>
<td>risk</td>
</tr>
<tr>
<th>Label</th>
<td><i>Re-identification</i></td>
</tr>
<tr class="technical-detail">
<th>IRI</th>
<td><a href="https://w3id.org/dpv/v2.0/risk#Reidentification" class="local-link">https://w3id.org/dpv/v2.0/risk#Reidentification</a></td>
</tr>

<tr class="table-separator"></tr>

<tr class="technical-detail">
<th>Type</th>
<td><a href="http://www.w3.org/2000/01/rdf-schema#Class" class="local-link">rdfs:Class</a>, <a href="http://www.w3.org/2004/02/skos/core#Concept" class="local-link">skos:Concept</a>, <a href="https://w3id.org/dpv/v2.0#Risk" class="local-link">dpv:Risk</a></td>
</tr>

<tr class="technical-detail">
<th>Broader/Parent types</th>
<td> <a href="https://w3id.org/dpv/v2.0#Risk" class="local-link">dpv:Risk</a>
</td> </tr>

<tr>
<th>Subject of relation</th>
<td> <a href="https://w3id.org/dpv/v2.0#hasResidualRisk" class="local-link">dpv:hasResidualRisk</a>,
<a href="https://w3id.org/dpv/v2.0#hasRiskLevel" class="local-link">dpv:hasRiskLevel</a>,
<a href="https://w3id.org/dpv/v2.0#isMitigatedByMeasure" class="local-link">dpv:isMitigatedByMeasure</a>,
<a href="#hasRiskSource" class="local-link">risk:hasRiskSource</a>
</td>
</tr>
<tr>
<th>Object of relation</th>
<td> <a href="https://w3id.org/dpv/v2.0#hasRisk" class="local-link">dpv:hasRisk</a>,
<a href="https://w3id.org/dpv/v2.0#isResidualRiskOf" class="local-link">dpv:isResidualRiskOf</a>,
<a href="https://w3id.org/dpv/v2.0#mitigatesRisk" class="local-link">dpv:mitigatesRisk</a>,
<a href="https://w3id.org/dpv/v2.0/risk#refersToRisk" class="local-link">risk:refersToRisk</a>
</td>
</tr>




<tr class="table-separator"></tr>

<tr>
<th>Definition</th>
<td><i>Re-identification</i></td>
</tr>



<tr class="table-separator"></tr>



<tr class="table-separator"></tr>

<tr>
<th>Date Created</th>
<td><i>2022-08-19</i></td>
</tr>

<tr>
<th>Contributors</th>
<td><i>Harshvardhan J. Pandit</i></td>
</tr>
<tr class="table-separator"></tr>

<tr>
<th>See More:</th>
<td> section <a href="#vocab-risk-consequences"> RISK-CONSEQUENCES</a> in <a href="https://w3id.org/dpv/v2.0/risk#">RISK</a>
</td>
</tr>
</tbody>
</table>
</section>



<section class="term-def" id="RemedyControl">
<h4>Remedy Control</h4>
<table class="term-contents">
Expand Down Expand Up @@ -29952,7 +30046,8 @@ <h4>Unauthorised Re-Identification</h4>

<tr class="technical-detail">
<th>Broader/Parent types</th>
<td> <a href="https://w3id.org/dpv/v2.0/risk#Reidentification" class="local-link">risk:Reidentification</a>
<td> <a href="#Reidentification" class="local-link">risk:Reidentification</a>
→ <a href="https://w3id.org/dpv/v2.0#Risk" class="local-link">dpv:Risk</a>
</td> </tr>

<tr>
Expand All @@ -29963,7 +30058,14 @@ <h4>Unauthorised Re-Identification</h4>
<a href="#hasRiskSource" class="local-link">risk:hasRiskSource</a>
</td>
</tr>

<tr>
<th>Object of relation</th>
<td> <a href="https://w3id.org/dpv/v2.0#hasRisk" class="local-link">dpv:hasRisk</a>,
<a href="https://w3id.org/dpv/v2.0#isResidualRiskOf" class="local-link">dpv:isResidualRiskOf</a>,
<a href="https://w3id.org/dpv/v2.0#mitigatesRisk" class="local-link">dpv:mitigatesRisk</a>,
<a href="https://w3id.org/dpv/v2.0/risk#refersToRisk" class="local-link">risk:refersToRisk</a>
</td>
</tr>



Expand Down Expand Up @@ -33587,6 +33689,9 @@ <h4>refers to risk</h4>









Expand Down Expand Up @@ -34875,6 +34980,9 @@ <h4>None</h4>









Expand Down
Loading

0 comments on commit d29d521

Please sign in to comment.