-
-
23 Feb 2012 13:41:10 UTC
- Distribution: RDF-Flow
- Module version: 0.178
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (261 / 202 / 16)
- Kwalitee
Bus factor: 1- 94.00% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (23.12KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Jakob Voß
NAME
RDF::Flow::Pipeline - Pipelines multiple sources
VERSION
version 0.178
SYNOPSIS
use RDF::Flow::Pipeline; $src = pipeline( @sources ); # shortcut $src = RDF::Flow::Pipeline->new( @sources ); # explicit $rdf = $src->retrieve( $env ); $rdf == $env->{'rdflow.data'}; # always true # pipeline as conditional: if $s1 has content then union of $s1 and $s2 use RDF::Flow qw(pipeline union previous); pipeline( $s1, union( previous, $s2 ) ); $s1->pipe_to( union( previous, $s2) ); # equivalent
DESCRIPTION
This RDF::Flow::Source wraps other sources as pipeline. Sources are retrieved one after another. The response of each source is saved in the environment variable
rdflow.data
which is accesible to the next source. The pipeline is aborted without error ifrdflow.data
has not content, so you can also use a pipleline as conditional branch. To pipe one source after another, you can also use a source'spipe_to
method.The module RDF::Flow exports functions
pipeline
andprevious
on request.SEE ALSO
RDF::Flow::Cascade, RDF::Flow::Union
AUTHOR
Jakob Voß <voss@gbv.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install RDF::Flow, copy and paste the appropriate command in to your terminal.
cpanm RDF::Flow
perl -MCPAN -e shell install RDF::Flow
For more information on module installation, please visit the detailed CPAN module installation guide.