Catmandu::RDF(3pm)
π Catmandu::RDF(3pm) β User Contributed Perl Documentation π
okay bestie, gather round, because this one is the manual page for Catmandu::RDF β the little family of modules that lets you handle RDF data inside the Catmandu framework. yes, THAT Catmandu. she's giving structured data, she's giving graph energy, and honestly? iconic. π
β¨ NAME β¨
Catmandu::RDF β modules for handling RDF data within the Catmandu framework. that's the whole vibe. π
πΈ SYNOPSIS πΈ
first up, the command line client catmandu doing her thing:
catmandu convert RDF --url http://dx.doi.org/10.2474/trol.7.147
--fix 'aref_query(dct_title,title)' to YAML
catmandu convert RDF --file rdfdump.ttl to RDF --type turtle
# For big file the only efficient option to convert RDF is by
# transforming the input stream into triples and writing to NTriples
# in the output
catmandu convert convert RDF --triples 1 --type ttl to RDF --type NTriples < rdfdump.ttl
no cap, that's literally the whole flex. and if you want MORE examples, go peek at the documentation of the individual modules β they've got the receipts. π«Ά
π¦ DESCRIPTION π¦
so here's the tea. Catmandu::RDF contains modules for handling RDF data within the Catmandu framework. RDF data gets encoded and decoded in aREF (which lives over at http://gbv.github.io/aREF/), exactly as implemented with RDF::aREF.
now, real talk, bestie: please keep in mind that RDF is a graph-based data structuring format, and it comes with specialized technologies like SPARQL and triple stores. so if you're using Catmandu::RDF to transform RDF to RDF β like converting from one RDF serialization to another β that is possible, yes, but it's probably less performant than decent, purpose-built RDF tools. don't come for me, I'm just the messenger. π
BUT β and this is the slay β Catmandu::RDF is way more convenient when you need to convert between RDF and other data formats. that's her moment. that's her main character energy. π
π AVAILABLE MODULES π
Catmandu::Exporter::RDFβ serialize RDF data as RDF/XML, RDF/JSON, Turtle, NTriples, RDFa... you name it, she'll write it out. β¨Catmandu::Importer::RDFβ parse RDF data (RDF/XML, RDF/JSON, Turtle, NTriples...) or import straight from a SPARQL endpoint. multitasking queen. πCatmandu::Fix::aref_queryβ copy values of RDF data in aREF format over to a new field. little copy-paste magic, no biggie. π
π SEE ALSO π
this module is based on Catmandu, RDF::aREF, RDF::Trine, and RDF::NS. the whole squad, fr fr. π«Ά
β COPYRIGHT AND LICENSE β
Copyright Jakob Voss, 2014-
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
(yes bestie, free as in freedom, go wild, just keep the license terms intact. π)
π CONTRIBUTORS π
Jakob Voss, Patrick Hochstenbach
absolute legends, both of them. πΈ
okay that's the whole page, you ate it, you read it, you understood it. π and for the record, this was documented for perl v5.36.0, dated 2022-12-06, and it's the manual page for Catmandu::RDF(3pm) β so if you're citing it in a group chat, now you know exactly what to say. bye bestie, go convert some RDF πβ¨π¦
π¦ where this page comes from
- debian bookworm: libcatmandu-rdf-perl 0.32-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-rdf-perl 0.32-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-rdf-perl 0.32-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libcatmandu-rdf-perl 0.32-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms