ldh-AddSelect
Creates a SPARQL SELECT query resource in a LinkedDataHub document so you can execute and reference it in charts, views, or data processing operations.
Instructions
Creates a SPARQL SELECT query resource in a document.
This tool creates a SPARQL SELECT 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:Select resource with the SPARQL query text
- Posts the new SELECT 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-AddSelect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URI of the document to write the SELECT query to. | |
| query | Yes | The SPARQL SELECT query string. | |
| title | Yes | Title of the SELECT 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 SELECT query. |