Browse Source

clean up outline

Taco 1 year ago
parent
commit
1552e1a94a
2 changed files with 65 additions and 38 deletions
  1. 59 38
      entitlements.html
  2. 6 0
      entitlements.org

+ 59 - 38
entitlements.html

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2018-04-20 Fri 16:37 -->
6
+<!-- 2018-04-20 Fri 16:44 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title>&lrm;</title>
@@ -239,18 +239,24 @@ for the JavaScript code in this tag.
239 239
 <h2>Table of Contents</h2>
240 240
 <div id="text-table-of-contents">
241 241
 <ul>
242
-<li><a href="#org163d841">1. Introduction</a></li>
243
-<li><a href="#orgac9ac37">2. Data Model</a>
242
+<li><a href="#org800c3ea">1. Introduction</a>
244 243
 <ul>
245
-<li><a href="#org4d48ab1">2.1. Example wallet profile</a></li>
246
-<li><a href="#org6aae10a">2.2. profile generator</a></li>
247
-<li><a href="#org987796d">2.3. Example request</a></li>
248
-<li><a href="#orga33413a">2.4. request generator</a></li>
244
+<li><a href="#org83f0357">1.1. Privacy levels</a></li>
245
+<li><a href="#org0298d43">1.2. Context types</a></li>
246
+<li><a href="#orgc4d3336">1.3. Properties</a></li>
249 247
 </ul>
250 248
 </li>
251
-<li><a href="#org48e4d3e">3. Data Comparison</a></li>
252
-<li><a href="#org3e7c43a">4. Visualization</a></li>
253
-<li><a href="#orgc8c07de">5. Interaction</a></li>
249
+<li><a href="#orgee237cb">2. Data Model</a>
250
+<ul>
251
+<li><a href="#orgcbd1b6a">2.1. Example wallet profile</a></li>
252
+<li><a href="#org1a632ec">2.2. profile generator</a></li>
253
+<li><a href="#org28f9f7f">2.3. Example request</a></li>
254
+<li><a href="#org452f82f">2.4. request generator</a></li>
255
+</ul>
256
+</li>
257
+<li><a href="#orgf51c7ba">3. Data Comparison</a></li>
258
+<li><a href="#org4d760b7">4. Visualization</a></li>
259
+<li><a href="#org34340c1">5. Interaction</a></li>
254 260
 </ul>
255 261
 </div>
256 262
 </div>
@@ -259,18 +265,22 @@ for the JavaScript code in this tag.
259 265
 <p><img src="./Logo.png" alt="Logo.png" />
260 266
 </p>
261 267
 </div>
262
-<div id="outline-container-org163d841" class="outline-2">
263
-<h2 id="org163d841"><span class="section-number-2">1</span> Introduction</h2>
268
+<div id="outline-container-org800c3ea" class="outline-2">
269
+<h2 id="org800c3ea"><span class="section-number-2">1</span> Introduction</h2>
264 270
 <div class="outline-text-2" id="text-1">
265 271
 <p>
266 272
 The purpose of this document is to investigate possible User Interaction designs for Decode task 4.4.
267 273
 More specifically the focus is on investigating how the user of a decode wallet grants permission to decode application for a specific set of personal data.
268 274
 </p>
275
+</div>
269 276
 
277
+<div id="outline-container-org83f0357" class="outline-3">
278
+<h3 id="org83f0357"><span class="section-number-3">1.1</span> Privacy levels</h3>
279
+<div class="outline-text-3" id="text-1-1">
270 280
 <p>
271 281
 A prelimary definition of six privacy levels (ordered from most private to least private):
272 282
 </p>
273
-<table id="org5df6e16" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
283
+<table id="org94d16e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
274 284
 
275 285
 
276 286
 <colgroup>
@@ -325,11 +335,16 @@ A prelimary definition of six privacy levels (ordered from most private to least
325 335
 </tr>
326 336
 </tbody>
327 337
 </table>
338
+</div>
339
+</div>
328 340
 
341
+<div id="outline-container-org0298d43" class="outline-3">
342
+<h3 id="org0298d43"><span class="section-number-3">1.2</span> Context types</h3>
343
+<div class="outline-text-3" id="text-1-2">
329 344
 <p>
330 345
 A preliminary definition of context types
331 346
 </p>
332
-<table id="orga995acc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
347
+<table id="orga454a98" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
333 348
 
334 349
 
335 350
 <colgroup>
@@ -400,7 +415,12 @@ A preliminary definition of context types
400 415
 </tr>
401 416
 </tbody>
402 417
 </table>
418
+</div>
419
+</div>
403 420
 
421
+<div id="outline-container-orgc4d3336" class="outline-3">
422
+<h3 id="orgc4d3336"><span class="section-number-3">1.3</span> Properties</h3>
423
+<div class="outline-text-3" id="text-1-3">
404 424
 <p>
405 425
 A list of properties with code to eval for fake instances, all properties from id 4 come from gebiedonline.
406 426
 We've made an inventory of the data that is related to a gebied online profile. 
@@ -411,7 +431,7 @@ Properties that are very application specific have the 'go' (and not the 'decode
411 431
 This is pretty speculative, but serves as a discussion starter. 
412 432
 </p>
413 433
 
414
-<table id="org2528c08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
434
+<table id="org075a51c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
415 435
 
416 436
 
417 437
 <colgroup>
@@ -686,13 +706,14 @@ This is pretty speculative, but serves as a discussion starter.
686 706
 </table>
687 707
 </div>
688 708
 </div>
709
+</div>
689 710
 
690
-<div id="outline-container-orgac9ac37" class="outline-2">
691
-<h2 id="orgac9ac37"><span class="section-number-2">2</span> Data Model</h2>
711
+<div id="outline-container-orgee237cb" class="outline-2">
712
+<h2 id="orgee237cb"><span class="section-number-2">2</span> Data Model</h2>
692 713
 <div class="outline-text-2" id="text-2">
693 714
 </div>
694
-<div id="outline-container-org4d48ab1" class="outline-3">
695
-<h3 id="org4d48ab1"><span class="section-number-3">2.1</span> Example wallet profile</h3>
715
+<div id="outline-container-orgcbd1b6a" class="outline-3">
716
+<h3 id="orgcbd1b6a"><span class="section-number-3">2.1</span> Example wallet profile</h3>
696 717
 <div class="outline-text-3" id="text-2-1">
697 718
 <p>
698 719
 This sample wallet profile datastructure consists of multiple contexts.
@@ -711,7 +732,7 @@ It overrides the default privacy level specified by the property type.
711 732
 </p>
712 733
 
713 734
 <div class="org-src-container">
714
-<pre class="src src-js" id="org661e07f"><span style="color: #4f97d7; font-weight: bold;">var</span> <span style="color: #7590db;">profile</span> = <span style="color: #4f97d7;">{</span>
735
+<pre class="src src-js" id="orgc730294"><span style="color: #4f97d7; font-weight: bold;">var</span> <span style="color: #7590db;">profile</span> = <span style="color: #4f97d7;">{</span>
715 736
     contexts : 
716 737
     <span style="color: #bc6ec5;">[</span>
717 738
         <span style="color: #2d9574;">{</span>
@@ -789,11 +810,11 @@ process.stdout.write<span style="color: #4f97d7;">(</span>JSON.stringify<span st
789 810
 </div>
790 811
 </div>
791 812
 
792
-<div id="outline-container-org6aae10a" class="outline-3">
793
-<h3 id="org6aae10a"><span class="section-number-3">2.2</span> profile generator</h3>
813
+<div id="outline-container-org1a632ec" class="outline-3">
814
+<h3 id="org1a632ec"><span class="section-number-3">2.2</span> profile generator</h3>
794 815
 <div class="outline-text-3" id="text-2-2">
795 816
 <div class="org-src-container">
796
-<pre class="src src-ruby" id="org9423814"> <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'faker'</span>
817
+<pre class="src src-ruby" id="org83bf26c"> <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'faker'</span>
797 818
  <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'json'</span>
798 819
  <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'securerandom'</span>
799 820
 
@@ -836,8 +857,8 @@ profile<span style="color: #4f97d7;">[</span><span style="color: #a45bad;">:cont
836 857
 </div>
837 858
 </div>
838 859
 
839
-<div id="outline-container-org987796d" class="outline-3">
840
-<h3 id="org987796d"><span class="section-number-3">2.3</span> Example request</h3>
860
+<div id="outline-container-org28f9f7f" class="outline-3">
861
+<h3 id="org28f9f7f"><span class="section-number-3">2.3</span> Example request</h3>
841 862
 <div class="outline-text-3" id="text-2-3">
842 863
 <p>
843 864
 This sample application request consists of an application name, a set of required property types and a set of optional property types.
@@ -847,7 +868,7 @@ and the cumulative privacy weight by adding the privacy levels of each property
847 868
 </p>
848 869
 
849 870
 <div class="org-src-container">
850
-<pre class="src src-js" id="org2f0a16f"><span style="color: #4f97d7; font-weight: bold;">var</span> <span style="color: #7590db;">request</span> = <span style="color: #4f97d7;">{</span>
871
+<pre class="src src-js" id="orgf2c461c"><span style="color: #4f97d7; font-weight: bold;">var</span> <span style="color: #7590db;">request</span> = <span style="color: #4f97d7;">{</span>
851 872
     application : <span style="color: #2d9574;">"decodeapp:facebook"</span>,
852 873
     context_type : <span style="color: #a45bad;">5</span>,<span style="color: #2aa1ae; background-color: #292e34;">//</span><span style="color: #2aa1ae; background-color: #292e34;">personal</span>
853 874
     required : <span style="color: #bc6ec5;">[</span><span style="color: #2d9574;">"decode:name"</span>, <span style="color: #2d9574;">"decode:email"</span>, <span style="color: #2d9574;">"decode:address"</span><span style="color: #bc6ec5;">]</span>,
@@ -860,11 +881,11 @@ process.stdout.write<span style="color: #4f97d7;">(</span>data<span style="color
860 881
 </div>
861 882
 </div>
862 883
 
863
-<div id="outline-container-orga33413a" class="outline-3">
864
-<h3 id="orga33413a"><span class="section-number-3">2.4</span> request generator</h3>
884
+<div id="outline-container-org452f82f" class="outline-3">
885
+<h3 id="org452f82f"><span class="section-number-3">2.4</span> request generator</h3>
865 886
 <div class="outline-text-3" id="text-2-4">
866 887
 <div class="org-src-container">
867
-<pre class="src src-ruby" id="orge7a52bc"><span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'faker'</span>
888
+<pre class="src src-ruby" id="org0f52421"><span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'faker'</span>
868 889
 <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'json'</span>
869 890
 <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'securerandom'</span>
870 891
 
@@ -889,8 +910,8 @@ request<span style="color: #4f97d7;">[</span><span style="color: #a45bad;">:pl_m
889 910
 </div>
890 911
 </div>
891 912
 
892
-<div id="outline-container-org48e4d3e" class="outline-2">
893
-<h2 id="org48e4d3e"><span class="section-number-2">3</span> Data Comparison</h2>
913
+<div id="outline-container-orgf51c7ba" class="outline-2">
914
+<h2 id="orgf51c7ba"><span class="section-number-2">3</span> Data Comparison</h2>
894 915
 <div class="outline-text-2" id="text-3">
895 916
 <p>
896 917
 During the interaction we want to give the user insight into a couple of things;
@@ -906,7 +927,7 @@ In below ruby code a comparison is made by on creating the intersection and its
906 927
 </p>
907 928
 
908 929
 <div class="org-src-container">
909
-<pre class="src src-ruby" id="orgcf4a6e9"><span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'json'</span>
930
+<pre class="src src-ruby" id="org7998c7e"><span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'json'</span>
910 931
   <span style="color: #4f97d7;">require</span> <span style="color: #2d9574;">'nokogiri'</span> <span style="color: #2aa1ae; background-color: #292e34;">#</span><span style="color: #2aa1ae; background-color: #292e34;">for creating xml</span>
911 932
 
912 933
   request = <span style="color: #ce537a; font-weight: bold;">JSON</span>.parse<span style="color: #4f97d7;">(</span>request_data<span style="color: #4f97d7;">)</span>
@@ -932,8 +953,8 @@ NOTE: We export to file diff.xml here for easy parsing in processing.js below.
932 953
 </div>
933 954
 </div>
934 955
 
935
-<div id="outline-container-org3e7c43a" class="outline-2">
936
-<h2 id="org3e7c43a"><span class="section-number-2">4</span> Visualization</h2>
956
+<div id="outline-container-org4d760b7" class="outline-2">
957
+<h2 id="org4d760b7"><span class="section-number-2">4</span> Visualization</h2>
937 958
 <div class="outline-text-2" id="text-4">
938 959
 <p>
939 960
 We want to visualize the following things;
@@ -1126,8 +1147,8 @@ void draw()
1126 1147
 </div>
1127 1148
 </div>
1128 1149
 
1129
-<div id="outline-container-orgc8c07de" class="outline-2">
1130
-<h2 id="orgc8c07de"><span class="section-number-2">5</span> Interaction</h2>
1150
+<div id="outline-container-org34340c1" class="outline-2">
1151
+<h2 id="org34340c1"><span class="section-number-2">5</span> Interaction</h2>
1131 1152
 <div class="outline-text-2" id="text-5">
1132 1153
 <p>
1133 1154
 We have come up with an interaction for entitlements that is based around a 'context switcher'.
@@ -1147,7 +1168,7 @@ close by the sector of the calculated best fitted context. Based on the category
1147 1168
 </p>
1148 1169
 
1149 1170
 <div class="org-src-container">
1150
-<pre class="src src-java" id="org0d553f3"><span style="color: #2aa1ae; background-color: #292e34;">//</span><span style="color: #2aa1ae; background-color: #292e34;">calculate the fitness score for the given context and diff for the current request </span>
1171
+<pre class="src src-java" id="orgbd920af"><span style="color: #2aa1ae; background-color: #292e34;">//</span><span style="color: #2aa1ae; background-color: #292e34;">calculate the fitness score for the given context and diff for the current request </span>
1151 1172
 <span style="color: #ce537a; font-weight: bold;">int</span> <span style="color: #bc6ec5; font-weight: bold;">fitnessScore</span><span style="color: #4f97d7;">(</span><span style="color: #ce537a; font-weight: bold;">c</span>,<span style="color: #ce537a; font-weight: bold;">d</span><span style="color: #4f97d7;">)</span>
1152 1173
 <span style="color: #4f97d7;">{</span>
1153 1174
   <span style="color: #ce537a; font-weight: bold;">int</span> <span style="color: #7590db;">score</span> = <span style="color: #a45bad;">0</span>;
@@ -1822,7 +1843,7 @@ String getPropertyValue(Context c, String key)
1822 1843
 </div>
1823 1844
 <div id="postamble" class="status">
1824 1845
 <p class="author">Author: Taco</p>
1825
-<p class="date">Created: 2018-04-20 Fri 16:37</p>
1846
+<p class="date">Created: 2018-04-20 Fri 16:44</p>
1826 1847
 <p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
1827 1848
 </div>
1828 1849
 </body>

+ 6 - 0
entitlements.org

@@ -14,6 +14,8 @@
14 14
 The purpose of this document is to investigate possible User Interaction designs for Decode task 4.4.
15 15
 More specifically the focus is on investigating how the user of a decode wallet grants permission to decode application for a specific set of personal data.
16 16
 
17
+** Privacy levels
18
+
17 19
 A prelimary definition of six privacy levels (ordered from most private to least private):
18 20
 #+name: privacy_levels
19 21
 | id | title     | description                                                                     |
@@ -25,6 +27,8 @@ A prelimary definition of six privacy levels (ordered from most private to least
25 27
 |  1 | public    | e.g. stuff that everybody may know, your e.g. twitter handle                    |
26 28
 |  0 | commons   | stuff that is intended for the public good / commons, e.g. anonimized IoT stuff |
27 29
 
30
+** Context types
31
+
28 32
 A preliminary definition of context types
29 33
 #+name: context_types
30 34
 | id | title     | description                                                                                                 | generator                                                                                                |
@@ -37,6 +41,8 @@ A preliminary definition of context types
37 41
 |  5 | financial | for data about mortgages, insurance, taxes etc.                                                             | ['Mortgage', 'Insurance', 'Taxes'].sample                                                                |
38 42
 |  6 | other     | for everything that doesn't fit the above                                                                   | Faker::StarWars.call_sign                                                                                |
39 43
 
44
+** Properties
45
+
40 46
 A list of properties with code to eval for fake instances, all properties from id 4 come from gebiedonline.
41 47
 We've made an inventory of the data that is related to a gebied online profile. 
42 48
 The question arises what part of the data would theoretically go inside the wallet.