0

I am developing an ontology and need to model geographic co-ordinates (lat/long) as part of an address of a person. Geo Names was the obvious choice, but it's too large and verbose for my use, which led me to W3C Geo vocabulary (http://www.w3.org/2003/01/geo/).

It has a Point class, and lat/long/alt properties which should suffice my need. However, I am not able to find it, let alone set it as properties in Protege. Further investigation reveaved that “Point” is an rdfs:Class and "lat/long/alt" are rdf:Properties. I am guessing this is the reason why it is not showing up in Protege.

Is there a way to use these properties in an OWL ontology? Or are there other vocabularies that would let me specify geographic Points, Lines etc?

Thanks,

4

1 回答 1

0

假设您正在尝试打开页面http://www.w3.org/2003/01/geo/上的文件wgs84_pos,那么这些属性似乎使用了 Protege 4.1 无法理解的格式(纯 RDF)。查看第 143 行,您将看到:

<rdf:Property rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#lat">
  <rdfs:domain rdf:resource="http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing" />
  <rdfs:label>latitude</rdfs:label>
 <rdfs:comment>The WGS84 latitude of a SpatialThing (decimal degrees).</rdfs:comment>
</rdf:Property>

rdf:Property不在 OWL 的范围内(太通用了,在 OWL 中属性要么是对象属性要么是数据属性),因此 Protege 4.1 不显示。

我建议您按照网页上的文档并查看 RDF 文件从头开始重新创建本体。只需添加您需要的属性(应该很快),保存,打开保存的文件并与您下载的文件进行比较以查看差异。

使用 Protege 制作的本体的大致结构如下:

<?xml version="1.0"?>
  <!DOCTYPE rdf:RDF [
  <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
  <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
  <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
  <!ENTITY wgs84_pos "http://www.w3.org/2003/01/geo/wgs84_pos#" >
  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>
<rdf:RDF xmlns="http://www.w3.org/2003/01/geo/wgs84_pos#"
 xml:base="http://www.w3.org/2003/01/geo/wgs84_pos"
 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
 xmlns:wgs84_pos="http://www.w3.org/2003/01/geo/wgs84_pos#"
 xmlns:owl="http://www.w3.org/2002/07/owl#"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<owl:Ontology rdf:about="http://www.w3.org/2003/01/geo/wgs84_pos#"/>

<owl:DatatypeProperty rdf:about="&wgs84_pos;lat">
    <rdfs:domain rdf:resource="&wgs84_pos;SpatialThing"/>
</owl:DatatypeProperty>

<owl:DatatypeProperty rdf:about="&wgs84_pos;long">
    <rdfs:domain rdf:resource="&wgs84_pos;SpatialThing"/>
</owl:DatatypeProperty>

<owl:Class rdf:about="&wgs84_pos;Point">
    <rdfs:subClassOf rdf:resource="&wgs84_pos;SpatialThing"/>
</owl:Class>

<owl:Class rdf:about="&wgs84_pos;SpatialThing"/>

于 2013-02-20T23:21:20.753 回答