Class SPARQLProtocolSession

All Implemented Interfaces:
AutoCloseable, HttpClientDependent
Direct Known Subclasses:

public class SPARQLProtocolSession extends Object implements HttpClientDependent, AutoCloseable
The SPARQLProtocolSession provides low level HTTP methods for communication with SPARQL endpoints. All methods are compliant to the SPARQL 1.1 Protocol W3C Recommendation.

For both Tuple and Graph queries there is a variant which parses the result in the background, see BackgroundTupleResult and BackgroundGraphResult. For boolean queries the result is parsed in the current thread. All methods in this class guarantee that HTTP connections are closed properly and returned to the connection pool. The methods in this class are not guaranteed to be thread-safe.

Functionality specific to the RDF4J HTTP protocol can be found in RDF4JProtocolSession (which is used by HTTPRepository).

Herko ter Horst, Arjohn Kampman, Andreas Schwarte, Jeen Broekstra
See Also: