【问题标题】:How to represent conditional sentences in OWL ontology?如何在OWL本体中表示条件句?
【发布时间】:2017-02-16 23:25:55
【问题描述】:

例如,

如果天气允许,我会去远足。

类: 天气 徒步旅行

个人: 我

属性: 允许 去

【问题讨论】:

    标签: owl ontology


    【解决方案1】:

    您可以说,如果您所在的时间 t 天气条件晴朗,那么您将同时参加一次徒步旅行活动。您可能拥有的数据类型示例如下:

    ex:2017-02-23  a  wc:WeatherCondition;
      t:time  "2017-02-23"^^xsd:date;
      p:place  ex:theAlps;
      wc:cloudiness  wc:sunny .
    ex:i  p:located  [
      a  p:LocationAtTime;
      p:location  ex:theAlpes;
      t:time  "2017-02-23"^^xsd:date .
    ] .
    ex:hiking2017-02-23  a  ae:HikingEvent;
      t:time  "2017-02-23"^^xsd:date;
      ae:participant  ex:i .
    

    您想要这样的规则:

    ?wc  a  wc:WeatherCondition;
      t:time  ?t;
      p:place  ?p;
      wc:cloudiness  wc:sunny .
    ex:i  p:located  [
      a  p:LocationAtTime;
      p:location  ?p;
      t:time  ?t .
    ] .
    

    暗示:

    []  a  ae:HikingEvent;
      p:location  ?p;
      t:time  ?t .
    

    我认为这在 OWL 中是不可行的。但是,您可以为此使用规则引擎。尽管如此,我不确定这种数据高度上下文和动态的用例是否最好被语义网络标准覆盖。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-07
      • 1970-01-01
      • 2014-12-03
      • 2011-04-19
      • 2016-04-29
      • 2023-02-14
      • 2014-05-03
      相关资源
      最近更新 更多