Sign inSign up

yh1997/gemo

By yh1997

Updated over 3 years ago

Image
0

53

yh1997/gemo repository overview

Docker-GeMo

Introduction

This is a docker image of the algorithm GeMo. It computes a general module for a given ontology and signature. Here, a general module is a concise view of the given ontology wrt a given signature, which is specific elements that users are interested in.

For example, consider the following toy ontology consists of three axioms:

Paris belongsTo France;

France belongsTo Europe;

Beking belongsTo China.

Assume that the users are interested in the signature consisting of the following three elements:

Paris, Europe, China.

Then, the general module is a new ontology consisting of a single axiom:

Paris belongsTo Europe.

Implementation

Now, we show how to execute our algorithm.

Step 1

Download the docker imagine:

docker pull yh1997/gemo:1.0

Step 2

Run docker imagine by the command line:

docker run -it yh1997/gemo:1.0 /bin/bash

Step 3

Go to the folder ``GeMo" by the command line:

cd GeMo

One can obtain the clauses set for each signature by running the following command:

python main.py test.owl sig_test

  1. "test.owl" is the path of input ontology;
  2. "sig_test" is the path of the input signature; we require this file to contain two lines:

a. The first line is all the concept names combined by " ";

b. The second line is all the role names combined by " ".

The result general module is saved in "./GeMo/gmStar.owl".

Tag summary

Content type

Image

Digest

sha256:ea515c82f

Size

613.4 MB

Last updated

over 3 years ago

docker pull yh1997/gemo:1.0