Index: BH13SPARQLBuilder/src/hozo/sparql/gui/SparqlBuilderPanel.java
===================================================================
--- BH13SPARQLBuilder/src/hozo/sparql/gui/SparqlBuilderPanel.java (revision 24)
+++ BH13SPARQLBuilder/src/hozo/sparql/gui/SparqlBuilderPanel.java (revision 33)
@@ -28,4 +28,7 @@
 	JTextField jtf_start_class;
 	JTextField jtf_end_class;
+	JTextField jtf_mode;
+	JCheckBox jcb_count_ins;
+	
 	JTextArea jta_query;
 	MapFactory map;
@@ -112,12 +115,13 @@
 		this.setLayout(new GridLayout(3,1));
 		JPanel jp1 = new JPanel();
+		jp1.setLayout(new BorderLayout());
 		
 		jtf_start_class = new JTextField(40);
 		//jtf_start_class.setText("http://dbpedia.org/ontology/Artist");
-		jtf_start_class = new JTextField("http://purl.jp/bio/10/lsd/ontology/201209#EnglishCode");
-		jp1.add(new JLabel("Start Class:"));
-		jp1.add(jtf_start_class);
+		jtf_start_class.setText("http://purl.jp/bio/10/lsd/ontology/201209#EnglishCode");
+		jp1.add(new JLabel("Start Class:"),BorderLayout.WEST);
+		jp1.add(jtf_start_class,BorderLayout.CENTER);
 		JButton jb_start =  new JButton("Select");
-		jp1.add(jb_start);
+		jp1.add(jb_start,BorderLayout.EAST);
 		jb_start.addActionListener(new ActionListener(){
 
@@ -134,9 +138,11 @@
 		
 		JPanel jp2 = new JPanel();
+		jp2.setLayout(new BorderLayout());
 		jtf_end_class = new JTextField(40);
 	    //jtf_end_class.setText("http://dbpedia.org/ontology/Award");
-		jtf_end_class = new JTextField("http://purl.jp/bio/10/lsd/ontology/201209#JapaneseEntry");
-		jp2.add(new JLabel("End Class:"));
-		jp2.add(jtf_end_class);
+		jtf_end_class.setText("http://purl.jp/bio/10/lsd/ontology/201209#JapaneseEntry");
+
+		jp2.add(new JLabel("End Class:"),BorderLayout.WEST);
+		jp2.add(jtf_end_class,BorderLayout.CENTER);
 		JButton jb_end =  new JButton("Select");
 		jb_end.addActionListener(new ActionListener(){
@@ -153,9 +159,16 @@
 		
 
-		jp2.add(jb_end);
-
-		
-		
-		JPanel jp3 = new JPanel();		
+		jp2.add(jb_end,BorderLayout.EAST);
+
+		
+		
+		JPanel jp3 = new JPanel();
+		jtf_mode = new JTextField(3);
+		jtf_mode.setText("0");
+		jp3.add(jtf_mode);
+		
+		jcb_count_ins = new JCheckBox("Count Ins.",false);
+		jp3.add(jcb_count_ins);
+		
 		JButton  jb_get_path = new JButton("Get Path");
 		jp3.add(jb_get_path);
@@ -175,5 +188,15 @@
 					System.out.println("getPaths:::>>>>"+jtf_start_class.getText()
 							+"<===>"+jtf_end_class.getText());
-					Path[] path = getOWLQueryBuilderImpl().getPaths(jtf_start_class.getText(), jtf_end_class.getText());
+					String mode_str = jtf_mode.getText();
+					int mode = Integer.parseInt(mode_str);
+					if(mode!=0 && mode!=1){
+						mode = 0;
+					}
+					
+					boolean count_ins = jcb_count_ins.isSelected();
+					
+					Path[] path = getOWLQueryBuilderImpl().getPaths(
+							jtf_start_class.getText(), jtf_end_class.getText(),
+							mode, count_ins);
 					System.out.println("RESULT:::>>>>"+path.length);
 					
@@ -208,5 +231,5 @@
 		String classURL ="";
 		try {
-			SClass[] classes = this.getOWLQueryBuilderImpl().getOWLClasses(null, keyword);
+			SClass[] classes = this.getOWLQueryBuilderImpl().getOWLClasses(null, keyword, false);
 			DefaultListModel model  = new DefaultListModel();
 			for(int i=0;i<classes.length;i++){
