assertEquals(sparql, expected);
}
@Test
public void multiLabelsWithTypeWithContextReconciliationTest(){
ReconciliationRequest request = new ReconciliationRequest(query, limit);
request.setTypes(new String[] {"http://xmlns.com/foaf/0.1/Person" , "http://example.org/ontology/Person"});
PropertyContext prop1 = new PropertyContext("http://example.org/ontology/worksFor", new IdentifiedValueContext("http://example.org/resource/DERI"));
PropertyContext prop2 = new PropertyContext("http://xmlns.com/foaf/0.1/nick", new TextualValueContext("fadmaa"));
request.setContext(new ReconciliationRequestContext(prop1, prop2));
ImmutableList<String> searchPropertyUris = ImmutableList.of("http://www.w3.org/2000/01/rdf-schema#label", "http://www.w3.org/2004/02/skos/core#prefLabel");
String sparql = factory.getReconciliationSparqlQuery(request, searchPropertyUris);
String expected =
"PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> " +