Search documentation

Type a word or phrase to search documentation.

    Reference

    CLI: upload

    Import RDF from a local file or directory into a workspace.

    legra graph upload [path] [--graph <iri>] [--graph-base <iri>] [--target-branch <branch>] [--dry-run]
    

    The path defaults to the current directory. Use --graph to select the named graph for a single triple-format file:

    legra graph upload people.ttl --graph https://example.org/people --target-branch main
    

    For a directory, --graph-base sets the prefix for graph names derived from file paths:

    legra graph upload ./data/ --graph-base https://example.org/imports/ --target-branch review
    

    --target-branch selects the branch that receives the completed upload; specify it explicitly when working outside main. --staging-branch selects an existing branch for preparing an upload before it reaches that destination.

    Preview which files will be processed without writing data:

    legra graph upload ./data/ --dry-run
    

    Supported RDF formats and verification queries are covered in Loading Data. --workspace and connection options follow Command context.