public static void parse_facts(String path) throws ClassNotFoundException, SQLException, IOException{

		BufferedReader reader = new BufferedReader(
				new FileReader(path+"yagoFacts.tsv"));
		
		int j=0;
		
		int has_capital=0, plays_for=1, located_in=2, acted_in=3, created=4, affiliated_to=5;

		String line = null;
		String[] data = null;
		
		while((line = reader.readLine()) != null){
			
			if(j%100000==0)
				System.out.println("facts: "+j);
				
			j++;

			data = line.split("\t");
			
			if ("<hasCapital>".equals(data[2]))
				MakeTheLink.db.Load_yago.insert_facts(data, has_capital);
			if ("<playsFor>".equals(data[2]))
				MakeTheLink.db.Load_yago.insert_facts(data, plays_for);
			if ("<isLocatedIn>".equals(data[2]))
				MakeTheLink.db.Load_yago.insert_facts(data, located_in);
			if ("<actedIn>".equals(data[2]))
				MakeTheLink.db.Load_yago.insert_facts(data, acted_in);
			if ("<created>".equals(data[2]))
				MakeTheLink.db.Load_yago.insert_facts(data, created);
			if ("<isAffiliatedTo>".equals(data[2]))
				MakeTheLink.db.Load_yago.insert_facts(data, affiliated_to);
		}

		reader.close();
	}