public class Compiler extends Object
Title: Compiler
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Modifier and Type | Field and Description |
|---|---|
static aterm.ATermAppl |
DIFF_FROM
Predicate used to state two individuals are different from each other.
|
static Fact |
EMPTY_FACT |
static TermTuple |
EMPTY_TUPLE
Empty fact to fire empty bodied rules
|
static int |
OBJ
standard object position
|
static int |
PRED
standard predicate position
|
static aterm.ATermAppl |
SAME_AS
Predicate used to state two individuals are the same.
|
static int |
SUBJ
standard subject position
|
static aterm.ATermAppl |
TYPE
Predicate used to type an individual.
|
| Constructor and Description |
|---|
Compiler(Interpreter interp,
ABox abox) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDifferents(Individual individual)
Add different assertions as facts to rete.
|
boolean |
addFact(Edge edge)
Add property assertion as a fact to rete (if relevant).
|
boolean |
addFact(Individual individual,
aterm.ATermAppl type,
DependencySet ds)
Add concept assertion as a fact to rete (if relevant).
|
void |
compile(Rule rule,
Set<aterm.ATermAppl> explain) |
void |
compileFacts(ABox abox) |
boolean |
processIndividual(Individual ind) |
String |
toString() |
public static final aterm.ATermAppl DIFF_FROM
public static final TermTuple EMPTY_TUPLE
public static final Fact EMPTY_FACT
public static final int OBJ
public static final int PRED
public static final aterm.ATermAppl SAME_AS
public static final int SUBJ
public static final aterm.ATermAppl TYPE
public Compiler(Interpreter interp, ABox abox)
public boolean addDifferents(Individual individual)
public boolean addFact(Edge edge)
edge - the Edgetrue if added, false elsepublic boolean addFact(Individual individual, aterm.ATermAppl type, DependencySet ds)
individual - the Individualtype - the concepttrue if added, false elsepublic void compileFacts(ABox abox)
public boolean processIndividual(Individual ind)
Copyright © 2013. All Rights Reserved.