2009-12-02 46 views
3

我如何查詢個體在我的本體論中,這裏是我想要做的描述(類似於SQL查詢):如何在Protege 4中使用OWL DL Query查詢個人?

我有三個類(組件,功能和極性)。極性值可以是positive_polarity或negative_polarity,都是極性的子類。

  • a_component hasFeature a_Feature
  • a_Feautre hasPolarity a_Polarity

我想列出其中有一個positive_polarity值的所有組件。

如何通過使用4中的DL查詢選項卡來實現?

回答

1
component that hasFeature some (feature that hasPolarity some negative_polarity) 

只要有一個特點在某處斷言類型:

feature that hasPolarity some negative_polarity 
+0

感謝您的答覆Taveren,但此查詢顯示的功能,而不是組件。我想在個人列表中顯示組件。 – Hala 2009-12-05 17:34:30

+0

好吧,有另一個去做,但需要看到本體的模擬,以進一步幫助。 HTH – Tomasz 2009-12-09 14:12:41