Skip to content

Commit

Permalink
Adds stub for #106 AI Act extension
Browse files Browse the repository at this point in the history
Adds entries to download the spreadsheet, generate RDF, and the HTML.
The path is `/legal/eu/aiact`. The namespace is `eu-aiact`.

Currently, only the 'system' concepts are generated to test the process.
  • Loading branch information
coolharsh55 committed Apr 10, 2024
1 parent b4f0205 commit ad0366b
Show file tree
Hide file tree
Showing 27 changed files with 11,127 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/100_download_CSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@
'DGA_properties',
),
},
'eu-aiact': {
'name': 'eu-aiact',
'doc_id': '17WAXH7Bkzu2m2eeOSTyhJBeHp9nst988KYCSRES8xCE',
'sheets': (
'aiact-system',
),
},
# Sheets for Use-Cases, Requirements, and Examples
'ucr': {
'name': 'ucr',
Expand Down
120 changes: 120 additions & 0 deletions code/jinja2_resources/template_legal_eu_aiact.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{% from 'macro_term_table.jinja2' import table_classes %}
{% from 'macro_term_table.jinja2' import table_properties %}
{% from 'macro_term_table.jinja2' import list_hierarchy, index_concepts %}
{% from 'macro_dpv_document_family.jinja2' import dpv_document_family, sotd %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}EU AI Act Extension{% endblock title%}</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer></script>
{% block RESPEC %}
<script class="remove">
// All config options at https://respec.org/docs/
var respecConfig = {
shortName: "eu-aiact",
title: "EU AI Act Extension",
subtitle: "Data Privacy Vocabulary (DPV)",
publishDate: "2024-04-10",
specStatus: "CG-DRAFT",
group: "dpvcg",
latestVersion: "https://w3id.org/dpv/legal/eu/aiact",
canonicalUri: "https://w3id.org/dpv/legal/eu/aiact",
edDraftURI: "https://w3id.org/dpv/ed/legal/eu/aiact",
github: "w3c/dpv",
subjectPrefix: "[eu-aiact]",
doJsonLd: true,
lint: { "no-unused-dfns": false, "local-refs-exist": true },
editors: [
{
name: "Harshvardhan J. Pandit",
url: "https://harshp.com",
"company": "{{ "Harshvardhan J. Pandit" | generate_author_affiliation }}"
},
{
"name": "Delaram Golpayegani",
"company": "{{ "Delaram Golpayegani" | generate_author_affiliation }}"
}
],
localBiblio: {% include 'references.json' %}
};
</script>
{% endblock RESPEC %}
<link rel="stylesheet" type="text/css" href="../../../media/common.css">
</head>
<body>
{% block ABSTRACT %}
<section id="abstract">
<p>TODO</p>
{{ dpv_document_family(document='dpv-dga-spec') }}
{{ sotd() }}
</section>
{% endblock ABSTRACT %}
{% block INTRODUCTION %}
<section id="motivation">
<h2>Introduction</h2>
<div class="issue" title="Content missing - Introduction"></div>
</section>
{% endblock INTRODUCTION %}
{% block VOCAB %}

<section id="vocab-system">
<h2>AI System</h2>
<div class="issue" title="Content missing - Entities"></div>

{{ list_hierarchy(modules['system']['classes']) }}
</section>

<section id="vocabulary">
<h2>Vocabulary Index</h2>
<section id="dpv-classes">
{{ index_concepts(vocab, vocab_name, filter="classes") }}
</section>
<section id="dpv-properties">
{{ index_concepts(vocab, vocab_name, filter="properties") }}
</section>
<section id="external-concepts">
<p>DPV uses the following terms from [[RDF]] and [[RDFS]] with their defined meanings:</p>
<ul>
<li id="rdf:type"><dfn>rdf:type</dfn> to denote a concept is an instance of another concept</li>
<li id="rdfs:Class"><dfn>rdfs:Class</dfn> to denote a concept is a Class or a category</li>
<li id="rdfs:subClassOf"><dfn>rdfs:subClassOf</dfn> to specify the concept is a subclass (subtype, sub-category, subset) of another concept</li>
<li id="rdf:Property"><dfn>rdf:Property</dfn> to denote a concept is a property or a relation</li>
</ul>
<p>The following external concepts are re-used within DPV:</p>
{{ index_concepts(vocab, vocab_name, filter="external") }}
</section>
</section>
{% endblock VOCAB %}

{% block ACKNOWLEDGEMENTS %}
<section id="funding-acknowledgements" class="notoc">
<h2>Funding Acknowledgements</h2>

</section>
{% endblock ACKNOWLEDGEMENTS %}
{% block PROPOSED %}
{% if proposed %}
<section id="proposed-terms" class="appendix">
<h2>Proposed Terms</h2>
<p>The following terms have been proposed for inclusion, and are under discussion. They are provided here for illustrative purposes and should not be considered as part of DPV.</p>
{% for name, terms in proposed.items() %}
<strong>{{name}}</strong>
<ul>{% for term in terms %}
<li>{{term}}</li>
{% endfor %}</ul>
{% endfor %}
</section>
{% endif %}
{% endblock PROPOSED %}

<section class="appendix" id="issue-summary"></section>

{% block DEPRECATED %}
<section class="appendix" id="appendix-deprecated">
<h2>Deprecated Terms</h2>
</section>
{% endblock DEPRECATED %}
<script type="text/javascript" src="../../../media/common.js" defer></script>
</body>
</html>
1 change: 1 addition & 0 deletions code/vocab_csv/Namespaces.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ legal,https://w3id.org/dpv/legal#,Legal concepts extended DPV,,approved,,,
risk,https://w3id.org/dpv/risk#,Risk Management concepts extended DPV,,approved,,,
eu-rights,https://w3id.org/dpv/rights/eu#,EU-Rights concepts extended DPV,,approved,,,
eu-dga,https://w3id.org/dpv/legal/eu/dga#,EU-DGA concepts extended DPV,,approved,,,
eu-aiact,https://w3id.org/dpv/legal/eu/aiact#,EU-AIAct concepts extended DPV,,approved,,,
loc,https://w3id.org/dpv/loc#,Location concepts extended DPV,,approved,,,
legal-eu,https://w3id.org/dpv/legal/eu#,"Laws, Authorities, and other Legal concepts for European Union (EU) as Jurisdiction",,approved,,,
legal-de,https://w3id.org/dpv/legal/de#,"Laws, Authorities, and other Legal concepts for Germany (DE) as Jurisdiction",,approved,,,
Expand Down
Loading

0 comments on commit ad0366b

Please sign in to comment.