Use Python with Stardog
Get the latest in your inbox
Get the latest in your inbox
Python has become very popular for data science applications. It is now possible to access your Stardog Knowledge Graph using Python and our wrapper library called pystardog. Keep reading to see how easy it can be.
1. Download and install Stardog
2. Create a Python virtualenv and install requirements
3. Download the notebook and tutorial dataset
4. Open the notebook
5. Follow the instructions in the notebook
$ stardog-admin server status
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.
python3 -m venv ~/.virtualenvs/tutorial
. ~/.virtualenvs/tutorial/bin/activate
pip install pystardog jupyterlab pandas seaborn
From within the directory that you saved the notebook and dataset:
jupyter notebook
Stardog and your favorite Python libraries make a strong team. I hope this gentle introduction will help you begin your next data masterpiece. Good luck!
How to Overcome a Major Enterprise Liability and Unleash Massive Potential
Download for free