Search in sources :

Example 1 with Joiner

use of org.apache.jena.ext.com.google.common.base.Joiner in project autoindex by dice-group.

the class AutoIndexTest method testgetallclasses.

public void testgetallclasses() {
    seh.setLang("en");
    seh.setBaseUri(endpoint);
    ResultSet results = seh.getallclasses();
    assertNotNull(results);
    List<QuerySolution> asText = ResultSetFormatter.toList(results);
    Joiner listOfResults = Joiner.on("\n");
    System.out.println("Classes Results" + listOfResults.join(asText));
    System.out.println("Total Visible Results = " + asText.size());
    Assert.assertTrue(asText.size() > 1);
}
Also used : Joiner(org.apache.jena.ext.com.google.common.base.Joiner) QuerySolution(org.apache.jena.query.QuerySolution) ResultSet(org.apache.jena.query.ResultSet)

Aggregations

Joiner (org.apache.jena.ext.com.google.common.base.Joiner)1 QuerySolution (org.apache.jena.query.QuerySolution)1 ResultSet (org.apache.jena.query.ResultSet)1