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

Examples of com.google.refine.org.deri.reconcile.model.ReconciliationService.reconcile()


    verifyCorrectService(service2, service);
    //verify service is not initialized
    ReconciliationRequest request = new ReconciliationRequest("query", 10);
    String msg = "";
    try{
      service2.reconcile(request);
    }catch(RuntimeException e){
      msg = e.getMessage();
    }
    assertTrue(msg.equals("Model is not loaded"));
   
View Full Code Here


    }
    assertTrue(msg.equals("Model is not loaded"));
   
    FileInputStream modelIn = new FileInputStream(new File(dir,id + ".ttl"));
    ReconciliationService service3 = registry.getService(id, modelIn);
    assertTrue(service3.reconcile(request).getResults().isEmpty());
  }

  private void verifyCorrectService(ReconciliationService service,ReconciliationService expected) throws JSONException {
    StringWriter w1 = new StringWriter();
    JSONWriter j1 = new JSONWriter(w1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.