SWRL简介

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

</owlx:DataPropertyValue>
<owlx:DataPropertyValue owlx:property="longitude">
<owlx:DataValue>-117.5336</owlx:DataValue>
</owlx:DataPropertyValue>
</owlx:Individual>
</owlx:ObjectPropertyValue>
</owlx:Individual>
<owlx:Individual owlx:name="layer">
<owlx:type owlx:name="&map;DrawingLayer" />
</owlx:Individual>
<owlx:Individual owlx:name="map">
<owlx:type owlx:name="&map;Map" />
<owlx:DataPropertyValue owlx:property="&map;name">
<owlx:DataValue owlx:datatype="&xsd;string">Airports</owlx:DataValue> </owlx:DataPropertyValue>
<owlx:ObjectPropertyValue owlx:property="map:layer">
<owlx:Individual owlx:name="layer"/>
</owlx:ObjectPropertyValue>
</owlx:Individual>
<!--
A map:Location has latitude and longitude, both of which are doubles:
-->
<owlx:SubClassOf>
<owlx:sub>
<owlx:class="&map;Location" />
</owlx:sub>
<owlx:super>
<owlx:IntersectionOf>
<owlx:ObjectRestriction owlx:property="&map;latitude">
<owlx:someValuesFrom owlx:datatype="&xsd;double"/>
</owlx:ObjectRestriction>
<owlx:ObjectRestriction owlx:property="&map;latitude">
<owlx:allValuesFrom owlx:datatype="&xsd;double"/>
</owlx:ObjectRestriction>
<owlx:ObjectRestriction owlx:property="&map;longitude">
<owlx:someValuesFrom owlx:datatype="&xsd;double"/>
</owlx:ObjectRestriction>
<owlx:ObjectRestriction owlx:property="&map;longitude">
<owlx:allValuesFrom owlx:datatype="&xsd;double"/>
</owlx:ObjectRestriction>
</owlx:IntersectionOf>
</owlx:SubClassOf>
<!--
If a map:Location is the sameLocation as another location,
then it has the same values for latitude and longitude.
-->
<ruleml:imp>
<ruleml:_body>
<swrlx:classAtom>
<owlx:Class owlx:name="&map;Location" />
<ruleml:var>maploc</ruleml:var>
</swrlx:classAtom>
<swrlx:individualPropertyAtom swrlx:property="sameLocation">
<ruleml:var>loc</ruleml:var>
<ruleml:var>maploc</ruleml:var>
</swrlx:individualPropertyAtom>
<swrlx:datavaluedPropertyAtom swrlx:property="latitude">
<ruleml:var>loc</ruleml:var>
<ruleml:var>lat</ruleml:var>
</swrlx:datavaluedPropertyAtom>
<swrlx:datavaluedPropertyAtom swrlx:property="longitude">
<ruleml:var>loc</ruleml:var>
<ruleml:var>lon</ruleml:var>
</swrlx:datavaluedPropertyAtom>
</ruleml:_body>
<ruleml:_head>
<swrlx:datavaluedPropertyAtom swrlx:property="&map;latitude">
<ruleml:var>maploc</ruleml:var>
<ruleml:var>lat</ruleml:var>
</swrlx:datavaluedPropertyAtom>
<swrlx:datavaluedPropertyAtom swrlx:property="&map;longitude">
<ruleml:var>maploc</ruleml:var>
<ruleml:var>lon</ruleml:var>
</swrlx:datavaluedPropertyAtom>
</ruleml:_head>
</ruleml:imp>
<!--
Wherever an Airport is located, there is some map:Location
that is the sameLocation as the Airport's location, and that
is the location of a map Point that is an object of the
map:DrawingLayer "layer":
-->
<owlx:ObjectProperty owlx:name="&map;location" owlx:inverseOf="&map;isLocationOf" />
<owlx:ObjectProperty owlx:name="&map;object" owlx:inverseOf="&map;isObjectOf" /> <ruleml:imp>
<ruleml:_body>
<swrlx:classAtom>
<owlx:Class owlx:name="&airport-ont;Airport" />
<ruleml:var>airport</ruleml:var>
</swrlx:classAtom>
<swrlx:individualPropertyAtom swrlx:property="location">
<ruleml:var>airport</ruleml:var>
<ruleml:var>loc</ruleml:var>
</swrlx:individualPropertyAtom>
<swrlx:datavaluedPropertyAtom swrlx:property="latitude">
<ruleml:var>loc</ruleml:var>
<ruleml:var>lat</ruleml:var>
</swrlx:datavaluedPropertyAtom>
<swrlx:datavaluedPropertyAtom swrlx:property="longitude">
<ruleml:var>loc</ruleml:var>
<ruleml:var>lon</ruleml:var>
</swrlx:datavaluedPropertyAtom>
</ruleml:_body>
<ruleml:_head>
<swrlx:classAtom>
<owlx:ObjectRestriction owlx:property="sameLocation">
<owlx:someValuesFrom>
<owlx:IntersectionOf>
<owlx:class="&map;Location" />
<owlx:ObjectRestriction owlx:property="&map;isLocationOf">
<owlx:someValuesFrom>
<owlx:IntersectionOf>
<owlx:class="&map;Point" />
<owlx:ObjectRestriction owlx:property="&map;isObjectOf">
<owlx:someValuesFrom>
<owlx:OneOf>
<owlx:Individual owlx:name="#layer" />
</owlx:OneOf>
</owlx:someValuesFrom>
</owlx:ObjectRestriction owlx:property="&map;isObjectOf">
</owlx:IntersectionOf>
</owlx:someValuesFrom>
</owlx:ObjectRestriction owlx:property="&map;isLocationOf">
</owlx:IntersectionOf>
</owlx:someValuesFrom>
</owlx:ObjectRestriction>
<ruleml:var>loc</ruleml:var>
</swrlx:classAtom>。

相关文档
最新文档