A collection of SPIN functions that can be used to query, traverse and aggregate tabular data. 0.5.0 A pair of SPARQL functions that can be used to aggregate values of a SPR table. Instances of this class can be passed into the various aggregateXY functions. Aggregator Metaclass of classes that can represent tabular data. The classes that have this metaclass as their type need to specify SPARQL/SPIN functions for various look up tasks. Table class cell function start value result function The URI of the SPIN Function that shall be called at the end of the steps. colCount function rowCount function The sixth argument of a function call. arg6 The URI of the SPIN Function that shall be called at each step. step function colName function Avg 0 true Magic SPR properties Iterates over all rows of a given table (left side, ?arg1) at column ?arg2 and binds the variable on the right with the cell values. The second variable on the right may be bound to the row index as well. The row index, starting at zero. row indices Iterates over all rows of a given table (left side, ?arg1) and binds the variable on the right with the index of the rows. 1 lastIndex ?0 index 0 ?1 The spr:Table to get the row indexes of. Table Base class of table classes. Must define the URIs of low-level SPARQL functions that are used by SPR to access individual table cells and table meta data. row value The spr:Table to get the values for. col cells result stepFunction startValue resultFunction colCount stepped 0 1 The spr:Table to iterate over. Aggregator functions true Base class of various SPR related functions. SPR Functions true The aggregator to perform. Applies the spr:Aggregator ?arg1 to all columns of row ?arg3 of spr:Table ?arg2. The row index. aggregate row 0 Sum The total number of steps. true Aggregator result functions The end result after stepping through the values. The column index. Applies the spr:Aggregator ?arg1 to all rows of column ?arg3 of spr:Table ?arg2. stepFunction startValue resultFunction rowCount stepped 0 1 result aggregate row var name true The table to get the column name for. Col name functions The column index, starting at zero. result tableClass function The old value to start with, e.g. 0 for SUM. The current cell value that shall be aggregated on top of ?arg1. Aggregator step functions true The row index, starting at zero. Iterates over all colums of a given table (left side, ?arg1) at row ?arg2 and binds the variable on the right with the cell values. The second variable on the right may be bound to the column index as well. value col Iterates over all columns of a given table (left side, ?arg1) and binds the variable on the right with the index of the columns. row indices index lastIndex 1 ?0 0 ?1 The spr:Table to get the row indexes of. row cells The spr:Table to get the values for. 1 Product The step function. value Value at {?arg2}, {?arg3} = {?1} music arg6 next 1 result The current step index. The row to iterate over. The spr:Table to iterate over. Visits a given column ?arg2 of Table ?arg1 with a given spr:AggregatorStepFunction (?arg5) and then calls itself recursively until the last value index (?arg4) has been reached. ?arg6 is the result of the previous step. visit row The current aggregate value. The max number of steps to make. The step function. The max number of steps to make. The current step index. value music Value at {?arg2}, {?arg3} = {?1} next arg6 1 1 result Visits a given row ?arg2 of Table ?arg1 with a given spr:AggregatorStepFunction (?arg5) and then calls itself recursively until the last value index (?arg4) has been reached. ?arg6 is the result of the previous step. The current aggregate value. The spr:Table to iterate over. visit row The row to iterate over. The spr:Table to get the cell value of. function The table to get the number of columns of. Col count functions true result function result result The column index, starting at 0. The row index, starting at 0. tableClass Row count functions The spr:Table to get the number of rows for. true row count function Cell functions true tableClass col count tableClass cell Gets the cell value of a given Table (?arg1) at a given row (?arg2) and column (?arg3).