Find people that are not alive in 2016

106 Views Asked by At

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.

1

There are 1 best solutions below

5
On BEST ANSWER

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: