public class SPARQLExecutor extends Object
| Constructor and Description |
|---|
SPARQLExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
executeAsk(String query,
String endpoint) |
static Results |
executeSelect(String query,
String endpoint) |
private static BufferedReader |
getReader(String endpoint) |
static boolean |
isEndpointAlive(String endpoint) |
private static Results |
processSelectResults(String results) |
private static String |
readAll(BufferedReader reader) |
static Set<org.apache.jena.rdf.model.RDFNode> |
sparql(String service,
String query) |
public static boolean isEndpointAlive(String endpoint)
private static Results processSelectResults(String results) throws ParserConfigurationException, SAXException, IOException
private static String readAll(BufferedReader reader) throws IOException
IOExceptionprivate static BufferedReader getReader(String endpoint) throws IOException
IOExceptionCopyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.