Query External SPARQL Endpoint
query_external_endpointExecute a SPARQL query on any public HTTPS SPARQL endpoint to retrieve structured data from external sources.
Instructions
Execute a SPARQL query against any public HTTPS SPARQL endpoint.
Args:
endpointUrl: URL of the target SPARQL endpoint (must be HTTPS)
query: SPARQL query to execute
injectPrefixes: Whether to inject schema.gov.it standard prefixes (default: false)
Returns:
Compressed SPARQL results in the same format as internal tools
Security: Only HTTPS endpoints are allowed. Requests timeout after 15 seconds.
Examples:
Query DBpedia: endpointUrl="https://dbpedia.org/sparql"
Query EU Publications Office: endpointUrl="https://publications.europa.eu/webapi/rdf/sparql"
When to use this vs X:
vs
query_sparql: use this only for an external HTTPS endpoint; usequery_sparqlfor the built-inschema.gov.itendpointvs
explore_external_endpoint: use this when you already know the query you want to run; useexplore_external_endpointfirst if you just need a structural overview
Do not use this if:
you want to query
schema.gov.ititself → usequery_sparqlyou want a curated shortlist of endpoints → use
recommend_external_endpointsyou only need endpoints already linked in the catalog metadata → use
list_linked_endpoints
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SPARQL query to execute | |
| endpointUrl | Yes | URL of the target SPARQL endpoint (HTTPS required) | |
| injectPrefixes | No | Whether to inject schema.gov.it standard prefixes (rdf, rdfs, owl, skos, dct...) |