八、内置程序
简介
SWRL 的内置集是由模块化方法驱动的,该方法将允许在(分层)分类法中的未来版本中进一步扩展。同时,它将为各种实现提供灵活性,以选择每个版本的 SWRL 支持的模块。SWRL 的内置方法还基于对XQuery和XPath中现有内置插件的重用。通过为语义 Web 语言、Web 服务和 Web 应用程序提供可扩展的、模块化的内置基础结构,这个内置系统还应该有助于 SWRL 与其他 Web 形式的互操作。
SWRL 内置函数用于内置原子。
Swrl 内置函数使用http://www.w3.org/2003/11/swrlb 命名空间标识 。
(PS:上面那个连接用不了!)
8.1 Built-Ins for Comparisons用于比较的内置函数
1.如果第一个参数和第二个参数相同,则满足。
swrlb:equal (from XQuery op:numeric-equal, op:compare, op:boolean-equal op:yearMonthDuration-equal, op:dayTimeDuration-equal, op:dateTime-equal, op:date-equal, op:time-equal, op:gYearMonth-equal, op:gYear-equal, op:gMonthDay-equal, op:gMonth-equal, op:gDay-equal, op:anyURI-equal)
2.swrlb:equal的否定。
swrlb:notEqual (from swrlb:equal)
3.如果第一个参数和第二个参数都在某个已实现的类型中并且第一个参数小于第二个参数,则满足,如果特定于类型的排序(部分或全部),如果为该类型定义了一个。无类型文字类型的排序函数是定义为字符串排序的偏序,当语言标签相同(或两者都缺失)并且在其他情况下无法比较时。
swrlb:lessThan (from XQuery op:numeric-less-than, op:compare, op:yearMonthDuration-less-than, op:dayTimeDuration-less-than, op:dateTime-less-than, op:date-less-than, op:time-less-than)
4.要么小于,如上,要么等于,如上。
swrlb:lessThanOrEqual (from swrlb:lessThan, swrlb:equal)
5.类似于 swrlb:lessThan。
swrlb:greaterThan (from XQuery op:numeric-greater-than, op:compare, op:yearMonthDuration-greater-than, op:dayTimeDuration-greater-than, op:dateTime-greater-than, op:date-greater-than, op:time-greater-than)
6.类似于 swrlb:lessThanOrEqual。
swrlb:greaterThanOrEqual (from swrlb:greaterThan, swrlb:equal)
(PS:这个不知道SWRL中可以用不???先记一下把!)