Swish command not found

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

Introduction

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

Swish: command not found

or when using sudo you get the following error message

sudo: Swish: command not found

Solutions to Swish: command not found

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

In Ubuntu Swish is provided by swish package.

swish is:

Swish is a framework for performing deductions in RDF data using a variety of techniques. Swish is conceived as a toolkit for experimenting with RDF inference, and for implementing stand-alone RDF file processors (usable in similar style to CWM, but with a view to being extensible in declarative style through added Haskell function and data value declarations). It explores Haskell as “a scripting language for the Semantic Web”.

Swish is a work-in-progress, and currently incorporates:

  • Turtle, Notation3 and NTriples input and output. The N3 support is incomplete (no handling of @forAll).
  • RDF graph isomorphism testing and merging.
  • Display of differences between RDF graphs.
  • Inference operations in forward chaining, backward chaining and proof-checking modes.
  • Simple Horn-style rule implementations, extendable through variable binding modifiers and filters.
  • Class restriction rule implementation, primarily for datatype inferences.
  • RDF formal semantics entailment rule implementation.
  • Complete, ready-to-run, command-line and script-driven programs.

This package contains the swish tool.

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

sudo apt-get -y install swish

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

You can also use apt command to install swish.

sudo apt -y install swish

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

sudo aptitude install swish

Summary

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