RDF::T...RDFXML(3pm)
β¨ NAME β¨
RDF::Trine::Serializer::RDFXML β an RDF/XML Serializer π
okay so bestie, this is a Perl module (from the User Contributed Perl Documentation manual, no less) that takes your RDF graphs and turns them into RDF/XML. it's giving translator, but make it semantic web. π
πΈ VERSION πΈ
this doc is describing RDF::Trine::Serializer::RDFXML version 1.019. write it down, it's iconic.
β¨ SYNOPSIS β¨
use RDF::Trine::Serializer::RDFXML;
my $serializer = RDF::Trine::Serializer::RDFXML->new( namespaces => { ex => 'http://example/' } );
print $serializer->serialize_model_to_string($model);
look at that. three lines. main character energy. π«Ά
π DESCRIPTION π
so the RDF::Trine::Serializer::Turtle class provides an API for serializing RDF graphs to the RDF/XML syntax. (yes, that's literally what it says, and we're keeping it fr fr β no editing the source material in this house. π)
π¦ METHODS π¦
the vibe check
beyond the methods we're about to spill below, this class inherits methods from the RDF::Trine::Serializer class. so like, it's got the family genes. π
new ( namespaces => \%namespaces, base_uri => $baseuri )
returns a new RDF/XML serializer object. fresh out the box, ready to serve. β¨
serialize_model_to_file ( $fh, $model )
serializes the $model to RDF/XML, printing the results to the supplied filehandle <$fh">. π¨οΈ
serialize_model_to_string ( $model )
serializes the $model to RDF/XML, returning the result as a string. (the one you'll probably be using 90% of the time ngl π)
serialize_iterator_to_file ( $file, $iter )
serializes the iterator to RDF/XML, printing the results to the supplied filehandle <$fh">. same energy, different input type. π«
serialize_iterator_to_string ( $iter )
serializes the iterator to RDF/XML, returning the result as a string. π
π BUGS π
found a bug? have a feature request? please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. they're listening, they promise. π
lowkey the most important part of any manpage: actually telling the maintainers when something's broken. don't just suffer in silence bestie. π
π SEE ALSO π
the grammar spec itself. iykyk. π
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> β the icon, the legend, the one who wrote this. π
π COPYRIGHT π
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie!! π this was perl v5.38.2, generated on 2024-01-13, straight from the User Contributed Perl Documentation collection. go forth and serialize your graphs, you absolute legend. periodt. β¨π¦πΈ
π¦ where this page comes from
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms