Per the documentation there are two ways to write a materialized view:
# During indexing if specified in Qleverfile:
qlever index
# After indexing while the server is running:
qlever materialized-view $VIEW_NAME "SELECT ... { ... }"
The combination of the two would also be very useful, when you define the SPARQL in Qleverfile, but then want to load (or delete and reload) the view from the CLI against a running server. Especially during development of the view. I suggest:
# After indexing while the server is running, and the query is specified in Qleverfile:
qlever materialized-view $VIEW_NAME
(Happy to have a go at the above, if it's useful)
Also, is there a correct way to delete a view? At the moment I just delete $DB_NAME.view.$VIEW_NAME.* after stopping the server.
Per the documentation there are two ways to write a materialized view:
The combination of the two would also be very useful, when you define the SPARQL in Qleverfile, but then want to load (or delete and reload) the view from the CLI against a running server. Especially during development of the view. I suggest:
(Happy to have a go at the above, if it's useful)
Also, is there a correct way to delete a view? At the moment I just delete $DB_NAME.view.$VIEW_NAME.* after stopping the server.