Package tech.oxfordsemantic.jrdfox.logic
Class Rule
java.lang.Object
tech.oxfordsemantic.jrdfox.logic.Rule
- All Implemented Interfaces:
java.io.Serializable
public class Rule
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
-
Method Summary
Modifier and Type Method Description <E> E
accept(LogicVisitor<E> visitor)
static Rule
create(java.util.List<Atom> head, java.util.List<BodyFormula> body)
static Rule
create(Atom[] head, BodyFormula[] body)
static Rule
create(Atom head, java.util.List<BodyFormula> body)
static Rule
create(Atom head, BodyFormula... body)
java.util.List<BodyFormula>
getBody()
BodyFormula
getBody(int index)
java.util.List<Atom>
getHead()
Atom
getHead(int index)
int
getNumberOfBodyLiterals()
int
getNumberOfHeadAtoms()
Rule
replaceHead(Atom newHeadAtom)
Rule
simplify()
java.lang.String
toString()
void
toString(Prefixes prefixes, java.lang.StringBuilder builder, LogicFormat logicFormat)
void
toString(Prefixes prefixes, java.util.function.Consumer<java.lang.String> consumer, LogicFormat logicFormat)
java.lang.String
toString(Prefixes prefixes, LogicFormat logicFormat)
-
Field Details
-
Method Details
-
getHead
-
getNumberOfHeadAtoms
public int getNumberOfHeadAtoms() -
getHead
-
getBody
-
getNumberOfBodyLiterals
public int getNumberOfBodyLiterals() -
getBody
-
replaceHead
-
simplify
-
accept
-
toString
public void toString(Prefixes prefixes, java.util.function.Consumer<java.lang.String> consumer, LogicFormat logicFormat) -
toString
-
toString
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
create
-
create
-
create
-
create
-