以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  [求助]哪位大神知道如何实现OWL-S中,compositeprocess通过if-then-else控制结构对atomicprocess的调用?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=126049)


--  作者:sdutlcy
--  发布时间:2/1/2013 12:57:00 AM

--  [求助]哪位大神知道如何实现OWL-S中,compositeprocess通过if-then-else控制结构对atomicprocess的调用?

哪位大神知道如何实现OWL-S中,compositeprocess通过if-then-else控制结构对atomicprocess的调用?最好能写个简单的小例子,尤其是如何对变量if-condition的判断的问题。

感谢!!!!!!


--  作者:sdutlcy
--  发布时间:2/1/2013 9:09:00 AM

--  
我看到了这样的一个owl片段,可是看不懂里面的ifcondition是怎么来处理的,哪位高人不吝赐教,指点一下?
                  <process:If-Then-Else>
                  <process:ifCondition>
                    <expr:SWRL-Condition rdf:ID="FullCongoBuyBookInStock">
                      <expr:expressionObject>
                        <swrl:AtomList>
                          <rdf:first>
                            <swrl:DatavaluedPropertyAtom>
                              <swrl:propertyPredicate rdf:resource="&profileHierarchy;#title"/>
                              <swrl:argument1>
                                <swrl:Variable rdf:ID="aBook"/>
                              </swrl:argument1>
                              <swrl:argument2 rdf:resource="#FullCongoBuyBookName"/>
                            </swrl:DatavaluedPropertyAtom>
                          </rdf:first>
                          <rdf:rest>
                            <swrl:AtomList>
                              <rdf:first>
                                <swrl:ClassAtom>
                                  <swrl:classPredicate rdf:resource="#InStockBook"/>
                                  <swrl:argument1 rdf:resource="#aBook"/>
                                </swrl:ClassAtom>
                              </rdf:first>
                              <rdf:rest rdf:resource="&rdf;#nil"/>
                            </swrl:AtomList>
                          </rdf:rest>
                        </swrl:AtomList>
                      </expr:expressionObject>
                    </expr:SWRL-Condition>
                  </process:ifCondition>
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms