protected Op compilePathBlock(PathBlock pathBlock) { // Empty path block : the parser does not generate this case. if ( pathBlock.size() == 0 ) return OpTable.unit() ; // Always turns the most basic paths to triples. return PathLib.pathToTriples(pathBlock) ; }
@Override public Op transform(OpPath opPath) { // Flatten down to triples where possible. PathBlock pattern = pathCompiler.reduce(opPath.getTriplePath()) ; // Any generated paths of exactly one to triple; convert to Op. return PathLib.pathToTriples(pattern) ; } }
@Override public Op transform(OpPath opPath) { // Flatten down to triples where possible. PathBlock pattern = pathCompiler.reduce(opPath.getTriplePath()) ; // Any generated paths of exactly one to triple; convert to Op. return PathLib.pathToTriples(pattern) ; } }
protected Op compilePathBlock(PathBlock pathBlock) { // Empty path block : the parser does not generate this case. if ( pathBlock.size() == 0 ) return OpTable.unit() ; // Always turns the most basic paths to triples. return PathLib.pathToTriples(pathBlock) ; }