287
Semantic Technologies for IoT
Table 13.10 shows the built-in functions which are defined for RDF-style lists.
TABLE 13.10
Built-Ins for Lists
Built-Ins
Syntax and Comment
swrlb:listConcat
swrlb:listConcat(?x,?y,?z)concatenation of argument2(list type) through the last
- argument(list type) and return the result in argument1
swrlb:listIntersection
swrlb:listIntersection(?x,?y,?z)
- argument1 is a list that consists of elements found in both argument2 and argument3
swrlb:listSubtraction
swrlb:listSubtraction(?x,?y,?z)
- argument1 is a list that consists of the elements which are in argument2 that are not
members of argument3
(Continued)
TABLE 13.9 (Continued)
Built-in Functions for Date, Time, and Duration
Built-Ins
Comment
swrlb:subtractYearMonthDurations
- argument1 is the difference of argument2(in
yearMonthDuration) and argument3(in yearMonthDuration)
swrlb:multiplyYearMonthDuration
- argument1 is the product of argument2(in yearMonthDuration)
multiplied by argument3
swrlb:divideYearMonthDurations
- argument1 is the remainder of argument2(in
yearMonthDuration) divided by the third argument
swrlb:addDayTimeDurations
- argument1 is the sum of argument2(in dayTimeDuration) and
through the last argument(in dayTimeDuration)
swrlb:subtractDayTimeDurations
- argument1 is the difference of argument2(in dayTimeDuration)
and argument3(in dayTimeDuration)
swrlb:multiplyDayTimeDurations
- argument1 is the product of argument2( in dayTimeDuration)
multiplied by argument3
swrlb:divideDayTimeDuration
- argument1 is the remainder of argument2(in dayTimeDuration)
divided by argument3( in dayTimeDuration)
swrlb:subtractDates
- argument1 is the difference of argument2(in xsd:date) and
argument3(in xsd:date)
swrlb:subtractTimes
- argument1 is the difference of argument2(in xsd:time) and
argument3 (in xsd:time)
swrlb:addYearMonthDurationToDateTime
- argument1 is the sum of argument2(in xsd:dateTime) and
argument3(in yearMonthDuration)
swrlb:addDayTimeDurationToDateTime
- argument1 is the sum of argument2(in xsd:dateTime) and
argument3(in dayTimeDuration)
swrlb:addYearMonthDurationToDate
- argument1 is the sum of argument2 (in xsd:date) and
argument3(in yearMonthDuration)
swrlb:addDayTimeDurationToDate
- argument1 is the sum of argument2 (in xsd:date) and
argument3 (in dayTimeDuration)
swrlb:subtractYearMonthDurationFromDate
- argument1 is the difference of argument2(n xsd:date) and
argument3(in yearMonthDuration)
swrlb:subtractDayTimeDurationFromDate
- argument1 is the difference of argument2(in xsd:date) and
argument3(in yearMonthDuration)
swrlb:addDayTimeDurationToTime
- argument1 is the sum of argument2(in xsd:time) and
argument3(in dayTimeDuration)
swrlb:subtractDayTimeDurationFromTime
- argument1 is the difference of argument2(in xsd:time) and
argument3(in dayTimeDuration)
Précédent

- 311/358

Suivant