This repo has the sources for the annotation processors described in "Annotation-Based Static Analysis for Personal Data Protection" and "Extracting Layered Privacy Language Purposes from Web Services".
mvn clean install
<dependency>
<groupId>fi.geniem.gdpr</groupId>
<artifactId>personaldataflow</artifactId>
<version>--INSERT BUILT VERSION--</version>
</dependency>
There are two processors in this repo: privacy policy data extractor and personal data usage validator. Choose one or both.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<annotationProcessors>
<annotationProcessor>
fi.geniem.gdpr.personaldataflow.PersonalDataMetricsProcessor
</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin>
mvn clean install
python3 visualization/generate.py <folder location>