简体   繁体   English

OWL Protege-5.0如何将对象属性的范围设置为外部Ontolgoy类

[英]OWL Protege-5.0 how to set the range of Object Property as an external Ontolgoy class

I am new to Protégé, and I am using Protégé 5.0 Beta. 我是Protégé的新手,并且正在使用Protégé5.0 Beta。

I am building my own Ontology. 我正在建立自己的本体。 One of my requirement is that every property should have an address. 我的要求之一是,每个财产都应有一个地址。 I found this Ontology for addresses http://www.geonames.org/ontology/documentation.html#A 我发现该本体的地址为http://www.geonames.org/ontology/documentation.html#A

and I want to say that my Property class, has a relationship, lets call it hasAddress , and the range of that relationship is from GeoNames Ontology. 我想说我的Property类具有一个关系,将其hasAddress ,并且该关系的范围来自GeoNames Ontology。 I don't know the exact class of GeoNames that I am going to use, but even if I did, that wouldn't change anything in my question. 我不知道我将要使用的确切的GeoNames类,但是即使我这样做了,也不会改变我的问题。 Lets say that I am going to use class A from GeoNames Ontology. 可以说我将使用GeoNames Ontology中的A类。

My attemps to solve the problem 我试图解决问题

  1. I have created a class on Protégé and I named it Property . 我在Protégé上创建了一个class ,并将其命名为Property

  2. I have create an Object Property property and I named it hasAddress . 我已经创建了一个Object Property属性,并将其命名为hasAddress

However, I didn't know how to tell Protégé that the range of that hasAddress is class A from GeoNames Ontology 但是,我不知道如何告诉hasAddress的范围是GeoNames Ontology的A

Note 1: 注1:

I don't know if what I did is correct. 我不知道我做的是否正确。

Note 2: 笔记2:

I don't know if GenNames is the best Ontology for addresses. 我不知道GenNames是否是地址的最佳本体。 Basically, I just need to set city name. 基本上,我只需要设置城市名称。 However, I need to integrate my Ontology with an Address Ontology as a required task. 但是,我需要将我的本体与地址本体集成为一项必需的任务。

heres some help if you still haven't figured out how to do this. 如果您仍然不知道该怎么做,可以提供一些帮助。 You need to import the GeoNames ontology into your current. 您需要将GeoNames本体导入到当前的本体中。 This can be achieved easily in protege using the following steps. 使用以下步骤可以轻松实现此目的。


1) In protege on the Active Ontology tab there is a window called Imported Ontologies. 1)在“活动本体”选项卡上的防护中,有一个名为“导入的本体”的窗口。 Use this interface to import your other ontology into the current one (or the other way around, it really doesn't matter) 2) If you want to use a web resource select the option that says import an ontology located in a document on the web or use the import ontology located on a specific file option if you have downloaded the file in a .rdf extension. 使用此界面可将您的其他本体导入到当前本体中(或相反,这没关系)2)如果您要使用网络资源,请选择表示import an ontology located in a document on the web或使用import ontology located on a specific file选项import ontology located on a specific fileimport ontology located on a specific file如果您以.rdf扩展名下载了文件)。
3) Once you have succesfully imported said ontology, you will be able to use whatever class you want from the imported ontology in the current. 3)成功导入所述本体后,您将能够使用当前所需的任何类。 Hope this helps :) 希望这可以帮助 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM