Author: Franz Incorporated

Copyright (c) 2005 - 2026 Franz, Incorporated
Last updated 27 May 2026 at 10:34

# AllegroGraph Jupyter Notebook

- Documentation Index
  - Release Notes
  - Quick Start
  - SSL/TLS Quick Start
  - Introduction
  - Setup and Configuration
    - Download
    - Server Installation
    - Server Configuration and Control
    - WebView
    - Database Upgrading
    - Managing Users
  - Server Management
    - Performance Tuning
    - Deleting Duplicate Triples
    - Purging Deleted Triples
    - Auditing
    - Managing Users
    - Replication
    - Point-in-Time Recovery
    - Transaction Log Archiving
    - Security Overview
    - Security Implementation
  - Tools
    - agtool
    - Data Loading
    - Data Export
    - Backup and Restore
    - Querying
    - RDFS++
    - Materializer
    - Event Scheduler
    - SHACL
  - Details
    - Triple Indices
    - Freetext Indices
    - Encoded IDs
    - Connection Pooling
    - N-dimensional Geospatial Overview
    - 2-D Geospatial
    - Temporal
    - Social Network
    - JavaScript
    - Datatypes
    - Data Conversion (Rapper)
    - Stored Procedures
    - Triple Attributes
    - Lineparse Format
  - Querying
    - SPARQL documentation summary
    - SPARQL Reference
    - SPIN
    - SPARQL Magic Properties
    - Prolog
  - 3rd-party tools
    - Solr text Indices
    - MongoDB integration
    - TopBraid Composer Plugin
    - Cloudera
  - Client APIs
    - Gruff
    - GraphTalker
    - REST/HTTP interface
    - HTTP reference
    - Javadocs (Sesame and Jena)
    - Python API
    - Lisp Reference
    - JavaScript
  - Tutorials
    - N-dimensional Geospatial
    - SPARQL Tutorial
    - Java Sesame
    - Java Jena
    - Python Sesame
    - Lisp
    - Prolog
    - More...
  - Other
    - Conferences and Seminars
    - Source Code on Github
    - Amazon EC2
    - Copyrights
  - Franz, Inc.

- Download and install miniconda:
- Download and AllegroGraph
- Start AG server
- Download the notebook
- Set up environment for notebook
- Activate the environment
- Start Jupyter Notebook

Documentation Index

# Intro

We offer a Jupyter notebook which provides an interative introduction to the AllegroGraph Python client.

# Setup and Installation

The following instructions assume that you have access to an x86-64 Linux system.

## Download and install miniconda:

Miniconda is a Python distribution. Download and install it using the following commands:

    curl -O -f https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    bash Miniconda3-latest-Linux-x86_64.sh -b
    rm -f Miniconda3-latest-Linux-x86_64.sh

## Download and AllegroGraph

Use the following commands to download AllegroGraph and to install into the /tmp/ag710 directory.

    curl -O -f http://franz.com/ftp/pri/acl/ag/ag7.1.0/linuxamd64.64/agraph-7.1.0-linuxamd64.64.tar.gz
    tar xf agraph-7.1.0-linuxamd64.64.tar.gz
    rm -fr /tmp/ag710
    agraph-7.1.0/install-agraph /tmp/ag710 -- --non-interactive --super-user test --super-password xyzzy
    rm -fr agraph-7.1.0 agraph-7.1.0-linuxamd64.64.tar.gz

## Start AG server

    /tmp/ag710/bin/agraph-control --config /tmp/ag710/lib/agraph.cfg start

## Download the notebook

    curl -O -f https://franz.com/ftp/pub/agraph/python-client/ag-jupyter.tar.gz
    tar xf ag-jupyter.tar.gz
    rm -f ag-jupyter.tar.gz

## Set up environment for notebook

The following commands assume you are in a bash shell.

Use the following command to prepare an Python environment for the Jupyter notebook software. Note that this command takes a while to operate.

    ~/miniconda3/bin/conda create -n ag-notebook -y -c franzinc -c conda-forge jupyter agraph-python ipyleaflet

## Activate the environment

    source ~/miniconda3/bin/activate ag-notebook

## Start Jupyter Notebook

    cd ag-jupyter && jupyter notebook

A browser window will automatically be launched. If that does not work, visit the URL presented on the terminal.

In the browser, click on tutorial.ipynb

When done, terminate the notebook server by hitting control-C.