Directory Sparql

Directory Sparql Query

Represents a sparql endpoint for the directory

Service URI

http://api.talis.com/1/dir/sparql

GET and POST

Returns XML output according to the Sparql query issued. Refer to the directory data model documentation for an explanation of the RDF used by the directory.

Required Parameters

  • query – the Sparql query to perform. Either this query_uri must be supplied.
  • query_uri – specify a url from which the query can be retrieved. Either this query must be supplied.
  • api_key – the user’s API key

Optional Parameters

  • xsl – the URL of an XSL stylesheet to apply to the output
  • output – specify an output format for the results. By default, SELECT and ASK queries will return the results in the SPARQL Query Results XML Format. CONSTRUCT and DESCRIBE queries will return an RDF graph in the RDF/XML syntax. Other supported options:
    • xml – applies to SELECT queries only, this returns output in the same SPARQL Query Results XML Format as the default option, but overrides the mimetype to text/plain (useful for debugging)
    • json – applies to SELECT queries only, return the results in JSON according to the draft specification Serializing SPARQL Query Results in JSON
  • callback – if JSON output has been specified, supplying a function name in the callback parameter wraps the output text in parentheses and a function of that name.