Giter Site home page Giter Site logo

cltl / ceopathfinder Goto Github PK

View Code? Open in Web Editor NEW
2.0 14.0 2.0 28.48 MB

Finds a path of circumstantial relations between events on the basis of the CircumstantialEventOntology

License: Apache License 2.0

Shell 1.36% Java 39.24% Python 2.76% Rich Text Format 56.64%

ceopathfinder's Introduction

ceopathfinder

Finds a path of circumstantial relations between events on the basis of the CircumstantialEventOntology

Assume Java and Maven 3.3.* installed

Go to the directoty of the installation using the command line.

install with maven 3.3.* using:

mv install

After installing go to the script folder and adapt the rights to run the ceopath.sh:

chmod +wrx ceopath.sh

Run the script from the scripts folder:

./ceopath

This script prints the hiearchy, prints the pre, post and during state maps with the event classes and it shows how to call it to find the path between two event classes.

Functions:

  1. print the class hiearchy

java -Xmx812m -cp "$LIB/ceopathfinder-v0.1-jar-with-dependencies.jar" CeoPathFinder --ont-file "$RESOURCES/CEO_ESO.owl" --printTree > tree.txt

  1. print the pre, during and post condition states with the classes that have these conditions

java -Xmx812m -cp "$LIB/ceopathfinder-v0.1-jar-with-dependencies.jar" CeoPathFinder --ont-file "$RESOURCES/CEO_ESO.owl" --printMap > map.txt

  1. find the circumstantial relation between two event classes

java -Xmx812m -cp "$LIB/ceopathfinder-v0.1-jar-with-dependencies.jar" CeoPathFinder --ont-file "$RESOURCES/CEO_ESO.owl" --match 0 --e1 Fire --e2 ExtinguishingFire

  1. generate all possible inference chains starting from post-situations and map these to during and pre-situations

java -Xmx812m -cp "$LIB/ceopathfinder-v0.1-jar-with-dependencies.jar" CeoPathFinder --ont-file "$RESOURCES/CEO_ESO.owl" --printChain > chain.txt

Some parameters:

--deep inherits constraints through the type hierarchy to all children --during also during conditions are considered as post conditions of the firs event and pre conditions of the second event --match [0,1] value 0 means direct match, value 1 looks for 1 connecting event for two events that are compared

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.