Virtuoso has a specific syntax option(transitive) which need a little trick for Jena.