Skip to content

Allow materialized views to be created from Qleverfile via CLI #315

Description

@azaroth42

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions