views:

103

answers:

2

I knew this might be a stupid question but I don't know the answer :)

I am using protege4 I built my ontology and when I tried to use DL Query from the DL query tap in protege4 it executes fine and I get results.

However, when I click "Add to ontology" to add my query to the ontology it adds it but without any query results!!! Why are there no query results? and how to see it?

Thanks

+1  A: 

First some terminology:

  • Every OWL ontology is a set of OWL axioms.
  • Every DL-Query is an OWL class expression.
  • Every DL-Query result is a set of OWL entities.

You can only add axioms to an ontology. You cannot add class expressions nor sets of entities to an OWL ontology.

The "Add to ontology" button seems to create a new EquivalentClasses-axiom on the basis of the query (i.e. class expression), and a named class (given by the user), and then asserts this axiom into the active ontology, i.e.

EquivalentClasses(new_name query)

(I didn't quite get it working like this in my version of Protege 4, but such a functionality would make sense.)

The current OWL2 specification does not say anything about how to store class expressions and query results in the ontology. These have to be specified and calculated every time from scratch after you load the ontology from the file.

Kaarel
A: 

hi,

How can I create a sub-query in Protege 4?

e.g. isCityOf value (Business and (hasBusiness value "cars"))

I want to know the City name by tracking back from "cars"

I want to use the value of sub-query (hasBusiness value "cars") as an input to

isCityOf value ""

please help!

regards,

Yasir
This is not an answer, it is a question.
Kaarel