I have an ontology which consists of a class "Country", and a subclass "BigCountry". I have a datatype property called "population" of type integer. "BigCountry" has a restriction of "population" > 50. So, if I query the class "BigCountry" with reasoning activated, I get all the instances of "Country" that have a population over 50.
Now I'm trying to have all the instances (countries) in a table in a relational database, and I want to connect (map) the information from the database to the ontology and be able to use the "reasoning" to find out the big countries.
How do I have to modify this mapping file to be able to connect it with the first ontology, as to say that a country from the virtual graph is an instance of the class "Country"? How should I query the "BigCountry" class with "reasoning" as to take into account the instances of the virtual graph?