public interface RdbmsConjunctiveQueryTranslator
Modifier and Type | Method and Description |
---|---|
Term |
createTermFromColumnType(int sqlType,
String value)
Create a
Term from a String representation and a column type. |
String |
formatFromColumnType(DBColumn col,
Term term)
Format a
Term to fulfill the database column type. |
SQLQuery |
translate(ConjunctiveQuery query)
Translates a ConjunctiveQuery into an SQL query
|
Iterator<SQLQuery> |
translate(Rule rangeRestrictedRule)
Translates a rule into an "INSERT ...
|
SQLQuery |
translateContainsQuery(Atom atom)
Produces a SQL contains Query.
|
String |
translateCreateTable(DBTable table)
Produces a CREATE TABLE Query.
|
SQLQuery |
translateRemove(Atom atom)
Produces a SQL Query which remove the specified atom.
|
SQLQuery |
translateTermsByPredicatePositionQuery(Predicate p,
int position)
Produces a SQL Query which returns all term labels present in the
specified position of the specified predicate.
|
SQLQuery translate(ConjunctiveQuery query) throws AtomSetException
query
- ConjunctiveQuery
.AtomSetException
Iterator<SQLQuery> translate(Rule rangeRestrictedRule) throws AtomSetException
rangeRestrictedRule
- a range restricted rule (i.e. all variables that appear in the
head also occur in the body).AtomSetException
SQLQuery translateContainsQuery(Atom atom) throws AtomSetException
atom
- AtomSetException
SQLQuery translateTermsByPredicatePositionQuery(Predicate p, int position) throws AtomSetException
p
- position
- AtomSetException
SQLQuery translateRemove(Atom atom) throws AtomSetException
atom
- AtomSetException
String translateCreateTable(DBTable table)
table
- String formatFromColumnType(DBColumn col, Term term) throws AtomSetException
Term
to fulfill the database column type.col
- the column informationsterm
- the term to formatAtomSetException
Term createTermFromColumnType(int sqlType, String value) throws AtomSetException
Term
from a String representation and a column type.sqlType
- the sql column typevalue
- the String representation of the term to createTerm
AtomSetException
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.