On 2/1/18 03:36, Håvard Ottestad wrote:
Hi,
As part of the SHACL engine I want to run SPARQL queries against the base sail on the current connection in the current transaction.
However, since the SHACL Sail is built on the NotifyingSail system I end up having a NotifyingSailConnection and not a RepositorySailConnection.
(Caveat: I'm out of the loop a bit)
There is no class RepositorySailConnection in RDF4J.
Are you thinking of SailRepositoryConnection perhaps? It's important
to realize that this is an implementation of RepositoryConnection,
not SailConnection (in other words: it's not part of the SAIL API).
NotifyingSailConnection doesn’t have the same convenience methods for SPARQL tuple queries as the RepositorySailConnection. Is there any way of wrapping the NotifyingSailConnection so that I get all those methods? Or maybe I’ve extended at the wrong point?
Quite likely. SPARQL query parsing is only available at the level of
the Repository API. At the level of the SAIL, you only have access
to direct statement retrieval or directly evaluating TupleExprs.
Cheers,
Jeen
|