Rank by Recency¶
Description¶
Rank objects by the value of a date property compared to a given value that represents “Today”.
Input¶
SOURCE [OBJ]
: the list of objects to rank
Output¶
CLOSE [OBJ]
: ranked objects, closest toToday
on topFAR [OBJ]
: ranked objects, furthest fromToday
on top
Parameters¶
Property
: the date property to check. Use*
to consider all properties.Use sub-properties
: when set totrue
, the values of all sub properties are also included. Sub-properties can be defined in the data with therdfs:subPropertyOf
relation.Today
: the expression to be used to represent “Today”, the date to use as a reference for “recency”.The predefined choice is
curdate()
, an internal function that returns the current dateSpecific dates can also be used, as long as they are in the format
date("YYYY-MM-DD")
.Simple date arithmetic can be used. For example,
curdate() + 1
to represent “tomorrow”.
Unit
: What to compare - the full dates, or only one a specific part of dates (Year, Month, Day, ..)Hard filter
: optional hard filters to apply before rankingNo filter
Not later than Today
Not earlier than Today
Slope
: positive value determining the slope of the ranking curve. The higher the slope, the closer together the resulting scores.