VIVO-452 Revise SparqlQueryDataGetter to use RDFService if possible.

This commit is contained in:
j2blake 2013-11-04 15:02:15 -05:00
parent f75b1159e5
commit 2f78e09765
4 changed files with 142 additions and 104 deletions

View file

@ -67,9 +67,9 @@ public class SparqlQueryDataGetterTest extends AbstractTestClass{
String bobURI = "http://example.com/p/bob";
dataModel.add(ResourceFactory.createResource(bobURI), RDF.type, ResourceFactory.createResource("http://xmlns.com/foaf/0.1/Person"));
Map<String, String[]> params = Collections.emptyMap();
Map<String, String> params = Collections.emptyMap();
Map<String,Object> mapOut = sdg.doQuery(params, dataModel);
Map<String,Object> mapOut = sdg.doQueryOnModel(sdg.queryText, dataModel);
Assert.assertNotNull(mapOut);
Assert.assertTrue("should contain key people" , mapOut.containsKey("people"));