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: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix fedx: <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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExport thisRepositoryImplConfigto its RDF representationvoidReads the properties of thisRepositoryImplConfigfrom the supplied Model and sets them accordingly.voidsetConfig(FedXConfig config) voidsetDataConfig(String dataConfig) voidsetMembers(Model members) voidvalidate()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: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.
-
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.
-
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.
-