RDF::T...RDFXML(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 (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