public class HGPrologLibrary extends Library
Constructor and Description |
---|
HGPrologLibrary() |
Modifier and Type | Method and Description |
---|---|
static HGPrologLibrary |
attach(org.hypergraphdb.HyperGraph graph,
Prolog prolog) |
HyperGraphStoreFactory |
getClauseFactory() |
String |
getName()
Gets the name of the library.
|
boolean |
hg_atom_1(Term t)
Return true if the term is a HyperGraph atom and false otherwise.
|
boolean |
hg_bind_2(Term condition,
Term clause)
Bind a Prolog clause (a Struct spec in the form of a name and arity)
to a HyperGraphDB condition.
|
Term |
hg_clause_condition_1(Term clause) |
boolean |
hg_clause_condition_2(Term clause,
Term id) |
Term |
hg_count_1(Term clause) |
Term |
hg_find_all_1(Term condition) |
boolean |
hg_unbind_1(Term clause)
Remove a clause binding from the HyperGraphDB clause store.
|
dismiss, evalExpression, getEngine, getPrimitives, getSynonymMap, getTheory, match, onSolveBegin, onSolveEnd, unify
public static HGPrologLibrary attach(org.hypergraphdb.HyperGraph graph, Prolog prolog)
public String getName()
Library
public HyperGraphStoreFactory getClauseFactory()
public boolean hg_bind_2(Term condition, Term clause)
Bind a Prolog clause (a Struct spec in the form of a name and arity) to a HyperGraphDB condition.
condition
- clause
- public boolean hg_unbind_1(Term clause)
Remove a clause binding from the HyperGraphDB clause store.
clause
- public boolean hg_atom_1(Term t)
t
- Copyright © 2015. All rights reserved.