Class SPARQLRepositoryConfig
- java.lang.Object
-
- org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
-
- org.eclipse.rdf4j.repository.sparql.config.SPARQLRepositoryConfig
-
- All Implemented Interfaces:
RepositoryImplConfig
public class SPARQLRepositoryConfig extends AbstractRepositoryImplConfig
Configuration for a SPARQL endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMESPACEstatic IRIPASS_THROUGH_ENABLEDDeprecated.useCONFIG#passThroughEnabledinstead.private java.lang.BooleanpassThroughEnabledstatic IRIQUERY_ENDPOINTDeprecated.useCONFIG#queryEndpointinstead.private java.lang.StringqueryEndpointUrlstatic IRIUPDATE_ENDPOINTDeprecated.useCONFIG#updateEndpointinstead.private java.lang.StringupdateEndpointUrlprivate static booleanUSE_CONFIGprivate static ValueFactoryvf
-
Constructor Summary
Constructors Constructor Description SPARQLRepositoryConfig()SPARQLRepositoryConfig(java.lang.String queryEndpointUrl)SPARQLRepositoryConfig(java.lang.String queryEndpointUrl, java.lang.String updateEndpointUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resourceexport(Model m)Export thisRepositoryImplConfigto its RDF representationjava.lang.BooleangetPassThroughEnabled()java.lang.StringgetQueryEndpointUrl()java.lang.StringgetUpdateEndpointUrl()voidparse(Model m, Resource implNode)Reads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.voidsetPassThroughEnabled(java.lang.Boolean passThroughEnabled)voidsetQueryEndpointUrl(java.lang.String url)voidsetUpdateEndpointUrl(java.lang.String url)voidvalidate()Validates this configuration.-
Methods inherited from class org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
create, getType, setType
-
-
-
-
Field Detail
-
USE_CONFIG
private static final boolean USE_CONFIG
-
vf
private static final ValueFactory vf
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
QUERY_ENDPOINT
public static final IRI QUERY_ENDPOINT
Deprecated.useCONFIG#queryEndpointinstead.Configuration setting for the SPARQL query endpoint. Required.
-
UPDATE_ENDPOINT
public static final IRI UPDATE_ENDPOINT
Deprecated.useCONFIG#updateEndpointinstead.Configuration setting for the SPARQL update endpoint. Optional.
-
PASS_THROUGH_ENABLED
public static final IRI PASS_THROUGH_ENABLED
Deprecated.useCONFIG#passThroughEnabledinstead.Configuration setting for enabling/disabling direct result pass-through. Optional.
-
queryEndpointUrl
private java.lang.String queryEndpointUrl
-
updateEndpointUrl
private java.lang.String updateEndpointUrl
-
passThroughEnabled
private java.lang.Boolean passThroughEnabled
-
-
Method Detail
-
getQueryEndpointUrl
public java.lang.String getQueryEndpointUrl()
-
setQueryEndpointUrl
public void setQueryEndpointUrl(java.lang.String url)
-
getUpdateEndpointUrl
public java.lang.String getUpdateEndpointUrl()
-
setUpdateEndpointUrl
public void setUpdateEndpointUrl(java.lang.String url)
-
validate
public void validate() throws RepositoryConfigExceptionDescription 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
public Resource export(Model m)
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
public void parse(Model m, Resource implNode) throws RepositoryConfigException
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
public java.lang.Boolean getPassThroughEnabled()
- Returns:
- the passThroughEnabled
-
setPassThroughEnabled
public void setPassThroughEnabled(java.lang.Boolean passThroughEnabled)
- Parameters:
passThroughEnabled- the passThroughEnabled to set
-
-