databases – SPARQL compatible security assessment tool

What are the best vulnerability scanners for an RDF database that uses SPARQL? I like the Nessus accredited scan, but I think the results are not very valuable because I don't know what to do with the DB. I am testing the WMAP module in Metasploit, but I don't have much faith in it. I feel that the graphic database market is only gaining ground, so is there anything available for evaluations?

java – sparql – replaces the triple with the union of the triples

Below is a simple sparql query from lubm.

PREFIX rdf: 
PREFIX ub: 
SELECT? X? Y1? Y2? Y3
WHERE
{? X rdf: type ub: Professor.}

And there is a Map <Chain, List> that contains some inferred subclass data from SCHEMA as

{
"":

The
""
""
""
....
]}

I want to replace this triple ? X rdf: ub type: teacher. in that sparql query with union of its subclasses like:

{{{{? For }
UNION
{? For }
}
UNION
{? For }
}
UNION
{? For }
}

but I have no idea how I can do this specific.

Could you please provide me with some code to do this in jena (java) …?

Thank you with gratitude 🙂