Skip to content

How to change the URL of a SPARQL repository "on the fly"? #3319

Answered by abrokenjester
reckart asked this question in Q&A
Discussion options

You must be logged in to vote

RepositoryManager#addRepositoryConfig can be used to create a new config or updating an existing one. However, this won't change the configuration of any existing initialized Repository object that you already have for that endpoint - you'll have to shut that down and re-initialize.

It's perhaps worth pointing out that from the point of view of RDF4J, the endpoint url is the unique identifier of a SPARQLRepository. A change in that url conceptually means you are accesing a different endpoint, therefore a different Repository.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abrokenjester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants