Graal Defeasible Core

This is the core library relying on the GRAAL reasoning tool and containing a Defeasible Existential Rules DLGP parser along with the support for preferences on rules and alternatives

License

License

http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
Categories

Categories

Graal
GroupId

GroupId

fr.lirmm.graphik
ArtifactId

ArtifactId

graal-defeasible-core
Last Version

Last Version

0.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

Graal Defeasible Core
This is the core library relying on the GRAAL reasoning tool and containing a Defeasible Existential Rules DLGP parser along with the support for preferences on rules and alternatives
Project URL

Project URL

https://github.com/hamhec/graal-defeasible-core
Source Code Management

Source Code Management

https://github.com/hamhec/graal-defeasible-core.git

Download graal-defeasible-core

How to add to project

<!-- https://jarcasting.com/artifacts/fr.lirmm.graphik/graal-defeasible-core/ -->
<dependency>
    <groupId>fr.lirmm.graphik</groupId>
    <artifactId>graal-defeasible-core</artifactId>
    <version>0.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/fr.lirmm.graphik/graal-defeasible-core/
implementation 'fr.lirmm.graphik:graal-defeasible-core:0.0.6'
// https://jarcasting.com/artifacts/fr.lirmm.graphik/graal-defeasible-core/
implementation ("fr.lirmm.graphik:graal-defeasible-core:0.0.6")
'fr.lirmm.graphik:graal-defeasible-core:jar:0.0.6'
<dependency org="fr.lirmm.graphik" name="graal-defeasible-core" rev="0.0.6">
  <artifact name="graal-defeasible-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='fr.lirmm.graphik', module='graal-defeasible-core', version='0.0.6')
)
libraryDependencies += "fr.lirmm.graphik" % "graal-defeasible-core" % "0.0.6"
[fr.lirmm.graphik/graal-defeasible-core "0.0.6"]

Dependencies

compile (4)

Group / Artifact Type Version
fr.lirmm.graphik : graal-core jar 1.3.1
fr.lirmm.graphik : graal-io-dlgp jar 1.3.1
fr.lirmm.graphik : graal-forward-chaining jar 1.3.1
org.slf4j : slf4j-api jar 1.7.7

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Maven Central

Graal Defeasible Core

This is the parser module for Defeasible Datalog+-, it can parse strict, defeasible, and defeater (existential) rules along with preferences on rules and on alternatives using DLGP fromat.

Getting Started

You can either import this module using Maven Central (recommended). Add the following to your pom.xml:

<dependency>
      <groupId>fr.lirmm.graphik</groupId>
      <artifactId>graal-defeasible-core</artifactId>
      <version>0.0.2</version>
</dependency>

Or using Github then adding it to your project:

> git clone https://github.com/hamhec/graal-defeasible-core.git

Example

penguin(kowalski). # strict fact.
bird(tweety) <= . # defeasible fact.
brokenWing(tweety) <= . # defeasible fact.

# penguins definetly are birds who do not fly
[r1] notFly(X), bird(X) <- penguin(X). # strict rule, the label [r1] is optional

# birds generally fly
[r2] fly(X) <= bird(X). # defeasible rule 

# birds with broken wings are not able to fly
[r3] notFly(X) <~ bird(X), brokenWings(X). # defeater rule

# r3 is preferred to r2
r3 >> r2. # preference on rules.

# one cannot fly and notFly at the same time (it leads to bottom '!' )
! :- fly(X), notFly(X). # Negative Constraint to express negation.

Authors

  • Abdelraouf Hecham - Developement and Maintenance - Hamhec
  • Clement Sipieter - Initial work - 6pi

License

This project is licensed under CeCILL 2.1 - see the LICENSE file for details

Versions

Version
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1