public class SelectConverter extends Converter
Constructor and Description |
---|
SelectConverter(Scanner scannerObj)
Constructor to initiate scanner object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cc() |
java.lang.String |
convert()
Method to convert the SPARQL query.
|
java.sql.ResultSet |
execute()
Execute the converted query.
|
Node |
findNode(java.lang.String label)
Find nodes in root nodes.
|
Edge |
getEdgeByPredicate(Node predicate) |
void |
SetAggregate(sparql.convert.Aggregate obj)
Set aggregate object if query has aggregate clause.
|
void |
setFromApply()
Set true if the select query is inner another apply query.
|
void |
setTriple(java.lang.String s,
java.lang.String p,
java.lang.String o) |
java.lang.String |
visualize()
Method to visualize the result of query.
|
createCsvFile, getConverTime, getInstance, getScanner
public SelectConverter(Scanner scannerObj)
scannerObj
- public void SetAggregate(sparql.convert.Aggregate obj)
obj
- Object of aggregate class.public void setFromApply()
public java.lang.String convert() throws java.sql.SQLException
Converter
public java.lang.String cc() throws java.sql.SQLException
java.sql.SQLException
public void setTriple(java.lang.String s, java.lang.String p, java.lang.String o)
public Node findNode(java.lang.String label)
label
- Label of node.public java.lang.String visualize() throws java.sql.SQLException
Converter
public java.sql.ResultSet execute() throws java.sql.SQLException
Converter