NAME
Catmandu::Exporter::RDF - serialize RDF data
VERSION
version 0.16
SYNOPSIS
use Catmandu::Exporter::RDF;
my $exporter = Catmandu::Exporter::RDF->new(
file => 'export.rdf',
type => 'XML',
fix => 'rdf.fix'
);
$exporter->add( $aref ); # pass RDF data in aREF encoding
$exporter->commit;
DESCRIPTION
This Catmandu::Exporter exports RDF data in different RDF serializations.
CONFIGURATION
- file
- fh
- encoding
- fix
-
Default configuration options of Catmandu::Exporter. The option
fixis supported as derived from Catmandu::Fixable. For everyaddor for every item inadd_manythe given fixes will be applied first. - type
-
A serialization form can be set with option
type. The optiontypemust refer to a subclass name of RDF::Trine::Serializer, for instanceTurtlefor RDF/Turtle with RDF::Trine::Serializer::Turtle. The first letter is transformed uppercase, soformat => 'turtle'will work as well. In addition there are aliasesttlforTurtle,n3forNotation3,xmlandXMLforRDFXML,jsonforRDFJSON. - ns
-
The option
nscan refer to an instance of or to a constructor argument of RDF::NS. Use a fixed date, such as "20130816" to make sure your URI namespace prefixes are stable.
METHODS
See also Catmandu::Exporter.
add( ... )
RDF data is added given in another RDF Encoding Form (aREF) as implemented with RDF::aREF and defined at http://github.com/gbv/aref.
count
Returns the number of times add has been called. In contrast to other Catmandu exporters, this does not reflect the number of exporter records because RDF data is always merged to one RDF graph.
uri( $uri )
Expand and abbreviated with RDF::NS. For instance "dc:title" is expanded to "http://purl.org/dc/elements/1.1/title".
SEE ALSO
Serialization is based on RDF::Trine::Serializer.
AUTHOR
Jakob Voß
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 120:
You forgot a '=back' before '=head1'