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 toTodayon topFAR [OBJ]: ranked objects, furthest fromTodayon 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:subPropertyOfrelation.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 date - Specific 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() + 1to represent "tomorrow".
- The predefined choice is
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 filterNot later than TodayNot earlier than Today
Slope: Positive value that determines the slope of the ranking curve. The higher the slope, the closer together the resulting scores.