Examples of ReconciliationStanbolSite


Examples of org.deri.grefine.reconcile.model.ReconciliationStanbolSite

    HttpEntity entity = HttpUtils.get(uri, JSON);
    ObjectMapper mapper = new ObjectMapper();
    Set<String> sites = mapper.readValue(entity.getContent(), new TypeReference<Set<String>>(){});
        Set<ReconciliationStanbolSite> reconciliations = new HashSet<ReconciliationStanbolSite>();
        for (String site : sites) {
          ReconciliationStanbolSite reconciliation = this.buildReconciliation(site);
          if (reconciliation != null) {
            reconciliations.add(reconciliation);
          } else {
            log.error("'" + site + "' can't be correctly retrieved, so not going to be registered");
          }
View Full Code Here

Examples of org.deri.grefine.reconcile.model.ReconciliationStanbolSite

            "} ";
    QueryExecution qe = QueryExecutionFactory.create(query, model);
    ResultSet results = qe.execSelect();
    if (results.hasNext()) {
      QuerySolution qs = results.nextSolution();
      ReconciliationStanbolSite reconciliation = new ReconciliationStanbolSite();
      reconciliation.setUri(site + RECONCILE_SUFFIX);
      reconciliation.setName(qs.getLiteral("name").getString());
      reconciliation.setLocal("true".equalsIgnoreCase(qs.getLiteral("local").getString()));
      return reconciliation;
    } else {
      return null;
    }
  }
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.