logicowlprotegedlquerymanchester-syntax

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 2016

where in place of min I would actually like to express "less than".

How to do it? Is it possible? A negative answer would also suffice for me.


Solution

  • If the year is stored as value on which datatype facets are supported, you can do this with a DL query like:

            Person and (hasDeathYear some xsd:int [<= 2016])

    Some of these questions and answers have more examples: