Git Product home page Git Product logo

more's Introduction

MORe

Modular OWL 2 Reasoner for Ontology Classification

To build the project open a terminal, go to the project's directory and run

$ mkdir repo
$ mvn deploy:deploy-file -Durl=file:repo/ -Dfile=lib/RDFox/<platform>/JRDFox.jar -DgroupId=uk.ac.ox.cs -DartifactId=JRDFox -Dpackaging=jar -Dversion=build2213

where <platform> should be Mac, Linux or Windows. If you wish to use PrisM as a library, run

$ mvn install

This should generate a folder called target containing the library uber-PrisM-0.0.1-SNAPSHOT.jar. This library is ready to use and bundles all necessary dependencies.

Given an instance o of the OWLOntology class from the OWLAPI, the simplest way to create an instance of the reasoner is the following:

	MOReReasonerFactory factory = new MOReReasonerFactory();
	MoreReasoner more = factory.createReasoner(o);

To classify your ontology, simply call

	more.classifyClasses();

You can retrieve all the superclasses of any OWLClass c in the input ontology by calling

	more.getAllSuperClasses(c);

and also all unsatisfiable classes in the ontology with

	more.getAllUnsatisfiableClasses();

The default configuration of MORe splits the classification workload between the reasoners ELK and HermiT, but you can configure MORe to split the workload between ELK, RDFox and HermiT as follows

	boolean useRDFox = true;
	MOReReasonerConfiguration config = new MOReReasonerConfiguration(useRDFox);
	MOReReasonerFactory factory = new MOReReasonerFactory();
	MOReReasoner more = factory.createReasoner(o, config);

It is also possible to make MORe combine ELK (and maybe RDFox) with any other OWL 2 reasoner that implements the OWLReasoner interface from the OWLAPI and can be created with an OWLReasonerFactory. For this, it suffices to provide an instance owl2RsnrFactory of the corresponding OWLReasonerFactory and an instance owl2RsnrConfig of the corresponding OWL2ReasonerConfiguration as arguments when creating more as follows:

	MOReReasoner more = factory.createReasoner(o, config, owl2RsnrFactory, owl2RsnrConfig);

more's People

Contributors

anaphylactic avatar

Watchers

James Cloos avatar  avatar

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.