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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final IRIDeprecated.private Booleanstatic final IRIDeprecated.useinstead.invalid reference
CONFIG#queryEndpointprivate Stringstatic final IRIDeprecated.useinstead.invalid reference
CONFIG#updateEndpointprivate Stringprivate static final booleanprivate static final ValueFactory -
Constructor Summary
ConstructorsConstructorDescriptionSPARQLRepositoryConfig(String queryEndpointUrl) SPARQLRepositoryConfig(String queryEndpointUrl, String updateEndpointUrl) -
Method Summary
Modifier and TypeMethodDescriptionExport thisRepositoryImplConfigto its RDF representationvoidReads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.voidsetPassThroughEnabled(Boolean passThroughEnabled) voidvoidvoidvalidate()Validates this configuration.Methods inherited from class AbstractRepositoryImplConfig
create, getType, setType
-
Field Details
-
USE_CONFIG
private static final boolean USE_CONFIG -
vf
-
NAMESPACE
- See Also:
-
QUERY_ENDPOINT
Deprecated.useinstead.invalid reference
CONFIG#queryEndpointConfiguration setting for the SPARQL query endpoint. Required. -
UPDATE_ENDPOINT
Deprecated.useinstead.invalid reference
CONFIG#updateEndpointConfiguration setting for the SPARQL update endpoint. Optional. -
PASS_THROUGH_ENABLED
Deprecated.useinstead.invalid reference
CONFIG#passThroughEnabledConfiguration setting for enabling/disabling direct result pass-through. Optional.- See Also:
-
queryEndpointUrl
-
updateEndpointUrl
-
passThroughEnabled
-
-
Constructor Details
-
SPARQLRepositoryConfig
public SPARQLRepositoryConfig() -
SPARQLRepositoryConfig
-
SPARQLRepositoryConfig
-
-
Method Details
-
getQueryEndpointUrl
-
setQueryEndpointUrl
-
getUpdateEndpointUrl
-
setUpdateEndpointUrl
-
validate
Description copied from interface:RepositoryImplConfigValidates this configuration. ARepositoryConfigExceptionis thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validatein interfaceRepositoryImplConfig- Overrides:
validatein classAbstractRepositoryImplConfig- Throws:
RepositoryConfigException- If the configuration is invalid.
-
export
Description copied from interface:RepositoryImplConfigExport thisRepositoryImplConfigto its RDF representation- Specified by:
exportin interfaceRepositoryImplConfig- Overrides:
exportin classAbstractRepositoryImplConfig- Parameters:
m- aModelobject. After successful completion of this method this Model will contain the RDF representation of thisRepositoryImplConfig.- Returns:
- the subject
Resourcethat identifies thisRepositoryImplConfigin the Model.
-
parse
Description copied from interface:RepositoryImplConfigReads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.- Specified by:
parsein interfaceRepositoryImplConfig- Overrides:
parsein classAbstractRepositoryImplConfig- Parameters:
m- aModelcontaining repository configuration data.implNode- the subjectResourcethat identifies theRepositoryImplConfigin 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