Skip to main content

getDatetimeRuleProcessorSPARQL()

getDatetimeRuleProcessorSPARQL(apiFns: RQBDateTimeLibraryAPI): RuleProcessor

Defined in: getDatetimeRuleProcessorSPARQL.ts:27

Generates a rule processor with date/time features for use by formatQuery with the "sparql" format.

Supports:

  • Standard comparison operators (=, !=, <, >, <=, >=)
  • Range operators (between, notBetween, in, notIn)
  • Duration math via custom operators: olderThanDuration and withinDuration (e.g., value "P30D"NOW() - ?field > "P30D"^^xsd:duration)

Parameters

ParameterType
apiFnsRQBDateTimeLibraryAPI

Returns

RuleProcessor


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.