Skip to content
Permalink
0d82ff1dc4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (22 sloc) 840 Bytes
package test.kb.howtokb.jdbc;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import kb.howtokb.clustering.sim.CategorySimilarity;
import kb.howtokb.tools.InformationExtraction;
import kb.howtokb.utils.SQLiteJDBCConnector;
public class JDBCConnectorTest {
public static void main(String[] args) throws ClassNotFoundException, SQLException, IOException {
List<Integer> ids = new ArrayList<>();
ids.add(2); ids.add(3);
System.out.println(InformationExtraction.getListofActivitySurfaceFromDb(ids));
ResultSet rs = SQLiteJDBCConnector.q("select json from categoryjson where id=3;");
if (rs.next()){
System.out.println(rs.getString("json"));
}
CategorySimilarity s = new CategorySimilarity();
System.out.println(s.sim(3, 5));
}
}