Skip to content

Latest commit

 

History

History

notebooks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

pystardog Jupyter Notebook

Follow these steps to run the interactive pystardog tutorial.

1. Download and install Stardog

  1. Follow the directions here to set up Stardog on your computer.

  2. Test that Stardog is running with

    $ stardog-admin server status

2. Create a Python virtualenv and install requirements

This tutorial assumes that you are running Python 3.3 or newer. If that is not the case, follow this page to get a virtualenv created instead of the following steps. I keep my virtualenvs in ~/.virtualenvs. If you use a different directory plug it in instead.

  1. Create a virtualenv

    python3 -m venv ~/.virtualenvs/tutorial
  2. Activate the virtualenv

    . ~/.virtualenvs/tutorial/bin/activate
  3. Install requirements

    pip install pystardog jupyterlab pandas seaborn

3. Download the sample dataset

Place these two files in the notebooks directory.

Schema

Data

4. Open the Jupyter notebook

From within the notebooks directory in this repository:

jupyter notebook

Click the tutorial.ipynb entry to open it.