Package org.deri.grefine.reconcile.sindice

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


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

      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

Related Classes of org.deri.grefine.reconcile.sindice.SindiceService

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.