Search documentation

Type a word or phrase to search documentation.

    Reference

    CLI: update

    Use legra graph update to change data with SPARQL Update. You need write access to the selected workspace and branch.

    legra graph update <statement-or-file>
    

    Insert a fact into a named graph:

    legra graph update 'INSERT DATA { GRAPH <https://example.org/people> { <https://example.org/alice> <https://example.org/name> "Alice" . } }' --branch experiment
    

    Delete that exact fact:

    legra graph update 'DELETE DATA { GRAPH <https://example.org/people> { <https://example.org/alice> <https://example.org/name> "Alice" . } }' --branch experiment
    

    For a longer update, save the statement to a file:

    legra graph update changes.ru --workspace research --branch experiment
    

    Use a branch to review changes before applying them to shared data. Check syntax with Validate.