W3C home > Mailing lists > Public > public-owl-dev@w3.org > April to June 2014

Question on query classes

From: <ericliu_007@sina.com>
Date: Tue, 29 Apr 2014 09:46:58 +0800
To: "public-owl-dev" <public-owl-dev@w3.org>
Message-Id: <20140429014658.38D4A728001@webmail.sinamail.sina.com.cn>
Hi,      
       I'm new to ontology and currently I'm building an ontology with protege4.3. I have a problem on how to query classes with certain restrictions on dataproperty.      Specifically,I don't know how to find out all the classes(they have a dataproperty range in float) that their dataproperty ranges have intersected with the given range.     
      In short and not strict in syntax,Class A  haslength [20,100]Class B haslength (100,150)Class C haslength [150,200]……I want to find all the classes which might have intances in the range [80,120],that is to say all the classes which its range of the dataproperty "haslength" is intersected with the given range [80,120]. And in this case,Class A and Class B will be the correct answer.  You may skip  the example below if you get what I mean.
      For  example, A class is called "Bigfish",which has a dataproperty called "haslength".And its expression is like this"haslength some float[>= 100]".      Another class is called "Mediumfish",which also has a dataproperty called "haslength".And its expression is like this"haslength some float[> 10,< 100]".      Still another class is called"Smallfish",which also has a dataproperty called "haslength".And its expression is like this"haslength some float[<= 10]".      Given the range haslength some float[>= 5,<= 20],  in this case,my question is how can I find out all the classes which its range of dataproperty"haslength"have intersected with the given range[5,20]?      In other word,I might find some fish of which the length are ranged from 5 to 20, and I want to find out which classes they might belong to.The correct anser will be "Smallfish" and "Mediumfish".
      So how can I solve this problem?      Is there any plugins that may help me to accomplish this task?Am I going to directly query classes or using an instance which has the dataproperty with the given range? Or, I should use OWL-API?     Thank you very much! Looking foward to your reply!
     
p.s.:forgive me, my english is poor....


Eric Liu


--------------------------------
Jiacheng LiuDepartment of Computer Science and TechnologySchool of Computer ScienceFudan University,Shanghai,200433Tel:(+86)13761633883
Received on Wednesday, 30 April 2014 09:38:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:22 UTC