@Test public void modelGetter_givenSpecifiContexts_shouldLoadAllStatementsInRepo() { Model model = QueryUtils.getModelFromRepo(repo); assertThat( String.format("The in-memory store should contain %s statemtents", REPO_CONTEXTS_NR_STATEMENTS), model, hasSize(REPO_CONTEXTS_NR_STATEMENTS) ); }
public static Model getModelFromRepo(Repository repository, String sparqlQuery) { Objects.requireNonNull(repository, REPOSITORY_MSG); Objects.requireNonNull(repository, SPARQL_QUERY_MSG); return Repositories.graphQuery( repository, sparqlQuery, QueryResults::asModel ); }
QueryUtils { public static Model getModelFromRepo(Repository repository, String sparqlQuery) { Objects.requireNonNull(repository, REPOSITORY_MSG); Objects.requireNonNull(repository, SPARQL_QUERY_MSG); return Repositories.graphQuery( repository, sparqlQuery, QueryResults::asModel ); } }
QueryUtils { public static Model getModelFromRepo(Repository repository, String sparqlQuery) { Objects.requireNonNull(repository, REPOSITORY_MSG); Objects.requireNonNull(repository, SPARQL_QUERY_MSG); return Repositories.graphQuery( repository, sparqlQuery, QueryResults::asModel ); } private  QueryUtils(); }
QueryUtils { public static Model getModelFromRepo(Repository repository, String sparqlQuery) { Objects.requireNonNull(repository, REPOSITORY_MSG); Objects.requireNonNull(repository, SPARQL_QUERY_MSG); return Repositories.graphQuery( repository, sparqlQuery, QueryResults::asModel ); } private  QueryUtils(); static Model getModelFromRepo(Repository repository, String sparqlQuery); static Model getModelFromRepo(Repository repository, Resource... contexts); }
QueryUtils { public static Model getModelFromRepo(Repository repository, String sparqlQuery) { Objects.requireNonNull(repository, REPOSITORY_MSG); Objects.requireNonNull(repository, SPARQL_QUERY_MSG); return Repositories.graphQuery( repository, sparqlQuery, QueryResults::asModel ); } private  QueryUtils(); static Model getModelFromRepo(Repository repository, String sparqlQuery); static Model getModelFromRepo(Repository repository, Resource... contexts);  }