Class FedXRepositoryConfig
java.lang.Object
org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
org.eclipse.rdf4j.federated.repository.FedXRepositoryConfig
- All Implemented Interfaces:
RepositoryImplConfig
A
RepositoryImplConfig
to configure FedX for the use in the RDF4J workbench.
Federation member repositories (e.g. NativeStore or SPARQL endpoints) can be managed in the RDF4J Workbench, and referenced as members in the federation. Alternatively, FedX can manage repositories, please refer to the documentation for data configuration.
Example configuration file:
# RDF4J configuration template for a FedX Repository @prefix rdfs: invalid input: '<'http://www.w3.org/2000/01/rdf-schema#>. @prefix rep: invalid input: '<'http://www.openrdf.org/config/repository#>. @prefix fedx: invalid input: '<'http://www.fluidops.com/config/fedx#>. [] a rep:Repository ; rep:repositoryImpl [ rep:repositoryType "fedx:FedXRepository" ; fedx:member [ fedx:store "ResolvableRepository" ; fedx:repositoryName "endpoint1" ], [ fedx:store "ResolvableRepository" ; fedx:repositoryName "endpoint2" ] # optionally define data config #fedx:fedxConfig "fedxConfig.prop" ; fedx:dataConfig "dataConfig.ttl" ; ]; rep:repositoryID "fedx" ; rdfs:label "FedX Federation" .
Note that the location of the fedx config and the data config is relative to the repository's data dir (as managed by the RDF4J repository manager)
- Author:
- Andreas Schwarte
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExport thisRepositoryImplConfig
to its RDF representationvoid
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.void
setConfig
(FedXConfig config) void
setDataConfig
(String dataConfig) void
setMembers
(Model members) void
validate()
Validates this configuration.Methods inherited from class org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
create, getType, setType
-
Field Details
-
NAMESPACE
FedX schema namespace (http://rdf4j.org/config/federation#).- See Also:
-
DATA_CONFIG
IRI of the property pointing to the FedX data config -
MEMBER
IRI of the property pointing to a federation member node
-
-
Constructor Details
-
FedXRepositoryConfig
public FedXRepositoryConfig()
-
-
Method Details
-
getDataConfig
-
setDataConfig
-
getMembers
-
setMembers
-
getConfig
-
setConfig
-
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.
-
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.
-
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.
-