public class SPARQLRepositoryConfig extends AbstractRepositoryImplConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE |
static IRI |
PASS_THROUGH_ENABLED
Configuration setting for enabling/disabling direct result pass-through.
|
static IRI |
QUERY_ENDPOINT
Configuration setting for the SPARQL query endpoint.
|
static IRI |
UPDATE_ENDPOINT
Configuration setting for the SPARQL update endpoint.
|
| Constructor and Description |
|---|
SPARQLRepositoryConfig() |
SPARQLRepositoryConfig(String queryEndpointUrl) |
SPARQLRepositoryConfig(String queryEndpointUrl,
String updateEndpointUrl) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
export(Model m)
Export this
RepositoryImplConfig to its RDF representation |
Boolean |
getPassThroughEnabled() |
String |
getQueryEndpointUrl() |
String |
getUpdateEndpointUrl() |
void |
parse(Model m,
Resource implNode)
Reads the properties of this
RepositoryImplConfig from the supplied Model and sets them accordingly. |
void |
setPassThroughEnabled(Boolean passThroughEnabled) |
void |
setQueryEndpointUrl(String url) |
void |
setUpdateEndpointUrl(String url) |
void |
validate()
Validates this configuration.
|
create, getType, setTypepublic static final String NAMESPACE
public static final IRI QUERY_ENDPOINT
public static final IRI UPDATE_ENDPOINT
public static final IRI PASS_THROUGH_ENABLED
public SPARQLRepositoryConfig()
public SPARQLRepositoryConfig(String queryEndpointUrl)
public String getQueryEndpointUrl()
public void setQueryEndpointUrl(String url)
public String getUpdateEndpointUrl()
public void setUpdateEndpointUrl(String url)
public void validate()
throws RepositoryConfigException
RepositoryImplConfigRepositoryConfigException is thrown when the configuration is invalid.
The exception should contain an error message that indicates why the configuration is invalid.validate in interface RepositoryImplConfigvalidate in class AbstractRepositoryImplConfigRepositoryConfigException - If the configuration is invalid.public Resource export(Model m)
RepositoryImplConfigRepositoryImplConfig to its RDF representationexport in interface RepositoryImplConfigexport in class AbstractRepositoryImplConfigm - a Model object. After successful completion of this method this Model will contain the RDF
representation of this RepositoryImplConfig.Resource that identifies this RepositoryImplConfig in the Model.public void parse(Model m, Resource implNode) throws RepositoryConfigException
RepositoryImplConfigRepositoryImplConfig from the supplied Model and sets them accordingly.parse in interface RepositoryImplConfigparse in class AbstractRepositoryImplConfigm - a Model containing repository configuration data.implNode - the subject Resource that identifies the RepositoryImplConfig in the Model.RepositoryConfigException - if the configuration data could not be read from the supplied Model.public Boolean getPassThroughEnabled()
public void setPassThroughEnabled(Boolean passThroughEnabled)
passThroughEnabled - the passThroughEnabled to setCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.