I created a virtual graph (VG) from a DB in MySql that I can query without a problem. I also have an ontology that is working fine. My problem is: how to integrate the ontology and the virtual graph, so when am I querying the ontology it automatically "jumps" to the virtual graph and get the most recent data?
Edit: Try to be more clear:
The VG contains the instances for the ontology, i.e. it's on the edge. How can I make queries in any part of the ontology and the reasoner understand that it can go from the ontology to the VG to search for the instances?
What I want is query without I explicit write in SPARQL "go to named-graph virtual" giving more freedom
Could you provide some queries that illustrate your situation - a query that shows the ontology working and the VG working and the VG not working with the ontology?
It's taken me a bit to respond because I'm still a little confused at what you're asking so I'll take a swing at it. Just let me know if I miss.
You've defined :Trolly to be a subclass of :Assembly so if you have reasoning enabled every Trolly is an Assembly. I think that would be the relationship that you're asking about. If you want you can make that explicit and simply map it so that every Trolly is also an Assembly and use that without reasoning. To apply reasoning to virtual graphs you need to enable the property reasoning.virtual.graph.enabled = true