Examples of SindiceService


Examples of com.google.refine.org.deri.reconcile.sindice.SindiceService

  @Test
  public void reconcileTest()throws Exception{
    /*
     * testing
     */
    service = new SindiceService(name, name, null, jsonUtil, new RdfUtilitiesImpl(), mockBroker, mockQueryEndpointFactory);
    service.reconcile(request);
   
    /*
     * Verification
     */
 
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.sindice.SindiceService

   
    when(mockEndpoint.reconcileEntities(request, empty, 0.9)).thenReturn(results);
    /*
     * testing
     */
    service = new SindiceService(name, name, null, jsonUtil, new RdfUtilitiesImpl(), mockBroker, mockQueryEndpointFactory);
    service.reconcile(request);
   
    /*
     * Verification
     */
 
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.sindice.SindiceService

  @Test
  public void reconcileTestWithDomain()throws Exception{
    /*
     * testing
     */
    service = new SindiceService(name, name, domain, jsonUtil, new RdfUtilitiesImpl(), mockBroker, mockQueryEndpointFactory);
    service.reconcile(request);
   
    /*
     * Verification
     */
 
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.sindice.SindiceService

  @Test
  public void reconcileTestWithType()throws Exception{
    /*
     * testing
     */
    SindiceService service = new SindiceService(name, name, null, jsonUtil, new RdfUtilitiesImpl(), mockBroker, mockQueryEndpointFactory);
    request.setTypes(new String[] {"httphttp://xmlns.com/foaf/0.1/Person"});
    service.reconcile(request);
   
    /*
     * Verification
     */
    verify(mockBroker).getUrlsForSimpleTermSearch(query,null,null,DEFAULT_SEARCH_LIMIT,jsonUtil);
 
View Full Code Here

Examples of org.deri.grefine.reconcile.sindice.SindiceService

    String name = serviceObj.getString("name");
    String domain = null;
    if(serviceObj.has("domain")){
      domain = serviceObj.getString("domain");
    }
    return new SindiceService(serviceId, name, domain);
  }
View Full Code Here

Examples of org.deri.grefine.reconcile.sindice.SindiceService

public class InitializeServicesCommand extends AbstractAddServiceCommand{

  @Override
  protected ReconciliationService getReconciliationService(HttpServletRequest request) throws JSONException, IOException {
    ReconciliationService service = new SindiceService("sindice", "Sindice", null);
    try {
      JSONArray arr = ParsingUtilities.evaluateJsonStringToArray(request.getParameter("services"));
      Set<String> urls = new HashSet<String>();
      for(int i=0;i<arr.length();i++){
        urls.add(arr.getString(i));
View Full Code Here

Examples of org.deri.grefine.reconcile.sindice.SindiceService

      throw new RuntimeException("Sindice service for domain '" + domain + "' is already defined!");
    }
    if(domain.trim().isEmpty()){
      throw new RuntimeException("doamin is required");
    }
    ReconciliationService service = new SindiceService(id, name, domain);
    GRefineServiceManager.singleton.addService(service);
    return service;
  }
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.