/** Return a string that has the result set serilized as XML (not RDF) * * @param booleanResult The boolean result to encode * @return string */ public static String asXMLString(boolean booleanResult) { return asXMLString(booleanResult, null) ; }
/** Return a string that has the result set serilized as XML (not RDF) * * @param qresults result set * @return string */ public static String asXMLString(ResultSet qresults) { return asXMLString(qresults, null) ; }
/** Return a string that has the result set serilized as XML (not RDF) * * @param qresults result set * @return string */ public static String asXMLString(ResultSet qresults) { return asXMLString(qresults, null) ; }
/** Return a string that has the result set serilized as XML (not RDF) * * @param booleanResult The boolean result to encode * @return string */ public static String asXMLString(boolean booleanResult) { return asXMLString(booleanResult, null) ; }
/** * Evaluates a SPARQL query and return the XML format. * * @return XML results of the query */ public Document getResultsAsXML() { ResultSet resultSet = getResults(); String xml = ResultSetFormatter.asXMLString(resultSet); return Helper.parseXMLString(xml); }
/** * Evaluates a SPARQL query, storing the bindings to be reused later. Used for * the ScopedDataset. * * @param q * query to be executed * @param id * solution id * @return XML results of the query */ @Deprecated public static Document createScopedDataset(String q, String id) { ResultSet results = EvaluatorExternalFunctions.createScopedDataset(q, id); String xml = ResultSetFormatter.asXMLString(results); return Helper.parseXMLString(xml); }
public void runRemoteSparqlSelectAndPrintResults(String svcUrl, String queryTxt) { Logger log = getLogger(); ResultSet resSet = myAgentRepoClient.execRemoteSparqlSelect(svcUrl, queryTxt); ResultSetRewindable rewindableResSet = ResultSetFactory.makeRewindable(resSet); String resultXML = ResultSetFormatter.asXMLString(rewindableResSet); log.info("ResultSet as XML: \n" + resultXML); }
public void runRemoteSparqlSelectAndPrintResults(String svcUrl, String queryTxt) { Logger log = getLogger(); ResultSet resSet = myAgentRepoClient.execRemoteSparqlSelect(svcUrl, queryTxt); ResultSetRewindable rewindableResSet = ResultSetFactory.makeRewindable(resSet); String resultXML = ResultSetFormatter.asXMLString(rewindableResSet); log.info("ResultSet as XML: \n" + resultXML); }
/** * Evaluates a SPARQL query, using previously stored dataset and bindings. * Used for the ScopedDataset. * * @param q * query to be executed * @param id * solution id * @param joinVars * joining variables that will be put in the initialBinding * @param pos * current iteration * @return XML results of the query */ @Deprecated public static Document sparqlScopedDataset(String q, String id, String joinVars, int pos) { ResultSet results2 = EvaluatorExternalFunctions.sparqlScopedDataset(q, id, joinVars, pos); String xml = ResultSetFormatter.asXMLString(results2); return Helper.parseXMLString(xml); }