Class DatasetGraphWithGraphTransform

java.lang.Object
org.apache.jena.sparql.core.DatasetGraphWrapper
org.aksw.jenax.arq.util.dataset.DatasetGraphWrapperFindBase
org.aksw.jenax.arq.util.dataset.DatasetGraphWithGraphTransform
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.core.DatasetGraphWrapperView, org.apache.jena.sparql.core.Transactional

public class DatasetGraphWithGraphTransform extends DatasetGraphWrapperFindBase implements org.apache.jena.sparql.core.DatasetGraphWrapperView
A DatasetGraph wrapper where any find() request transforms the targeted graphs using the provided lambda.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional

    org.apache.jena.sparql.core.Transactional.Promote
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Function<org.apache.jena.graph.Graph,org.apache.jena.graph.Graph>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DatasetGraphWithGraphTransform(org.apache.jena.sparql.core.DatasetGraph dsg, Function<org.apache.jena.graph.Graph,org.apache.jena.graph.Graph> graphWrapperFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Iterator<org.apache.jena.sparql.core.Quad>
    actionFind(boolean ng, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
     

    Methods inherited from class org.aksw.jenax.arq.util.dataset.DatasetGraphWrapperFindBase

    contains, contains, delegateFind, find, find, find, find, findNG, getDefaultGraph, getGraph, getUnionGraph

    Methods inherited from class org.apache.jena.sparql.core.DatasetGraphWrapper

    abort, add, add, addGraph, begin, begin, begin, clear, close, commit, containsGraph, delete, delete, deleteAny, end, get, getBase, getBaseForQuery, getContext, getCxt, getG, getLock, getR, getT, getW, getWrapped, isEmpty, isInTransaction, listGraphNodes, prefixes, promote, promote, removeGraph, size, supportsTransactionAbort, supportsTransactions, sync, toString, transactionMode, transactionType, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.sparql.core.DatasetGraph

    add, add, addAll, addGraph, clear, close, contains, contains, containsGraph, delete, delete, deleteAny, find, find, find, findNG, getContext, getDefaultGraph, getGraph, getLock, getUnionGraph, isEmpty, listGraphNodes, prefixes, removeGraph, size, stream, stream, supportsTransactionAbort, supportsTransactions

    Methods inherited from interface org.apache.jena.sparql.core.Transactional

    abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
  • Field Details

    • graphWrapperFactory

      protected Function<org.apache.jena.graph.Graph,org.apache.jena.graph.Graph> graphWrapperFactory
  • Constructor Details

    • DatasetGraphWithGraphTransform

      protected DatasetGraphWithGraphTransform(org.apache.jena.sparql.core.DatasetGraph dsg, Function<org.apache.jena.graph.Graph,org.apache.jena.graph.Graph> graphWrapperFactory)
  • Method Details

    • actionFind

      protected Iterator<org.apache.jena.sparql.core.Quad> actionFind(boolean ng, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Specified by:
      actionFind in class DatasetGraphWrapperFindBase
      Parameters:
      ng - Controls the meaning of Node.ANY for g: If false then it matches all graphs including the default graph. When true it only matches within named graphs (and not the default graph).