Inferencing and rule sets. How to set up?

I’m not sure how to setup VOS for using inference in SPARQL queries.
From what I understood I have to:

  1. Load the ontology or ontologies into individual named graphs
  2. Create rule sets, including one or more of this named graphs
  3. Write the SPARQL query and include a DEFINE statement to reference the rule set.

When this is done, the query will return the rdf triples that really exist (that were loaded), and the ones that are created on the fly using inferencing based on the relations present in the ontology referenced by the rule set.

Is this the right way?

Thank you

That sounds about right as detailed in the Virtuoso Inferencing and Reasoning documentation and this example demonstrating relationships in the Royal Family.

Hi Hugh,
Thank you very much for your answer.