Skip to content

Commit

Permalink
Fixes #37 Adds property domains/ranges in HTML
Browse files Browse the repository at this point in the history
Adds appropriate property domain/range for each of the semantics in DPV
(Core, RDFS+SKOS, OWL) in the HTML documentation. This information was
already present in the RDF files, so they did not require any changes.
Where something was not provided, the string 'unspecified' is presented
in documentation.
  • Loading branch information
coolharsh55 committed Jul 2, 2022
1 parent 1ef75c8 commit af270fc
Show file tree
Hide file tree
Showing 18 changed files with 2,900 additions and 450 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@
</td>
</tr>
{% endif %}
<tr>
<td>Domain:</td>
<td>{% if term.dpv_hasDomain %}<a href="{{ term.dpv_hasDomain}}">{{ term.dpv_hasDomain|prefix_this}}</a>{% else %}<i>unspecified</i>{% endif %}</td>
</tr>
<tr>
<td>Range:</td>
<td>{% if term.dpv_hasRange %}<a href="{{ term.dpv_hasRange}}">{{ term.dpv_hasRange|prefix_this}}</a>{% else %}<i>unspecified</i>{% endif %}</td>
</tr>
{% if term.dct_source %}
<tr>
<td>Source:</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,14 @@
</td>
</tr>
{% endif %}
{% if term.rdfs_domain %}
<tr>
<td>Domain:</td>
<td><a href="{{term.rdfs_domain}}"><code>{{term.rdfs_domain|prefix_this}}</code></a></td>
<td>{% if term.rdfs_domain %}<a href="{{ term.rdfs_domain}}">{{ term.rdfs_domain|prefix_this}}</a>{% else %}<i>unspecified</i>{% endif %}</td>
</tr>
{% endif %}
{% if term.rdfs_range %}
<tr>
<td>Range:</td>
<td><a href="{{term.rdfs_range}}"><code>{{term.rdfs_range|prefix_this}}</code></a></td>
<td>{% if term.rdfs_range %}<a href="{{ term.rdfs_range}}">{{ term.rdfs_range|prefix_this}}</a>{% else %}<i>unspecified</i>{% endif %}</td>
</tr>
{% endif %}
<tr>
<td>Created:</td>
<td><time>{{term.dct_created}}</time></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,14 @@
</td>
</tr>
{% endif %}
{% if term.rdfs_domain %}
<tr>
<td>Domain:</td>
<td><a href="{{term.rdfs_domain}}"><code>{{term.rdfs_domain|prefix_this}}</code></a></td>
<td>{% if term.rdfs_domain %}<a href="{{ term.rdfs_domain}}">{{ term.rdfs_domain|prefix_this}}</a>{% else %}<i>unspecified</i>{% endif %}</td>
</tr>
{% endif %}
{% if term.rdfs_range %}
<tr>
<td>Range:</td>
<td><a href="{{term.rdfs_range}}"><code>{{term.rdfs_range|prefix_this}}</code></a></td>
<td>{% if term.rdfs_range %}<a href="{{ term.rdfs_range}}">{{ term.rdfs_range|prefix_this}}</a>{% else %}<i>unspecified</i>{% endif %}</td>
</tr>
{% endif %}
<tr>
<td>Created:</td>
<td><time>{{term.dct_created}}</time></td>
Expand Down
6 changes: 6 additions & 0 deletions documentation-generator/jinja2_resources/template_dpv.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
<img title="DPV Base Vocabulary" alt="DPV base vocabulary" src="diagrams/personaldatahandling.png">
<figcaption>Base Vocabulary</figcaption>
</figure>
<p>DPV's terms are defined using abstract semantic notions <span data-dfn-for="Concept"><dfn>Concept</dfn></span> and <span data-dfn-for="Relation"><dfn>Relation</dfn></span> derived from SKOS concepts and semantic relations respectively. The use of relations is bounded using <span data-dfn-for="hasDomain"><dfn>hasDomain</dfn></span> and <span data-dfn-for="hasRange"><dfn>hasRange</dfn></span>. This is to permit its interpretation in various semantic expressions, such as a vocabulary (collection of concepts), or as ontologies in OWL2 or RDFS or something else. The <a href="#dpv-document-family">DPV Family of Documents</a> provides an overview of such semantic interpretations provided by the DPVCG.</p>
<p>The 'Base' or 'Core' concepts in DPV represent the most relevant concepts for representing information regarding the what, how, where, who, why of personal data and its processing. Each of these concepts is further elaborated as a taxonomy of concepts in a hierarchical fashion. The DPV provides the following as 'top-level' concepts and relations to associate them with other concepts:</p>
<table>
<thead>
Expand All @@ -213,6 +214,11 @@
</tr>
</thead>
<tbody>
<tr>
<td>[=Concept=]</td>
<td>[=Relation=]</td>
<td>Semantics of Concepts and Relationships</td>
</tr>
<tr>
<td>[=PersonalData=]</td>
<td>[=hasPersonalData=]</td>
Expand Down
10 changes: 5 additions & 5 deletions dpv-owl/dpv-legal/dpv-legal.html
Original file line number Diff line number Diff line change
Expand Up @@ -3158,7 +3158,7 @@ <h4><code><dfn>Adequacy-EU-AD</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3199,7 +3199,7 @@ <h4><code><dfn>Adequacy-EU-AR</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3240,7 +3240,7 @@ <h4><code><dfn>Adequacy-EU-CA</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3527,7 +3527,7 @@ <h4><code><dfn>Adequacy-EU-JE</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3568,7 +3568,7 @@ <h4><code><dfn>Adequacy-EU-JP</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down
10 changes: 5 additions & 5 deletions dpv-owl/dpv-legal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3158,7 +3158,7 @@ <h4><code><dfn>Adequacy-EU-AD</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3199,7 +3199,7 @@ <h4><code><dfn>Adequacy-EU-AR</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3240,7 +3240,7 @@ <h4><code><dfn>Adequacy-EU-CA</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3527,7 +3527,7 @@ <h4><code><dfn>Adequacy-EU-JE</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down Expand Up @@ -3568,7 +3568,7 @@ <h4><code><dfn>Adequacy-EU-JP</dfn></code></h4>
</tr>
<tr>
<td>Type</td>
<td><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Law">dpvo:Law</a><a href="https://w3id.org/dpv/dpv-owl/dpv-gdpr#A45-3">dpvo-gdpr:A45-3</a></td>
</tr>
<tr>
<td>Label:</td>
Expand Down
42 changes: 35 additions & 7 deletions dpv-owl/dpv-tech/dpv-tech.html
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,11 @@ <h4 id="hasCommunicationMechanism">hasCommunicationMechanism</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation"><code>dpvo:Relation</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation">dpvo:Relation</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2632,7 +2636,11 @@ <h4 id="hasDeveloper">hasDeveloper</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2665,7 +2673,11 @@ <h4 id="hasProvider">hasProvider</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2698,7 +2710,11 @@ <h4 id="hasProvisionMethod">hasProvisionMethod</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation"><code>dpvo:Relation</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation">dpvo:Relation</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2731,7 +2747,11 @@ <h4 id="hasSubject">hasSubject</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2764,7 +2784,11 @@ <h4 id="hasTRL">hasTRL</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation"><code>dpvo:Relation</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation">dpvo:Relation</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2797,7 +2821,11 @@ <h4 id="hasUser">hasUser</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down
42 changes: 35 additions & 7 deletions dpv-owl/dpv-tech/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,11 @@ <h4 id="hasCommunicationMechanism">hasCommunicationMechanism</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation"><code>dpvo:Relation</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation">dpvo:Relation</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2632,7 +2636,11 @@ <h4 id="hasDeveloper">hasDeveloper</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2665,7 +2673,11 @@ <h4 id="hasProvider">hasProvider</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2698,7 +2710,11 @@ <h4 id="hasProvisionMethod">hasProvisionMethod</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation"><code>dpvo:Relation</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation">dpvo:Relation</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2731,7 +2747,11 @@ <h4 id="hasSubject">hasSubject</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2764,7 +2784,11 @@ <h4 id="hasTRL">hasTRL</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation"><code>dpvo:Relation</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#Relation">dpvo:Relation</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down Expand Up @@ -2797,7 +2821,11 @@ <h4 id="hasUser">hasUser</h4>
</tr>
<tr>
<td>Domain:</td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity"><code>dpvo:hasEntity</code></a></td>
<td><a href="https://w3id.org/dpv/dpv-owl#hasEntity">dpvo:hasEntity</a></td>
</tr>
<tr>
<td>Range:</td>
<td><i>unspecified</i></td>
</tr>
<tr>
<td>Created:</td>
Expand Down
Loading

0 comments on commit af270fc

Please sign in to comment.