views:

685

answers:

2

Hello,

How do I qery individulas in my ontology, here is a description of what I would like to do (similar to SQL queries):

I have three classes (components, features, and polarity). The polarity value can be positive_polarity or negative_polarity, both are subclasses of polarity.

a_component hasFeature a_Feature

a_Feautre hasPolarity a_Polarity

I would like to list all components which have a positive_polarity value.

How can this be achieved using the DL Query tab in protege 4?

Thanks for your help in advance,

Hala

A: 
component that hasFeature some (feature that hasPolarity some negative_polarity)

provided that there's a feature in there somewhere asserted as type:

feature that hasPolarity some negative_polarity
Taveren
Thanks for your reply Taveren, but this query displays features, and not components. I want to display the components in the individuals list.
Hala
Ok had another go at it, but would need to see a mock up of the ontology to help any further. HTH
Taveren
A: 

Hi Taveren,

Thanks for your followup. The query works now, this is exactly what I would like to do :)

I'm at the initial stages of my work, and I know I will need to formulate more complex DL queries. Do you know of a tutorial or guide that will help me in composing DL queries.

Thanks once again, Hala