Package org.deri.grefine.reconcile.rdf

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


    }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

      //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

        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

Related Classes of org.deri.grefine.reconcile.rdf.RdfReconciliationService

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.