|
Imagine a little world where there is two balls ("Ball1" and "Ball2") and a box ("Box1"). Then, i know that there is a ball in the box, but i do not know which one. I want to be able to ask the following question: what is in "Box1" and have the answer "Ball", but i encountered some problems. Using Protege, I create a very little ontology to model this. I create a class: "Object" with two sub-classes: "Ball" and "Box". I define two object properties "isin" and "include" and say that "isin" is the inverse property of "include". Then I create two individuals "Ball1" and "Ball2" with type "Ball" and an individual "Box1" with type "Box and (include some (Balle))" Then I query the ontology with "isin value Box1", but I only have "Thing" as an answer where i expected "Ball". Could you help me to see what i miss ? Thanks for your help. Aurélie ps: I've tested to define "Box1" with "Box and (include only (Ball))" and I obtain "Ball" when i query, but it seems to me that does not represent what i want since I know there is a ball in the box but i do not know if there is something else. |
|
Web Ontology Language is designed to describe the large world, not little ones. That is why it uses the Open Wold Assumption.
Just ask yourself, what if someone on the Internet states that Regarding your example: you don't have to define each box as "Box and (include only (Ball))". Defining the From wikipedia: I define the class "Citizen" and the class "Country". Then properties "isACitizenOf" (and the inverse "istheCountryOf"). I create two individuals with type "Citizen": Mary and Paul. I create an individual "France" with type "Country and (include some (Citizen)"". Considering that for now, i know that there are some Citizens in France (and perhaps other stuff like an Hippopotamus). I just want that my "France" definition, includes the knowledge that i have for the moment AND to be able to get this information then. Is there a mean to do that with ontology and OWP ? Thanks. So you want to infer that there are some citizens in France from the fact that there are some citizens in France? I think you just want to read the "France" definition. |
|
Assuming your query engine is supporting an entailment regime that is expressive enough to give you the intended conclusions, you may want to use a SPARQL query like this one:
which would give you a binding of variable |


There might be other things in the box. :)
somemeans that there's at least one thing in the box that's a ball.allwould mean that everything that's in the box is a ball. (EDIT: seems I'm just repeating @utapyngo ... and felt it worth mentioning that I'm struggling not to try make a joke about quantum mechanics here.)Also, @aclodic, welcome!
http://answers.semanticweb.com/questions/14494/welcome-to-answerssemanticwebcom