App-perlrdf

 view release on metacpan or  search on metacpan

lib/App/perlrdf/Command/Canonicalize.pm  view on Meta::CPAN

	[ 'input|i=s',         'Input filename or URL' ],
	[ 'input-spec|I=s',    'Input file specification' ],
	[ 'input-format|p=s',  'Input format (mnemonic: parse)' ], 
	[ 'input-base|b=s',    'Input base URI' ],
	[]=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>
	[ 'output|o=s',        'Output filename or URL' ],
	[]=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>
	[ 'on-fail|x=s',       'Behaviour when graphs cannot be canonicalized' ],	
);

use constant usage_desc    => '%c canonicalize %o INPUT [OUTPUT]';

sub execute
{
	require App::perlrdf::FileSpec::InputRDF;
	require App::perlrdf::FileSpec::OutputRDF;
	require RDF::Trine::Serializer::NTriples::Canonical;
	
	my ($self, $opt, $arg) = @_;
	
	$opt->{output_format} = 'RDF::Trine::Serializer::NTriples::Canonical';

lib/App/perlrdf/Command/Isomorphic.pm  view on Meta::CPAN


use constant abstract      => q (Determine if two graphs are isomorphic.);
use constant command_names => qw( isomorphic );

use constant opt_spec      => (
	[ 'input|i=s@',        'Input filename or URL' ],
	[ 'input-spec|I=s@',   'Input file specification' ],
	[ 'input-format|p=s',  'Input format (mnemonic: parse)' ], 
	[ 'input-base|b=s',    'Input base URI' ],
);
use constant usage_desc    => '%c isomorphic %o INPUT1 INPUT2';

sub execute
{
	require App::perlrdf::FileSpec::InputRDF;
	require RDF::Trine::Graph;
	
	my ($self, $opt, $arg) = @_;
	
	my @inputs = $self->get_filespecs(
		'App::perlrdf::FileSpec::InputRDF',

lib/App/perlrdf/Command/Validate.pm  view on Meta::CPAN

Given inputs, parses them and reports any errors.

The output conforms to the Test Anything Protocol.
DESCRIPTION
use constant opt_spec     => (
	[ 'input|i=s@',        'Input filename or URL' ],
	[ 'input-spec|I=s@',   'Input file specification' ],
	[ 'input-format|p=s',  'Input format (mnemonic: parse)' ], 
	[ 'input-base|b=s',    'Input base URI' ],
);
use constant usage_desc   => '%c validate %o INPUT [INPUT ...]';

sub execute
{
	require App::perlrdf::FileSpec::InputRDF;
	require RDF::Trine;
	require App::perlrdf::DummyModel;
	
	my ($self, $opt, $arg) = @_;
	
	my @inputs = $self->get_filespecs(



( run in 0.341 second using v1.01-cache-2.11-cpan-4e96b696675 )