public class KBBuilder extends Object
Constructor and Description |
---|
KBBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
add(Atom atom)
Loads the specified atom.
|
void |
add(Atom atom,
Mapper mapper)
Maps and loads the specified atom.
|
void |
add(Rule rule)
Loads the specified rule.
|
void |
add(Rule rule,
Mapper mapper)
Maps and loads the specifed rule.
|
void |
addAll(CloseableIterator<Object> it)
Loads rules and atoms form the specified CloseableIterator.
|
void |
addAtoms(CloseableIterator<Object> it)
Loads atoms from the specified CloseableIterator.
|
void |
addAtoms(CloseableIterator<Object> it,
Mapper mapper)
Maps and loads atoms from the specified CloseableIterator.
|
void |
addRules(CloseableIterator<Object> it)
Loads rules from the specified CloseableIterator.
|
void |
addRules(CloseableIterator<Object> it,
Mapper mapper)
Maps rules from the specified CloseableIterator and loads them.
|
KnowledgeBase |
build()
Generates a KnowledgeBase based on previous method calls on this KBBuilder.
|
void |
setApproach(Approach approach)
Set the query answering
approach of this KnowledgeBase (ie saturation or
rewriting). |
void |
setOntology(RuleSet rules)
Defines rules which will be used in the generate KnowledgeBase.
|
void |
setStore(Store store)
Defines the store which will be used in the generate KnowledgeBase.
|
public KnowledgeBase build()
public void setStore(Store store)
store
- the Store to used.public void setOntology(RuleSet rules)
rules
- public void addAll(CloseableIterator<Object> it) throws KBBuilderException
it
- KBBuilderException
public void add(Rule rule)
rule
- public void add(Rule rule, Mapper mapper)
rule
- mapper
- public void addRules(CloseableIterator<Object> it) throws KBBuilderException
it
- KBBuilderException
public void addRules(CloseableIterator<Object> it, Mapper mapper) throws KBBuilderException
it
- mapper
- KBBuilderException
public void add(Atom atom) throws KBBuilderException
atom
- KBBuilderException
public void add(Atom atom, Mapper mapper) throws KBBuilderException
atom
- mapper
- KBBuilderException
public void addAtoms(CloseableIterator<Object> it) throws KBBuilderException
it
- KBBuilderException
public void addAtoms(CloseableIterator<Object> it, Mapper mapper) throws KBBuilderException
it
- mapper
- KBBuilderException
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.