ldh-AddConstruct
Creates and posts a SPARQL CONSTRUCT query resource to a LinkedDataHub document so you can execute or reference it in charts, views, and data processing.
Instructions
Creates a SPARQL CONSTRUCT query resource in a document.
This tool creates a SPARQL CONSTRUCT query that can be executed and referenced within LinkedDataHub.
The query can be used for charts, views, or other data processing operations.
This tool:
- Creates a sp:Construct resource with the SPARQL query text
- Posts the new CONSTRUCT query resource to the target document
- Supports optional title, description, fragment identifier, and service URI
Note: the service URI is _not_ the SPARQL endpoint URL but an instance of `sd:Service` that describes the SPARQL service capabilities (and contains the endpoint URL).
The service URI can be used to reference the SPARQL service in other operations.
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": {
"url": "<url>",
"query": "<query>",
"title": "<title>"
},
"name": "ldh-AddConstruct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URI of the document to write the CONSTRUCT query to. | |
| query | Yes | The SPARQL CONSTRUCT query string. | |
| title | Yes | Title of the CONSTRUCT query. | |
| service | No | Optional URI of the SPARQL service/endpoint specific to this query. Note: the service URI is _not_ the SPARQL endpoint URL but an instance of `sd:Service` that describes the SPARQL service capabilities (and contains the endpoint URL). | |
| fragment | No | Optional fragment identifier for the query URI (e.g., 'my-query' creates #my-query). | |
| description | No | Optional description of the CONSTRUCT query. |