Package org.deri.grefine.reconcile.rdf.endpoints

Examples of org.deri.grefine.reconcile.rdf.endpoints.PlainSparqlQueryEndpoint


  private QueryEndpoint loadEndpointFromJSON(JSONObject endpointObj) throws JSONException{
    String type = endpointObj.getString("type");
    QueryExecutor executor = loadQueryExecutorFromJSON(endpointObj.getJSONObject("queryExecutor"));
    SparqlQueryFactory factory = loadQueryFactoryFromJSON(endpointObj.getJSONObject("queryFactory"));
    if(type.equals("plain")){
      return new PlainSparqlQueryEndpoint((PlainSparqlQueryFactory)factory, executor);
    }else{
      //default
      return new QueryEndpointImpl(factory, executor);
    }
     
View Full Code Here


      queryEndpoint = new QueryEndpointImpl(queryFactory, queryExecutor);
    }else{
      //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

TOP

Related Classes of org.deri.grefine.reconcile.rdf.endpoints.PlainSparqlQueryEndpoint

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.