sparql_get_prefixes
Retrieve common SPARQL prefixes for an endpoint, including standard and endpoint-specific ones, to simplify query writing.
Instructions
Get commonly used prefixes for a SPARQL endpoint.
Returns a combination of well-known standard prefixes (rdf, rdfs, owl, xsd, etc.) and any endpoint-specific prefixes discovered via the data.
Args: params: Parameters including endpoint URL, timeout, and optional headers.
Returns: Formatted list of prefix declarations for use in SPARQL queries.
Examples: >>> sparql_get_prefixes(SparqlGetPrefixesInput( ... endpoint="https://query.wikidata.org/sparql" ... )) "PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#\n..."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |