Questions tagged [dlquery]

Use this tag when the question is related to a DL query, which can be used, for example, in the GUI of Protege.

Query a classified ontology. DL stands for Description Logic.

36 questions
7
votes
1 answer

How to query individuals in DL Manchester OWL Syntax?

I know this sounds like a very stupid question, but I've been trying to figure this out and I can't find anything on this, though it seems obvious that this should be doable. I'm developing something that queries an OWL file through its API using…
Rida Khan
  • 71
  • 3
7
votes
2 answers

Reasoning OWL ontology using inverse property?

I'm using Protege v4.3 for making ontologies. I have a question about OWL ontology and DL query. For instance, in the Pizza ontology, http://owl.cs.manchester.ac.uk/co-ode-files/ontologies/pizza.owl I can execute the DL query hasTopping some…
Soonpil Jang
  • 81
  • 1
  • 4
5
votes
1 answer

Why is this DL-Query not returning any individuals?

This DL-Query is not returning any individuals: Query (Protégé syntax) : hasPet exactly 1 DomesticAnimal Here's part of the ontology: :hasPet a owl:ObjectProperty; rdfs:domain :Human; rdfs:range :DomesticAnimal; …
Anthony
  • 644
  • 7
  • 23
3
votes
2 answers

Strange query behaviour in OWL!

In OWL this query works fine "person and hasChild min 3" it works fine and it gives me all persons who have more than 3 children but this one does not work "person and hasChild max 3" it should give me all persons who have less than 3 children…
ahmed
  • 14,316
  • 30
  • 94
  • 127
3
votes
2 answers

SuperProperty Of Chaining

Imagine that given the following two relations: a(x,y) b(y,z) we could derive that: c(x,z) then this can be explicitly expressed in Protégé by adding a SuperProperty Of (Chain) for the c property like this: a o b SubPropertyOf c With that expressed,…
Horse SMith
  • 1,003
  • 2
  • 12
  • 25
3
votes
1 answer

How to Query Individuals using OWL DL Query in Protege 4?

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…
Hala
  • 31
  • 1
  • 2
2
votes
0 answers

OWL/owlapi: Get Individuals with "unsatisfied" Object Properties

I'm working with an OWL Ontology in Protégé 5.1.0 (plus HermiT 1.3.8.413 Reasoner) that I later want to use with OWLAPI 4.1.0 and maybe DL-Query or SPARQL. My task at hand is to get all Individuals of a class that have a certain Object Property…
everdream
  • 100
  • 9
2
votes
1 answer

Exporting data from ontology - Protege

How to export data from ontology to an excel sheet using Protege. For example, I want to get a table with 2 columns: Class rdf:ID, Super Class rdf:ID.
SarahM.
  • 61
  • 1
  • 7
2
votes
1 answer

Find people that are not alive in 2016

I have an ontology, where Person is a class and hasDeathYear is a data property. I have to express the title in a DL query. I can ask this: Person and hasDeathYear value 2016 but I cannot ask something like this: Person and hasDeathYear min…
gsamaras
  • 71,951
  • 46
  • 188
  • 305
2
votes
1 answer

Cardinality DL queries in OWL in Protégé

I'm trying to do a query with a cardinality restriction. The query looks like ClassA and (roleA min 2 ClassB) but this returns an empty set. On the other hand when I do the query ClassA and (roleA some ClassB) it returns some individuals of…
ChrisDLFC
  • 215
  • 4
  • 9
2
votes
1 answer

How to write a nested DL query

I want to write a nested DL query in Protege. I can run a simple query like: Person and hasFather value PersonA It retrieves the name of all the Persons whose Father is PersonA. But I want that PersonA value should also be retrieved from some…
Arun Gupta
  • 23
  • 2
1
vote
0 answers

Protégé reasoner does not infer subclass

I have a small ontology defined as shown in the following picture: I created an individual for Dataset and one for Algorithm. I expected that the reasoner would infer the Algorithm individual as Linear_Least_Regression, but this didn't…
Paul
  • 1,325
  • 2
  • 19
  • 41
1
vote
1 answer

How to query for object properties of individuals using OWL DL Query

Say I have a relationship between two individuals such that "Bob works for MiningCo." I want to be able to ask it "Who does Bob work for?" but it seems like in OWL DL the only question I know how to to write is "Who works for MiningCo?"…
topfoxrider
  • 143
  • 10
1
vote
0 answers

Protege DL Query

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…
Ali Alnader
  • 193
  • 1
  • 14
1
vote
1 answer

Check membership of a certain class of an individual in Protege

I understand that we can list the members of a certain class in Protege. All I need to do is to start the reasoner, visit the DL Query tab, put the name of the class in the Query box, keep Instances checked and the press Execute. I get a list of all…
Masroor
  • 886
  • 1
  • 8
  • 23
1
2 3