3

How do I query 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?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Hala
  • 31
  • 1
  • 2

1 Answers1

2
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
Tomasz
  • 5,269
  • 8
  • 56
  • 65
  • Thanks for your reply Taveren, but this query displays features, and not components. I want to display the components in the individuals list. – Hala Dec 05 '09 at 17:34
  • Ok had another go at it, but would need to see a mock up of the ontology to help any further. HTH – Tomasz Dec 09 '09 at 14:12