public static void publicationsDbImportWithCon() throws ClassNotFoundException, SQLException {
        Class.forName("org.postgresql.Driver");
        Connection c = DriverManager.getConnection("jdbc:postgresql://localhost:5432/postgres", "postgres", "qqkfq0513");
        Statement stmt = c.createStatement();
        String sql = "select * from publications";
//        HashSet<Integer> passAtt=testAtt(testrs,0.3);
        ResultSet rs = stmt.executeQuery(sql);
        while (rs.next()) {
            StringBuilder longString = new StringBuilder();
            int id = Integer.parseInt(rs.getString("id"));
            idset.add(id);
            String journal = rs.getString("journal");
            ArrayList<Integer> tempSig = new ArrayList<>();
            if (journal != null) {
                tempSig.add(1);
            } else {
                tempSig.add(0);
            }
            String tech = rs.getString("tech");
            if (tech != null) {
                tempSig.add(1);
            } else {
                tempSig.add(0);
            }
            String booktitle = rs.getString("booktitle");
            if (booktitle != null) {
                tempSig.add(1);
            } else {
                tempSig.add(0);
            }
            semanticSig.put(id, tempSig);
            int cluster = rs.getInt("clusterid");
//        	for(int att:passAtt){
//        		longString.append(rs.getString(att));
//        	}
//        	String authors=rs.getString("authors");
            String title = rs.getString("title");
//        	longString.append(authors);
            longString.append(title);
            if (originCluster.containsKey(cluster)) {
                HashSet<Integer> tempSet = originCluster.get(cluster);
                tempSet.add(id);
                originCluster.put(cluster, tempSet);
            } else {
                HashSet<Integer> tempSet = new HashSet<>();
                tempSet.add(id);
                originCluster.put(cluster, tempSet);
            }
            recordList.put(id, longString.toString());
        }
    }