⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo.rules

📁 Jsp写的一个语义检索的Demo
💻 RULES
字号:
# Example rule set showing how to implement just symmetric and
# transitive properties.


###############################################################              
# This version defines a specific property to be transitive
# and symmetric.
# It computes the property closure in forward mode - so everything
# is caculated when the graph is prepared - whether it is needed or not

[transitiveRule: (?A demo:p ?B), (?B demo:p ?C) -> (?A demo:p ?C) ]
              
[symmetricRule: (?Y demo:p ?X) -> (?X demo:p ?Y) ]

###############################################################              
# This approach allows a property to be declared symmetric transitive
# and computes the property closure in forward mode - so everything
# is caculated when the graph is prepared - whether it is needed or not

#[transitiveRule: (?P rdf:type demo:TransProp) 
#              (?A ?P ?B), (?B ?P ?C) -> (?A ?P ?C) ]
#              
#[symmetricRule: (?P rdf:type demo:TransProp) 
#              (?Y ?P ?X) -> (?X ?P ?Y) ]
                            
###############################################################              
# This appoach allows a property to be declared symmetric transitive
# and uses the hybrid rules to minimise overheads and only caculate
# the transitive closure on demand

#-> tableAll().
#
#[rule1: (?P rdf:type demo:TransProp) ->
#			[ (?X ?P ?Y) <- (?Y ?P ?X) ]
#			[ (?A ?P ?C) <- (?A ?P ?B), (?B ?P ?C) ] 
#]			

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -