load_rdf_file
Load RDF files from a sandbox into a Jena dataset without routing bulk data through the conversation. Supports Turtle, N-Triples, TriG, N-Quads, JSON-LD, and RDF/XML.
Instructions
Load an RDF file from the sandbox into a dataset.
Accepts Turtle, N-Triples, TriG, N-Quads, JSON-LD and RDF/XML; the media type comes from the extension. TriG and N-Quads carry their own graph names, so do not pass a target graph with those -- the file decides.
This exists so that bulk RDF never has to pass through the conversation. A 44 kB ontology rewritten as INSERT DATA costs roughly 11 000 tokens; here it costs none.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "load_rdf_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path in the sandbox. | |
| mode | No | "merge" (default, adds) or "replace". | |
| graph | No | Target graph IRI. Omit for the default graph, or for quad formats. | |
| dataset | No | Dataset name. Defaults to the configured one. |