Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

trapper(1p) [debian man page]

TRAPPER(1p)						User Contributed Perl Documentation					       TRAPPER(1p)

NAME
trapper - command-line RDF parsing and serialising tool SYNOPSIS
trapper [options] INPUT-URI [INPUT-BASE-URI] Options: --input F, -i F Set the input format to F --input-uri U, -I U Alternative to INPUT-BASE-URI --output F, -o F Set the output format to F --count, -c Count triples only --quiet, -q No extra information messages --help, -h Show this help --version, -v Show module versions Input formats: rdfxml, n3, turtle, rdfa, nquads, trig, rdfjson, atom, xrd. Output formats: rdfxml, n3, turtle, ntriples, rdfa, nquads, rdfjson, canonical. OPTIONS
--input, -i Specify the input format. The synopsis of this manual page shows a list of input formats. Using media types should work too. In summary, it accepts any type that the "rdf_parse" function from RDF::TrineShortcuts accepts. If an input type is not specified, trapper will try to guess the input type (and will almost always get it right). --input-uri, -I, INPUT-BASE-URI Any of these three methods can be used to specify a base URI for the parser to resolve relative URI references. --output, -o Specifies the output format. The synopsis of this manual page shows a list of input formats. Using media types should work too. In summary, it accepts any type that the "rdf_string" function from RDF::TrineShortcuts accepts. If an input type is not specified, 'ntriples' is assumed. --count, -c Suppresses the output of the data, and just shows a count of triples instead. --quiet, -q Hides useless debugging messages. --help, -h Shows a short help message. --version, -v Shows the version of various Perl modules used by trapper. trapper itself doesn't have a version number, but is distributed along with RDF::TrineShortcuts, so could be considered to have the same version number as that. SHEBANG!! trapper can be used as a shebang line of a Turtle or N-Triples file. e.g.: #!/usr/local/bin/trapper OPTS: -i turtle -o rdfxml @prefix foaf: <http://xmlns.com/foaf/0.1/> . [] a foaf:Person ; foaf:name "Toby Inkster" . Note that you need the "OPTS:" bit to pass command-line options. This is a workaround for a limitation in Linux's shebang handling. NOTE
When possible, trapper attempts to use the same command-line options as the 'rapper' tool that is distributed with libraptor. However, full compatibility with rapper is not a goal, and is certainly not guaranteed. A trapper is a person who catches animals, usually for fur. AUTHOR
Toby Inkster, <tobyink@cpan.org> COPYRIGHT AND LICENCE
Copyright (C) 2010 by Toby Inkster This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available. perl v5.10.1 2010-12-08 TRAPPER(1p)

Check Out this Related Man Page

RDF::iCalendar::Exporter(3pm)				User Contributed Perl Documentation			     RDF::iCalendar::Exporter(3pm)

NAME
RDF::iCalendar::Exporter - export RDF data to iCalendar format SYNOPSIS
use RDF::iCalendar; my $input = "http://example.com/calendar-data.ics"; my $exporter = RDF::iCalendar::Exporter->new; print $_ foreach $exporter->export_calendars($input); DESCRIPTION
This module reads RDF and writes iCalendar files. This is a subclass of RDF::vCard::Exporter, so it can also export vCards. Constructor o "new(%options)" Returns a new RDF::iCalendar::Exporter object. There are no valid options at the moment - the hash is reserved for future use. Methods o "export_calendars($input, %options)" Returns a list of iCalendars found in the input, in no particular order. The input may be a URI, file name, RDF::Trine::Model or anything else that can be handled by the "rdf_parse" method of RDF::TrineShortcuts. Each item in the list returned is an RDF::iCalendar::Entity, though that class overloads stringification, so you can just treat each item as a string mostly. o "export_calendar($input, $subject, %options)" As per "export_calendars" but exports just a single calendar. The subject provided must be an RDF::Trine::Node::Blank or RDF::Trine::Node::Resource of type icaltzd:Vcalendar. o "export_component($input, $subject, %options)" Exports a component from a calendar - e.g. a single VEVENT The subject provided must be an RDF::Trine::Node::Blank or RDF::Trine::Node::Resource of type icaltzd:Vevent, icaltzd:Vtodo or similar. o "export_cards($input, %options)" See RDF::vCard::Exporter. o "export_card($input, $subject, %options)" See RDF::vCard::Exporter. RDF Input Input is expected to use the newer of the 2005 revision of the W3C's vCard vocabulary <http://www.w3.org/TR/rdfcal/>. (Note that even though this was revised in 2005, the term URIs include "2002" in them.) Some extensions from the namespace <http://buzzword.org.uk/rdf/icaltzdx#> are also supported. iCalendar Output The output of this module aims at iCalendar (RFC 2445) compliance. In the face of weird input data though, (e.g. an DTSTART property that is a URI instead of a literal) it can pretty easily descend into exporting junk, non-compliant iCalendars. The output has barely been tested in any iCalendar-supporting software, so beware. SEE ALSO
RDF::iCalendar. RDF::vCard, HTML::Microformats, RDF::TrineShortcuts. <http://www.w3.org/TR/rdfcal/>. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2011 Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-23 RDF::iCalendar::Exporter(3pm)
Man Page