@Test public void personLoader_givenPersonSelector_shouldLoadFourPeopleOneWithAddress() throws RDFParseException, UnsupportedRDFormatException, IOException { Set<Person> people = RdfObjectLoader.load(selectPersons, Person.class, model); int peopleWithAddr = (int) people.stream() .filter(p -> p.getAddress() != null) .count(); assertThat("1 person with address should be loaded", peopleWithAddr, is(1)); }
public static <T> Set<T> load( Function<Model, Set<Resource>> resourceSelector, Class<T> clazz, Model model ) { return load(resourceSelector, clazz, model, m -> m, c -> {}, m -> {}); }
RdfObjectLoader { public static <T> Set<T> load( Function<Model, Set<Resource>> resourceSelector, Class<T> clazz, Model model ) { return load(resourceSelector, clazz, model, m -> m, c -> {}, m -> {}); } }
RdfObjectLoader { public static <T> Set<T> load( Function<Model, Set<Resource>> resourceSelector, Class<T> clazz, Model model ) { return load(resourceSelector, clazz, model, m -> m, c -> {}, m -> {}); } private  RdfObjectLoader(); }
RdfObjectLoader { public static <T> Set<T> load( Function<Model, Set<Resource>> resourceSelector, Class<T> clazz, Model model ) { return load(resourceSelector, clazz, model, m -> m, c -> {}, m -> {}); } private  RdfObjectLoader(); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,
			Model model
		); static Set<T> load(
		Function<Model, Set<Resource>> resourceSelector, 
		Class<T> clazz,
		Model model,
		UnaryOperator<Model> modelAdapter
	); static Set<T> load(
		Function<Model, Set<Resource>> resourceSelector, 
		Class<T> clazz,
		Model model,
		UnaryOperator<Model> modelAdapter,
		Consumer<MappingCache> populateCache,
		Consumer<Mapper> configureMapper
	); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector,
			Class<T> clazz,
			Model model,
			UnaryOperator<Model> modelAdapter,
			Consumer<MappingCache> populateCache,
			Consumer<Mapper> configureMapper,
			Set<Namespace> namespaces
	); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,	
			Repository repository, 
			String sparqlQuery
		); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,	
			Repository repository, 
			String sparqlQuery,
			UnaryOperator<Model> modelAdapter
		); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,
			Repository repository, 
			Resource... contexts
		); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,
			Repository repository,
			UnaryOperator<Model> modelAdapter, 
			Resource... contexts
		); }
RdfObjectLoader { public static <T> Set<T> load( Function<Model, Set<Resource>> resourceSelector, Class<T> clazz, Model model ) { return load(resourceSelector, clazz, model, m -> m, c -> {}, m -> {}); } private  RdfObjectLoader(); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,
			Model model
		); static Set<T> load(
		Function<Model, Set<Resource>> resourceSelector, 
		Class<T> clazz,
		Model model,
		UnaryOperator<Model> modelAdapter
	); static Set<T> load(
		Function<Model, Set<Resource>> resourceSelector, 
		Class<T> clazz,
		Model model,
		UnaryOperator<Model> modelAdapter,
		Consumer<MappingCache> populateCache,
		Consumer<Mapper> configureMapper
	); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector,
			Class<T> clazz,
			Model model,
			UnaryOperator<Model> modelAdapter,
			Consumer<MappingCache> populateCache,
			Consumer<Mapper> configureMapper,
			Set<Namespace> namespaces
	); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,	
			Repository repository, 
			String sparqlQuery
		); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,	
			Repository repository, 
			String sparqlQuery,
			UnaryOperator<Model> modelAdapter
		); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,
			Repository repository, 
			Resource... contexts
		); static Set<T> load(
			Function<Model, Set<Resource>> resourceSelector, 
			Class<T> clazz,
			Repository repository,
			UnaryOperator<Model> modelAdapter, 
			Resource... contexts
		);  }