Examples of RdfReconciliationService


Examples of com.google.refine.org.deri.reconcile.rdf.RdfReconciliationService

  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
   
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.rdf.RdfReconciliationService

    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
View Full Code Here

Examples of org.deri.grefine.reconcile.rdf.RdfReconciliationService

    JSONArray propertiesArray = serviceObj.getJSONArray("searchPropertyUris");
    for(int i=0;i<propertiesArray.length();i++){
      searchPropertyUris.add(propertiesArray.getString(i));
    }
    QueryEndpoint endpoint = loadEndpointFromJSON(serviceObj.getJSONObject("endpoint"));
    return new RdfReconciliationService(serviceId, serviceObj.getString("name"),
        ImmutableList.copyOf(searchPropertyUris), endpoint, serviceObj.getDouble("matchThreshold"));
  }
View Full Code Here

Examples of org.deri.grefine.reconcile.rdf.RdfReconciliationService

    }else{
      queryExecutor = new DumpQueryExecutor(model);
    }
    SparqlQueryFactory queryFactory = new JenaTextSparqlQueryFactory();
    QueryEndpoint queryEndpoint = new QueryEndpointImpl(queryFactory, queryExecutor);
    return new RdfReconciliationService(id, name, queryEndpoint, DEFAULT_MATCH_THRESHOLD);
  }
View Full Code Here

Examples of org.deri.grefine.reconcile.rdf.RdfReconciliationService

      //plain
      PlainSparqlQueryFactory queryFactory = new PlainSparqlQueryFactory();
      QueryExecutor queryExecutor = new RemoteQueryExecutor(url, graph);
      queryEndpoint = new PlainSparqlQueryEndpoint(queryFactory, queryExecutor);
    }
    ReconciliationService service = new RdfReconciliationService(id, name, propUris, queryEndpoint, DEFAULT_MATCH_THRESHOLD);
    return service;
  }
View Full Code Here

Examples of org.deri.grefine.reconcile.rdf.RdfReconciliationService

        queryExecutor = new DumpQueryExecutor(model,propUris.get(0));
      }else{
        queryExecutor = new DumpQueryExecutor(model);
      }
      QueryEndpoint queryEndpoint = new QueryEndpointImpl(queryFactory, queryExecutor);
      ReconciliationService service = new RdfReconciliationService(id, name, propUris, queryEndpoint, AddServiceCommand.DEFAULT_MATCH_THRESHOLD);
      GRefineServiceManager.singleton.addAndSaveService(service);
      return service;
    }catch(FileUploadException fe){
      throw new IOException(fe);
    }
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.