org.jrdf.connection
Class JrdfConnectionFactory
java.lang.Object
org.jrdf.connection.JrdfConnectionFactory
- public final class JrdfConnectionFactory
- extends Object
Returns query oriented connections to a graph.
- Version:
- $Revision: 1.1 $
- Author:
- Tom Adams
Field Summary |
static URI |
NO_SECURITY_DOMAIN
Indicates that no security is enabled on the server being queried. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_SECURITY_DOMAIN
public static final URI NO_SECURITY_DOMAIN
- Indicates that no security is enabled on the server being queried.
JrdfConnectionFactory
public JrdfConnectionFactory()
getSparqlConnection
public SparqlConnection getSparqlConnection(Graph graph,
URI securityDomain)
- Returns a connection to through which to send SPARQL queries.
Note. A new connection is returned for each call, they are not pooled and are not thread safe. Clients should ensure
that they call close on the connection once it is no longer required, the system will not clean the connection up
automatically.
- Parameters:
graph
- The graph to query.securityDomain
- The security domain.
- Returns:
- A connection through which to issue SPARQL queries.