-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear triplestore when running fedora-rebuild? #29
Comments
It does not. You have to handle that manually. |
It does not. It leaves that entirely to the rebuilder utility. There is a good reason for that: there isn't any way for the client (e.g. Fedora or the rebuilder) to tell Trippi that "This is a rebuild." or "This is just normal operation." so that in order to do a feature like this, we would have to fork Fedora 3 and Trippi. Ouch. What's your triplestore? It's usually possible to clean out a triplestore with just a SPARQL Update command or two... |
Yep, that's what I did. I'm using Fuseki (Apache Jena):
The DELETE statement could probably be made simpler (I used it originally for just clearing certain object triples, specifying the subject), and of course, the mechanics of how the SPARQL update will be executed will depend on the triplestore implementation. Might be good to call out in the documentation, though, that a fedora-rebuild of the resource index does NOT clear the triplestore beforehand, and that this will have to happen outside Fedora, prior to running fedora-rebuild. |
|
will do! |
I bet you thought I forgot. I did, but then I remembered. PR #30 |
I am working on Docker images for Fuseki and F3 (derived from ones started by @ajs6f) that includes working out how to rebuild likely by wiping out the persistent storage. No code changes needed I hope though the rebuilder no longer exits cleanly (completes but hangs without returning to the shell). |
I've repeatedly had that problem since the 3.7.x branch -- it most likely predates your changes. |
More of a question than an issue: Does trippi-sparql library clear the triplestore when running fedora-rebuild? If not, then consider this issue a feature request.
If that would require adding functionality to Fedora 3.x (which, looking at the fedora-rebuild source code, I think might be the case), I have some documentation I can contribute about what to do prior to rebuilding the triplestore through Fedora 3.x.
The text was updated successfully, but these errors were encountered: