Class RdfDataSourceWithLocalCacheRework.TransformInjectCacheSyntax

java.lang.Object
org.aksw.jenax.dataaccess.sparql.polyfill.datasource.RdfDataSourceWithLocalCacheRework.TransformInjectCacheSyntax
Enclosing class:
RdfDataSourceWithLocalCacheRework

public static class RdfDataSourceWithLocalCacheRework.TransformInjectCacheSyntax extends Object
FIXME This class is not 'broken' but it serves the purpose where the underlying service supports caching with the service enhancer plugin. Broken query rewrite based on the syntax level. The problem is that we need to take care of which parts are executed remotely and which ones are executed in the client. This cannot be cleanly done without the semantics of the algebra: if we have an ElementGroup of which some elements can be cached and other not, then how can we ensure apply the correct transformation if not converting to the algebra first?
  • Constructor Details

    • TransformInjectCacheSyntax

      public TransformInjectCacheSyntax()
  • Method Details

    • canWrapWithCache

      public static boolean canWrapWithCache(org.apache.jena.query.Query query)
    • rewriteQuery

      public static org.apache.jena.query.Query rewriteQuery(org.apache.jena.query.Query query)
    • rewriteInjectCacheSubQuery

      public static org.apache.jena.sparql.syntax.Element rewriteInjectCacheSubQuery(org.apache.jena.sparql.syntax.ElementSubQuery elt)
    • rewriteInjectCache

      public static org.apache.jena.sparql.syntax.Element rewriteInjectCache(org.apache.jena.sparql.syntax.Element elt)
    • rewriteInjectCacheGroup

      public static org.apache.jena.sparql.syntax.Element rewriteInjectCacheGroup(org.apache.jena.sparql.syntax.ElementGroup elts)