sparqlGraphLibrary/src/test/java/com/ge/research/semtk/belmont/test/QueryGenTest_IT.java
@Test
	public void basicSelectQuery() throws Exception {
		
		NodeGroup ng = TestGraph.getNodeGroupFromResource(this, "/chain.json");
		
		String select = ng.generateSparql(AutoGeneratedQueryTypes.SELECT_DISTINCT, null, 10, null);
		SparqlEndpointInterface sei =  sgJsonChain.getSparqlConn().getDefaultQueryInterface();
		TableResultSet tRes = (TableResultSet) sei.executeQueryAndBuildResultSet(select, SparqlResultTypes.TABLE);
		
		Table tab = tRes.getTable();
		assertEquals(2, tab.getNumRows());
		assertEquals(4, tab.getNumColumns());
	}
/**
	 * Basic query of tricky load
	 * @throws Exception
	 */
Basic query of tricky load
@throws Exception
Basic query of tricky load @throws Exception
@Test
	public void basicSelectQuery() throws Exception {
		NodeGroup ng = TestGraph.getNodeGroupFromResource(this, "/chain.json");
		String select = ng.generateSparql(AutoGeneratedQueryTypes.SELECT_DISTINCT, null, 10, null);
		SparqlEndpointInterface sei =  sgJsonChain.getSparqlConn().getDefaultQueryInterface();
		TableResultSet tRes = (TableResultSet) sei.executeQueryAndBuildResultSet(select, SparqlResultTypes.TABLE);
		Table tab = tRes.getTable();
		assertEquals(2, tab.getNumRows());
		assertEquals(4, tab.getNumColumns());
	}
@ Test public void basicSelectQuery ( ) throws Exception { NodeGroup ng = TestGraph . getNodeGroupFromResource ( this , "/chain.json" ) ; String select = ng . generateSparql ( AutoGeneratedQueryTypes . SELECT_DISTINCT , null , 10 , null ) ; SparqlEndpointInterface sei = sgJsonChain . getSparqlConn ( ) . getDefaultQueryInterface ( ) ; TableResultSet tRes = ( TableResultSet ) sei . executeQueryAndBuildResultSet ( select , SparqlResultTypes . TABLE ) ; Table tab = tRes . getTable ( ) ; assertEquals ( 2 , tab . getNumRows ( ) ) ; assertEquals ( 4 , tab . getNumColumns ( ) ) ; }
Basic query of tricky load
 @throws Exception
Basic query of tricky load @throws Exception