Sign inSign up

yh1997/demo_gemo

By yh1997

Updated over 3 years ago

Image
0

808

yh1997/demo_gemo repository overview

Demo of 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 a set of specific elements that users are interested in.

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

Paris belongsTo France;

France belongsTo Europe;

Peking 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/demo_gemo:0.1

Step 2

Run docker imagine by the command line:

docker run -it yh1997/demo_gemo:0.1 /bin/bash

Step 3

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

cd GeMo

One can compute the general module for a given ontology and signature with 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:c74d65010

Size

658.7 MB

Last updated

over 3 years ago

docker pull yh1997/demo_gemo