public void changeEndpoint() { System.out.println("[INFO ]: Selected SPARQL Endpoint " + this.endpoint); SPARQLRepository sRepository = new SPARQLRepository(); if (sRepository.endpointOn(this.endpoint)) { Neo4jRepository nRepository = new Neo4jRepository(); this.predicates = nRepository.retrieveEndpointData(this.endpoint); this.status = "On"; } else { this.status = "Off"; } }
public BuscaAvancadaBean() { Neo4jRepository nRepository = new Neo4jRepository(); SPARQLRepository sRepository = new SPARQLRepository(); this.endpoints = nRepository.findEndpointsURIs(); links1 = new ArrayList<String>(); linksWithOU(false); links2 = new ArrayList<String>(); linksWithOPTIONAL(); if (sRepository.endpointOn(this.endpoint)) { this.status = "On"; } else { this.status = "Off"; } this.predicates = nRepository.retrieveEndpointData(this.endpoint); }