datadotworld / query / 0.2.0

You can use this algorithm to execute a SQL or SPARQL query against a dataset

​BEFORE YOU RUN THIS ALGORITHM you must configure your algorithmia account for access to your account - see

This expects an object as input with several fields:

  • dataset_key the identifier for the dataset against which to run the query
  • query the query to execute
  • query_type the type of the query "sql" or "sparql"
  • parameters parameters to the query

And will return as output an object representing the table of results:

  • header an array containing the column names in the order they should be presented, left to right
  • data an array of objects, where each object's keys are the column headers and the values are the cell values