Class SPARQLRepository

java.lang.Object
org.eclipse.rdf4j.repository.base.AbstractRepository
org.eclipse.rdf4j.repository.sparql.SPARQLRepository
All Implemented Interfaces:
HttpClientDependent, SessionManagerDependent, Repository

public class SPARQLRepository extends AbstractRepository implements HttpClientDependent, SessionManagerDependent
A proxy class to access any SPARQL 1.1 endpoint.
Author:
James Leigh
  • Constructor Details

    • SPARQLRepository

      public SPARQLRepository(String endpointUrl)
      Create a new SPARQLRepository using the supplied endpoint URL for queries and updates.
      Parameters:
      endpointUrl - a SPARQL endpoint URL. May not be null.
    • SPARQLRepository

      public SPARQLRepository(String queryEndpointUrl, String updateEndpointUrl)
      Create a new SPARQLRepository using the supplied query endpoint URL for queries, and the supplied update endpoint URL for updates.
      Parameters:
      queryEndpointUrl - a SPARQL endpoint URL for queries. May not be null.
      updateEndpointUrl - a SPARQL endpoint URL for updates. May not be null.
      Throws:
      IllegalArgumentException - if one of the supplied endpoint URLs is null.
  • Method Details