From b5df59e854306183310418a25703007745198bd1 Mon Sep 17 00:00:00 2001 From: Antongiacomo Polimeno Date: Wed, 15 Nov 2023 12:51:30 +0100 Subject: [PATCH] examples third draft --- experiment.tex | 1 - main.tex | 2 ++ pipeline_template_example.tex | 59 ++++++++++++++++++++++++++--------- 3 files changed, 47 insertions(+), 15 deletions(-) diff --git a/experiment.tex b/experiment.tex index 4168bfb..d34b410 100644 --- a/experiment.tex +++ b/experiment.tex @@ -8,7 +8,6 @@ \section{Experiments}\label{sec:experiment} - \textbf{Generation of synthetic datasets from a public dataset:} Synthetic datasets were generated with the aim of testing the performance of the metrics. These datasets were preceded by perturbations designed to alter both the number of items using a purely quantitative approach and the statistical distribution of the dataset. The alterations involved multiple columns to assess the behavior of the weighted metrics. \textbf{Identification of parameters:} To apply the modifications mentioned above, it was necessary to identify the parameters to be altered. Figure \ref{fig:distributions} shows plots of the statistical distributions and features involved in the identification process. diff --git a/main.tex b/main.tex index f86723a..347c4ec 100644 --- a/main.tex +++ b/main.tex @@ -2,6 +2,7 @@ \usepackage{cite} \usepackage{graphicx} \usepackage{psfrag} + \usepackage{subfigure} \usepackage{url} \usepackage{color} @@ -9,6 +10,7 @@ \usepackage[all]{xy} \usepackage{xspace} \usepackage{listings} +\usepackage{adjustbox} \usepackage{array,booktabs,arydshln,xcolor} \usepackage{tikz} \usetikzlibrary{shapes,patterns,calc,shapes.geometric,arrows} diff --git a/pipeline_template_example.tex b/pipeline_template_example.tex index a773aba..ca07fd4 100644 --- a/pipeline_template_example.tex +++ b/pipeline_template_example.tex @@ -42,26 +42,57 @@ \subsection{Example}\label{sec:example} \begin{table*}[ht!] \centering + \caption{Anonymization policies} + \label{tab:anonymization} \bgroup \def\arraystretch{1.5} - \begin{tabular}{c|c||l} - \textbf{Policy} & \textbf{Service} & \textbf{Anonymization} \\ \hline - - $\p{1}$ & \s{1} & \policy{$\langle service,owner=``CTP"\rangle$}{dataset}{READ}{ANY}{\varnothing} \\ - $\p{2}$ & \s{1} & \policy{$\langle service,owner=partner(``CTP") \rangle$}{dataset}{READ}{ANY}{light\_anonymization} \\ - $\p{3}$ & \s{1} & \policy{$\langle service,owner=``Connecticut Prison"$}{dataset}{READ}{ANY}{full\_anonymization} \\ - $\p{4}$ & \s{4} & \policy{ANY}{dataset}{READ}{ANY}{full\_anonymization} \\ - $\p{5}$ & \s{5} & \policy{$\langle service,region=``FACILITY"\rangle$}{dataset}{WRITE}{ANY}{none} \\ - $\p{6}$ & \s{5} & \policy{$\langle service,region=``{CT,NY,NH}"\rangle$}{dataset}{WRITE}{ANY}{light\_anonymization} \\ - $\p{7}$ & \s{6} & \policy{$\langle,user,role= ``Connecticut Prison Officer"$}{dataset} {READ}{ANY}{none} \\ - $\p{7}$ & \s{6} & \policy{$\langle,user,role= ``Partener Prison Officer"$}{dataset} {READ}{ANY}{light\_anonymization} \\ - $\p{8}$ & \s{6} & \policy{$\langle,user,role= ``Any"$}{dataset} {READ}{ANY}{full\_anonymization} \\ + + \begin{tabular}[t]{c|c|l} + \textbf{Service} & \textbf{Policy} & \textbf{\policy{subject}{object}{action}{environment}{transformation}} \\ \hline + + \vi{1} & $\p{1}$ & \policy{$\langle service,owner=``CTP"\rangle$}{dataset}{READ}{ANY}{ \tf{1} } \\ + \vi{1} & $\p{2}$ & \policy{$\langle service,owner=partner(``CTP") \rangle$}{dataset}{READ}{ANY}{ \tf{2} } \\ + \vi{1} & $\p{3}$ & \policy{$\langle service,owner=``Connecticut Prison"$}{dataset}{READ}{ANY}{ \tf{3} } \\ + \vi{4} & $\p{4}$ & \policy{ANY}{dataset}{READ}{ANY}{ \tf{3} } \\ + \vi{5} & $\p{5}$ & \policy{$\langle service,region=``FACILITY"\rangle$}{dataset}{WRITE}{ANY}{ \tf{1} } \\ + \vi{5} & $\p{6}$ & \policy{$\langle service,region=``{CT,NY,NH}"\rangle$}{dataset}{WRITE}{ANY}{ \tf{2} } \\ + \vi{6} & $\p{7}$ & \policy{$\langle user,role= ``Connecticut Prison Officer"$}{dataset} {READ}{ANY}{ \tf{1} } \\ + \vi{6} & $\p{7}$ & \policy{$\langle user,role= ``Partener Prison Officer"$}{dataset} {READ}{ANY}{ \tf{2} } \\ + \vi{6} & $\p{8}$ & \policy{$\langle user,role= ``Any"$}{dataset} {READ}{ANY}{ \tf{3} } \\ + \end{tabular} + + \begin{tabular}[t]{c|c|c} + \textbf{\tf{i}} & \textbf{Transformation} & \textbf{Columns Anonymized} \\\hline + \tf{1} & none & $\varnothing$ \\ + \tf{2} & light\_anonymization & \{ FIRST NAME, LAST NAME \} \\ + \tf{3} & full\_anonymization & \{ FIRST NAME, LAST NAME, IDENTIFIER,AGE \} \\ \end{tabular} + \egroup - \caption{Anonymization policies} - \label{tab:anonymization} \end{table*} +\vspace{2em} +\begin{table*}[!ht] + \centering + \begin{adjustbox}{max totalsize={.99\linewidth}{\textheight},center} + \bgroup + \def\arraystretch{1.5} + \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|} + \hline + \textbf{DOWNLOAD DATE} & \textbf{IDENTIFIER} & \textbf{LAD} & \textbf{RACE} & \textbf{GENDER} & \textbf{AGE} & \textbf{BOND} & \textbf{OFFENSE} & \textbf{\dots} & \textbf{FIRST NAME} & \textbf{LAST NAME} \\ \hline + 05/15/2020 & ZZHCZBZZ & 08/16/2018 & BLACK & M & 27 & 150000 & CRIMINAL POSS \dots & \dots & ROBERT & PIERCE \\ \hline + 05/15/2020 & ZZHZZRLR & 03/28/2019 & HISPANIC & M & 41 & 30100 & VIOLATION OF P\dots & \dots & KYLE & LESTER \\ \hline + 05/15/2020 & ZZSRJBEE & 04/03/2020 & HISPANIC & M & 21 & 150000 & CRIMINAL ATTEM\dots & \dots & JASON & HAMMOND \\ \hline + 05/15/2020 & ZZHBJLRZ & 01/15/2020 & WHITE & M & 36 & 50500 & CRIM VIOL OF P\dots & \dots & ERIC & TOWNSEND \\ \hline + 05/15/2020 & ZZSRRCHH & 12/26/2018 & HISPANIC & M & 29 & 100000 & CRIMINAL ATTEM\dots & \dots & MICHAEL & WHITE \\ \hline + 05/15/2020 & ZZEJCZWW & 01/03/2020 & WHITE & M & 54 & 100000 & CRIM VIOL OF P\dots & \dots & JOHN & HARPER \\ \hline + 05/15/2020 & ZZHJBJBR & 03/19/2020 & HISPANIC & M & 35 & 100000 & CRIM VIOL ST C\dots & \dots & KENNETH & JUAREZ \\ \hline + 05/15/2020 & ZZESESZW & 12/03/2018 & WHITE & M & 55 & 50000 & ASSAULT 2ND, V\dots & \dots & MICHAEL & SANTOS \\ \hline + 05/15/2020 & ZZRCSHCZ & 05/13/2020 & BLACK & M & 43 & 10000 & INTERFERING WIT\dots & \dots & CHRISTOPHER & JONES \\ \hline + \end{tabular} + \egroup + \end{adjustbox} +\end{table*} \begin{figure}[ht!] \centering \begin{tikzpicture}[scale=0.85]