Catmandu::Exporter::RDF(3pm) | User Contributed Perl Documentation | Catmandu::Exporter::RDF(3pm) |
Catmandu::Exporter::RDF - serialize RDF data
In Perl code:
use Catmandu -all; my $exporter = exporter('RDF', file => 'export.rdf', type => 'XML', fix => 'rdf.fix' ); $exporter->add( $aref ); # pass RDF data in aREF encoding $exporter->commit;
This Catmandu::Exporter exports RDF data in different RDF serializations.
When the option "type" is set to 'NTriples' the export can be streamed in all other cases the results are exported in bulk after "commit()".
See also Catmandu::Exporter.
RDF data is added given in another RDF Encoding Form (aREF) as implemented with RDF::aREF and defined at <http://github.com/gbv/aref>.
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.
Expand and abbreviated with RDF::NS. For instance ""dc:title"" is expanded to ""http://purl.org/dc/elements/1.1/title"".
Serialization is based on RDF::Trine::Serializer.
2022-12-06 | perl v5.36.0 |