use of org.apache.jena.rdfconnection.RDFConnectionRemoteBuilder in project jena by apache.
the class RDFConnectionExample5 method main.
public static void main(String... args) {
RDFConnectionRemoteBuilder builder = RDFConnectionRemote.newBuilder().destination("http://sparql.org/").queryEndpoint("sparql").updateEndpoint(null).gspEndpoint(null);
Query query = QueryFactory.create("SELECT * { BIND('Hello'as ?text) }");
// See example 5.
try (RDFConnection conn = builder.build()) {
conn.queryResultSet(query, ResultSetFormatter::out);
}
}
Aggregations