ontospy command not found

In this troubleshooting guide we learn how to fix ontospy command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ontospy: command not found

or when using sudo you get the following error message

sudo: ontospy: command not found

Solutions to ontospy: command not found

How To Fix ontospy: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ontospy is provided by ontospy package.

ontospy is:

Ontospy is a lightweight Python library and command line tool for inspecting and visualizing vocabularies encoded using W3C Semantic Web standards, that is, RDF or any of its dialects (RDFS, OWL, SKOS).

Ontospy can be used to generate HTML documentation for an ontology pretty easily.

This package provides the Ontospy command-line tool.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ontospy

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ontospy.

sudo apt -y install ontospy

Or if you have aptitude installed you can use the following command.

sudo aptitude install ontospy

Summary

In this tutorial we learn how to fix ontospy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.