upload_file_to_graph
Upload RDF files to knowledge graphs with format validation and progress tracking. Supports Turtle, RDF/XML, N-Triples, and JSON-LD formats with configurable validation levels.
Instructions
Upload RDF file to graph with validation and progress tracking.
Args:
graph_id: Target graph ID
file_path: Path to the RDF file to upload (Turtle, RDF/XML, N-Triples, JSON-LD)
rdf_format: Optional RDF format override (turtle, rdfxml, ntriples, jsonld)
validation_level: Validation level (strict, lenient, none)
namespace: Optional namespace for the uploaded data
replace_existing: Whether to replace existing data (default: append)
ctx: MCP context for user authentication
Returns:
JSON response with upload job details and progress tracking URL
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_id | Yes | ||
| file_path | Yes | ||
| rdf_format | No | ||
| validation_level | No | strict | |
| namespace | No | ||
| replace_existing | No |
Input Schema (JSON Schema)
{
"properties": {
"file_path": {
"title": "File Path",
"type": "string"
},
"graph_id": {
"title": "Graph Id",
"type": "string"
},
"namespace": {
"default": "",
"title": "Namespace",
"type": "string"
},
"rdf_format": {
"default": "",
"title": "Rdf Format",
"type": "string"
},
"replace_existing": {
"default": false,
"title": "Replace Existing",
"type": "boolean"
},
"validation_level": {
"default": "strict",
"title": "Validation Level",
"type": "string"
}
},
"required": [
"graph_id",
"file_path"
],
"type": "object"
}