Package com.google.refine.org.deri.reconcile

Examples of com.google.refine.org.deri.reconcile.GRefineServiceManager


 
  @Test
  public void saveServiceTest() throws JSONException, IOException{
    String id = "sparql-test";
    ServiceRegistry registry = new ServiceRegistry(new GRefineJsonUtilitiesImpl(),null);
    GRefineServiceManager manager = new GRefineServiceManager(registry, dir);
   
    ReconciliationService service = new RdfReconciliationService(id, id, new QueryEndpointImpl(new LarqSparqlQueryFactory(), new RemoteQueryExecutor(url, null)), 0);
    manager.addService(service);
   
    assertTrue(registry.hasService(id));
    //verify service is saved
   
    registry = new ServiceRegistry(new GRefineJsonUtilitiesImpl(),null);
View Full Code Here


 
  @Test
  public void saveRdfServiceTest() throws JSONException, IOException{
    String id = "rdf-test";
    ServiceRegistry registry = new ServiceRegistry(new GRefineJsonUtilitiesImpl(),null);
    GRefineServiceManager manager = new GRefineServiceManager(registry, dir);
   
    Model m = ModelFactory.createDefaultModel();
    ReconciliationService service = new RdfReconciliationService(id,id, new QueryEndpointImpl(new LarqSparqlQueryFactory(),
        new DumpQueryExecutor(m)), 0);
    manager.addAndSaveService(service);
   
    assertTrue(registry.hasService(id));
    //verify service is saved
   
    registry = new ServiceRegistry(new GRefineJsonUtilitiesImpl(),null);
View Full Code Here

TOP

Related Classes of com.google.refine.org.deri.reconcile.GRefineServiceManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.