Examples of PlainSparqlQueryEndpoint


Examples of com.google.refine.org.deri.reconcile.rdf.endpoints.PlainSparqlQueryEndpoint

    InputStream in = this.getClass().getResourceAsStream("../files/films.ttl");
    m.read(in,null,"TTL");
   
    executor = new DumpQueryExecutor(m);
    factory = new PlainSparqlQueryFactory();
    endpoint = new PlainSparqlQueryEndpoint(factory, executor);
  }
View Full Code Here

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

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

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