Class SPARQLRepositoryConfig
java.lang.Object
org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
org.eclipse.rdf4j.repository.sparql.config.SPARQLRepositoryConfig
- All Implemented Interfaces:
RepositoryImplConfig
Configuration for a SPARQL endpoint.
- Author:
- James Leigh
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSPARQLRepositoryConfig
(String queryEndpointUrl) SPARQLRepositoryConfig
(String queryEndpointUrl, String updateEndpointUrl) -
Method Summary
Modifier and TypeMethodDescriptionExport thisRepositoryImplConfig
to its RDF representationvoid
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.void
setPassThroughEnabled
(Boolean passThroughEnabled) void
void
void
validate()
Validates this configuration.Methods inherited from class org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
create, getType, setType
-
Field Details
-
NAMESPACE
- See Also:
-
QUERY_ENDPOINT
Deprecated.useinvalid reference
CONFIG#queryEndpoint
Configuration setting for the SPARQL query endpoint. Required. -
UPDATE_ENDPOINT
Deprecated.useinvalid reference
CONFIG#updateEndpoint
Configuration setting for the SPARQL update endpoint. Optional. -
PASS_THROUGH_ENABLED
Deprecated.useinvalid reference
CONFIG#passThroughEnabled
Configuration setting for enabling/disabling direct result pass-through. Optional.- See Also:
-
-
Constructor Details
-
SPARQLRepositoryConfig
public SPARQLRepositoryConfig() -
SPARQLRepositoryConfig
-
SPARQLRepositoryConfig
-
-
Method Details
-
getQueryEndpointUrl
-
setQueryEndpointUrl
-
getUpdateEndpointUrl
-
setUpdateEndpointUrl
-
validate
Description copied from interface:RepositoryImplConfig
Validates this configuration. ARepositoryConfigException
is thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validate
in interfaceRepositoryImplConfig
- Overrides:
validate
in classAbstractRepositoryImplConfig
- Throws:
RepositoryConfigException
- If the configuration is invalid.
-
export
Description copied from interface:RepositoryImplConfig
Export thisRepositoryImplConfig
to its RDF representation- Specified by:
export
in interfaceRepositoryImplConfig
- Overrides:
export
in classAbstractRepositoryImplConfig
- Parameters:
m
- aModel
object. After successful completion of this method this Model will contain the RDF representation of thisRepositoryImplConfig
.- Returns:
- the subject
Resource
that identifies thisRepositoryImplConfig
in the Model.
-
parse
Description copied from interface:RepositoryImplConfig
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.- Specified by:
parse
in interfaceRepositoryImplConfig
- Overrides:
parse
in classAbstractRepositoryImplConfig
- Parameters:
m
- aModel
containing repository configuration data.implNode
- the subjectResource
that identifies theRepositoryImplConfig
in the Model.- Throws:
RepositoryConfigException
- if the configuration data could not be read from the supplied Model.
-
getPassThroughEnabled
- Returns:
- the passThroughEnabled
-
setPassThroughEnabled
- Parameters:
passThroughEnabled
- the passThroughEnabled to set
-
invalid reference