1

I developed an Arabic ontology for chest diseases using Protege version 5.2.0 Now I'm using Description Logic query (DL query) to query the ontology but the results are different from the same query results using SPARQL query.

For example: my ontology contains classes like:

  1. Disease
  2. Symptom

The DL query is: Disease and Has_Symptom value diarrhea and the result of it is shown in the following image:

enter image description here

The result is all individuals of a class Disease, but when executing the same query using SPARQL the result is correct and is shown in the following image.

SPARQL Query and its result

Note: when using the same version of Protege with the same ontology on a different computer the DL query returns correct result. I hope this is a clear question.

I appreciate any help you provide.

Ali Alnader
  • 193
  • 1
  • 14
  • 2
    Add more details. I guess, you are using the SPARQL Query plugin, not the Snap SPARQL Query plugin. The former doesn't support querying over infered knowledge, whereas the latter — as well as the DL Query plugin — does. An example: https://stackoverflow.com/a/47010739/7879193 – Stanislav Kralin Mar 21 '18 at 13:32
  • Which plugin? Which query? Please provide more information... – UninformedUser Mar 21 '18 at 16:37
  • OK, you have edited you question, but what is your "equivalent" SPARQL query? Which flags a checked on the DL Query tab (subclasses, supperclasses etc.)? Paste a minimal version of your ontology, which allows to reproduce problems. In general: https://stackoverflow.com/help/mcve – Stanislav Kralin Mar 22 '18 at 07:11
  • Well, try the Snap SPARQL plugin, probably this helps you. It seems that for unknown reasons a reasoner concludes that other 13 individuals belong to the class. – Stanislav Kralin Mar 22 '18 at 19:04

0 Answers0