write_graph
Replace or merge RDF data in a named graph to keep versioned schemas in sync. Supply inline content or a file, choosing replace to overwrite or merge to append.
Instructions
Replace or extend one named graph with RDF you supply.
mode "replace" (the default) makes the graph exactly what you send: whatever was in it is gone. mode "merge" adds to what is there.
Replacing per graph is how a versioned schema is kept in sync -- one graph per module, so that updating one cannot wipe another.
Give the RDF either inline (content) or from a file (file). Prefer the file for anything beyond a handful of triples: it goes straight to the server instead of through the conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path in the sandbox. Use this or content, not both. | |
| mode | No | "replace" (PUT, default) or "merge" (POST). | |
| graph | No | Graph IRI. Omit to target the default graph. | |
| content | No | RDF as text. Use this or file, not both. | |
| dataset | No | Dataset name. Defaults to the configured one. | |
| content_type | No | Media type. Inferred from the extension when a file is used. |