datadotworld

datadotworld / query / 0.2.0

README.md

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

​BEFORE YOU RUN THIS ALGORITHM you must configure your algorithmia account for access to your data.world account - see https://algorithmia.com/algorithms/datadotworld/configure

This expects an object as input with several fields:

  • dataset_key the identifier for the data.world 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