Skip to content

PoliGraph: Automated Privacy Policy Analysis using Knowledge Graphs

Notifications You must be signed in to change notification settings

lukeblevins/poligrapher-notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoliGrapher Notebook

This private repository contains a modified version of the existing notebook file that was available on Google Colab. It adds support for local execution in VSCode, pdf extraction, and bulk generation of knowledge graphs.

Usage

  1. Install Python:

    This project requires a Python environment to be installed. Once Python is installed, proceed with the next steps.

  2. Clone the Repository:

    Open your terminal and run:

    git clone https://github.com/lukeblevins/poligrapher-notebook
    cd poligrapher-notebook
  3. Open in Visual Studio Code (VSCode):

    Open the cloned repository in VSCode:

    code ./
  4. Install Python Notebook Extension:

    From the Extensions section on the left-hand side of VSCode, install the Python Data Science extension pack

  5. Open the Notebook File:

    Return to the Explorer section on the left-hand side of VSCode. Find the file project file named poligrapher_notebook.ipynb and open it.

  6. Edit the policy_list.json File:

    Add the desired privacy policies to the json file. An example is provided below.

    {
        "policy_urls": [
            {
                "name": "Target",
                "kind": "pdf",
                "path": "./policies/target.pdf"
            },
            {
                "name": "Ambetter Health",
                "kind": "webpage",
                "path": "https://www.ambetterhealth.com/en/privacy-policy/"
            }
        ]
    }
  7. Run the poligrapher notebook:

    Return to the poligrapher_notebook.ipynb file. Click the Run All button found near the top. The notebook will install its dependencies, clone the latest version of the poligraph tool repository, and run it on the policies specified in the prior step.

Note

The produced graphs and their visual representations will be stored in an output/ directory. This folder is automatically created at the top level of this workspace.

About

PoliGraph: Automated Privacy Policy Analysis using Knowledge Graphs

Resources

Stars

Watchers

Forks