Query Uploaded Store
query_uploaded_storeRun SPARQL SELECT queries against a temporary ontology store uploaded via HTTP. Use the upload ID to retrieve specific data from the store.
Instructions
Execute a SPARQL SELECT query against a temporary ontology store created via HTTP upload.
Workflow (HTTP mode only):
Call
get_upload_instructionswith the local file path → get the curl commandExecute the curl command via Bash tool (file bytes go directly to the server, no AI token consumption)
Parse the
idfrom the curl responseUse
idhere to run SPARQL queries, OR pass it asupload_idtoinspect_local_ontology,query_local_ontology,compare_local_with_remote
When to use this workflow:
The MCP server is remote, containerized, or otherwise cannot read the user's local filesystem.
A previous
file_pathattempt failed because the path only exists on the client machine.You want to send raw file bytes directly without consuming model tokens.
When to use this vs X:
prefer
query_local_ontologywithupload_idfor the main MCP workflowuse this only if you already have the upload store id and explicitly want to query that temporary store directly
Deprecated direction: this is an upload-specific shortcut; for new agent flows prefer query_local_ontology with upload_id
Supported Content-Types for upload: text/turtle, application/rdf+xml, application/n-triples, application/ld+json, application/graphol+xml
Notes:
Uploaded stores are kept for 1 hour then evicted
Standard prefixes (rdf/rdfs/owl/skos/dct/xsd/dcat/foaf/clv/cpv/l0/sm) are auto-injected
The same store is also queryable directly via
GET /sparql/<id>?query=...
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Upload UUID returned by POST /upload | |
| query | Yes | SPARQL SELECT query to execute against the uploaded store |