Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] A complex p4: DL Query

babar shahzad babarathotmail at yahoo.com
Wed Mar 18 10:39:20 PDT 2009



thank you Kaarel,

OK, sorry for inconvenience. Its like
since Product & Shelf are subclasses ofStore, both have 2 subclasses under those. 
-' Product-1' &'Product-2'  contain products as individual members & have necessary restriction 'Product-1 locatedIn some Shelf-1', 'Product-2 locatedIn some Shelf-2'. 
- Since 'locatedIn' & 'hasProduct' are inverse properties so individual products in a specific shelf are retrieved by 'Shelf-1 and hasProduct some Product' or by typing just 'Shelf-1' in DL Query Tab. ----------------------------------------------QUERY#1 
- Both Shelves have 'locationX' & 'locationY' datatype property, with value like "Shelf and locationX some float [ >=0.0, <11.0 ] ",  "Shelf and locationY some float [ >=0.0, <11.0 ]"  forShelf -1, and
"Shelf and locationX some float [ >=11.0, <21.0 ] ', Shelf and locationY some float [ >=11.0, <21.0 ]"  for Shelf-2. 
- A specific Shelf is retreived by giving coordinate, like " Shelf and ( locationX value 1.0 ) or ( locationY value 0.0 ) ".----------------------------------------------QUERY#2
- Now what I wanted is I query using coordinates of shelf, query fetches a specific Shelf with those coordinates(like --QUERY#2 ) & returned individual products as a result(like--QUERY#1).

Class hierarchie is underneeth.

-Store
    ->Product
        -->Product-1 (hasProduct,<->containedIn(inv)),(contain individual products as members)
        -->Product-2 (hasProduct,<->containedIn(inv)),(contain individual products as members)
 ->Shelf
       -->Shelf-1 (LocationX,Y)
       -->Shelf-2 (LocationX,Y)


I hope it will be lot clearer now. 


 
Babar Shahzad Chaudary, 
+358408532112         
Deptt of Information Processing
Science,
University of Oulu, Finland.



----- Original Message ----
From: Kaarel Kaljurand <kaljurand at gmail.com>
To: User support for the Protege-OWL editor <protege-owl at lists.stanford.edu>
Sent: Wednesday, March 18, 2009 3:41:52 PM
Subject: Re: [protege-owl] A complex p4: DL Query

Hi,

On Tue, Mar 17, 2009 at 10:44 AM, babar shahzad
<babarathotmail at yahoo.com> wrote:
>
> Does any one have some suggestion for the question I posted yesterday?
> I paste it again underneath bit clearly, as I think.

Sorry, I for one don't understand what you're after. It might help if you
describe the real world problem that you are trying to solve, i.e.
instead of "2subclassOfA" use a class name that one can relate to.

> I am able to separately fetch both values but struggling in merging them into a single query.

You can "merge" in various ways. Maybe you want to do and-merging, i.e.
conjoin the two queries into a new query:

dl-query-1 and dl-query-2

where "and" is the Manchester syntax for IntersectionOf.

--
kaarel
_______________________________________________
protege-owl mailing list
protege-owl at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 



      



More information about the protege-owl mailing list