From: <ku...@us...> - 2008-02-17 23:38:50
|
Revision: 596 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=596&view=rev Author: kurzum Date: 2008-02-17 15:38:43 -0800 (Sun, 17 Feb 2008) Log Message: ----------- fixed bug #1878069 Modified Paths: -------------- trunk/examples/commandcollection.txt trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java trunk/src/dl-learner/org/dllearner/test/JenaLongQueryTest.java Modified: trunk/examples/commandcollection.txt =================================================================== --- trunk/examples/commandcollection.txt 2008-02-17 18:28:38 UTC (rev 595) +++ trunk/examples/commandcollection.txt 2008-02-17 23:38:43 UTC (rev 596) @@ -19,6 +19,7 @@ // algorithm settings algorithm = refinement; +algorithm = refexamples refinement.horizontalExpansionFactor = 0.6; refinement.quiet = false; refinement.useTooWeakList = true; Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java 2008-02-17 18:28:38 UTC (rev 595) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java 2008-02-17 23:38:43 UTC (rev 596) @@ -32,6 +32,7 @@ import com.hp.hpl.jena.query.ResultSetFactory; import com.hp.hpl.jena.query.ResultSetFormatter; import com.hp.hpl.jena.sparql.core.ResultBinding; +import com.hp.hpl.jena.sparql.engine.http.HttpQuery; import com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP; /** @@ -82,6 +83,7 @@ } logger.info("query SPARQL server"); try{ + HttpQuery.urlLimit = 3*1024 ; rs = queryExecution.execSelect(); logger.info(rs.getResultVars().toString()); } catch (Exception e){ Modified: trunk/src/dl-learner/org/dllearner/test/JenaLongQueryTest.java =================================================================== --- trunk/src/dl-learner/org/dllearner/test/JenaLongQueryTest.java 2008-02-17 18:28:38 UTC (rev 595) +++ trunk/src/dl-learner/org/dllearner/test/JenaLongQueryTest.java 2008-02-17 23:38:43 UTC (rev 596) @@ -2,6 +2,7 @@ import com.hp.hpl.jena.query.ResultSet; import com.hp.hpl.jena.query.ResultSetFormatter; +import com.hp.hpl.jena.sparql.engine.http.HttpQuery; import com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP; @@ -63,6 +64,7 @@ ResultSet rs; String xml; QueryEngineHTTP queryExecution; + HttpQuery.urlLimit = 3*1024 ; queryExecution = new QueryEngineHTTP(url, shortQuery); queryExecution.addDefaultGraph(defaultgraph); rs = queryExecution.execSelect(); @@ -72,14 +74,17 @@ try{ queryExecution=new QueryEngineHTTP(url,longQuery); queryExecution.addDefaultGraph(defaultgraph); + + //queryExecution.getContext(). rs = queryExecution.execSelect(); xml = ResultSetFormatter.asXMLString(rs); System.out.println("Long Query ResultSet length: "+xml.length()+"\n"); System.out.println("Long query XML: "+xml); }catch (Exception e) {e.printStackTrace();} + // String queryWithIncreasingLength=""; - for (int i = 0; i < 30; i++) { + for (int i = 0; i < 100; i++) { queryWithIncreasingLength = makeQueryString ( i); queryExecution=new QueryEngineHTTP(url,queryWithIncreasingLength); queryExecution.addDefaultGraph(defaultgraph); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |