sparql_query
Execute SPARQL queries on Wikidata to retrieve structured data in JSON, CSV, or XML formats. Specify query, response format, and result limits for precise data extraction.
Instructions
Execute a SPARQL query against Wikidata
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | Response format | json |
limit | No | Maximum number of results (default: 100, max: 1000) | |
query | Yes | SPARQL query |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "json",
"description": "Response format",
"enum": [
"json",
"csv",
"xml"
],
"type": "string"
},
"limit": {
"default": 100,
"description": "Maximum number of results (default: 100, max: 1000)",
"maximum": 1000,
"type": "integer"
},
"query": {
"description": "SPARQL query",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}